05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this software is licensed under the terms of the gnu general public
    license version 2 as published by the free software foundation and
    may be copied distributed and modified under those terms this
    program is distributed in the hope that it will be useful but
    without any warranty without even the implied warranty of
    merchantability or fitness for a particular purpose see the gnu
    general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 285 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141900.642774971@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

25 Jul, 2017

1 commit


19 Jan, 2017

1 commit

  • Declare pwm_ops structures as const as they are only stored in the ops
    field of a pwm_chip structure. This field is of type const struct pwm_ops
    *, so pwm_ops structures having this property can be declared as const.
    Done using Coccinelle:

    @r1 disable optional_qualifier@
    identifier i;
    position p;
    @@
    static struct pwm_ops i@p={...};

    @ok1@
    identifier r1.i;
    position p;
    struct pxa_pwm_chip pwm;
    struct bfin_pwm_chip bwm;
    struct vt8500_chip vp;
    struct imx_chip icp;
    @@
    (
    pwm.chip.ops=&i@p
    |
    bwm.chip.ops=&i@p
    |
    vp.chip.ops=&i@p
    |
    icp.chip.ops=&i@p
    )

    @bad@
    position p!={r1.p,ok1.p};
    identifier r1.i;
    @@
    i@p

    @depends on !bad disable optional_qualifier@
    identifier r1.i;
    @@
    +const
    struct pwm_ops i;

    File size details:

    text data bss dec hex filename
    1646 328 0 1974 7b6 drivers/pwm/pwm-imx.o
    1742 224 0 1966 7ae drivers/pwm/pwm-imx.o

    1941 296 0 2237 8bd drivers/pwm/pwm-pxa.o
    2037 192 0 2229 8b5 drivers/pwm/pwm-pxa.o

    1946 296 0 2242 8c2 drivers/pwm/pwm-vt8500.o
    2050 192 0 2242 8c2 drivers/pwm/pwm-vt8500.o

    The drivers/pwm/pwm-bfin.o file did not compile.

    Signed-off-by: Bhumika Goyal
    Signed-off-by: Thierry Reding

    Bhumika Goyal
     

20 Oct, 2014

1 commit


28 Apr, 2014

1 commit


18 May, 2013

1 commit


27 Feb, 2013

1 commit

  • Pull PWM changes from Thierry Reding:
    "A new driver has been added to support the PWM mode of the timer
    counter blocks found on Atmel AT91 SoCs. The VT8500 driver now
    supports changing the PWM signal polarity and the TI drivers (EHRPWM
    and ECAP) gained suspend and resume functionality.

    User drivers can now query the core for whether access to a PWM device
    will sleep (if the PWM chip is on a slow bus such as I2C or SPI).

    The pwm-backlight driver now handles the backlight BL_CORE_FBBLANK
    state in addition to the FB layer's blanking states.

    To round things off, a few fixes and cleanups are also included"

    * tag 'for-3.9-rc1' of git://gitorious.org/linux-pwm/linux-pwm:
    pwm: twl: Use to_twl() instead of container_of()
    pwm: tegra: assume CONFIG_OF
    pwm_backlight: Validate dft_brightness in main probe function
    pwm: Export pwm_{set,get}_chip_data()
    pwm: Make Kconfig entries more consistent
    pwm: Add can_sleep property to drivers
    pwm: Add pwm_can_sleep() as exported API to users
    pwm-backlight: handle BL_CORE_FBBLANK state
    pwm: pwm-tiecap: Low power sleep support
    pwm: pwm-tiehrpwm: Low power sleep support
    pwm: pwm-tiehrpwm: Update the clock handling of pwm-tiehrpwm driver
    pwm: vt8500: Add polarity support
    pwm: vt8500: Register write busy test performed incorrectly
    pwm: atmel: add Timer Counter Block PWM driver

    Linus Torvalds
     

23 Jan, 2013

1 commit


09 Jan, 2013

2 commits

  • Add support to set polarity on PWM devices, allowing for inverted
    duty cycles.

    Also update the binding document to #pwm-cells = to allow
    passing the flags from devicetree.

    Signed-off-by: Tony Prisk
    Signed-off-by: Thierry Reding

    Tony Prisk
     
  • Correct operation for register writes is to perform a busy-wait
    after writing the register. Currently the busy wait it performed
    before, meaning subsequent register writes to bitfields may occur
    before the previous field has been updated.

    Also, all registers are defined as 32-bit read/write. Change
    pwm_busy_wait() to use readl rather than readb.

    Improve readability of code with defines for registers and bitfields.

    Signed-off-by: Tony Prisk
    Signed-off-by: Thierry Reding

    Tony Prisk
     

23 Nov, 2012

2 commits


01 Nov, 2012

1 commit

  • This patch updates pwm-vt8500.c to support devicetree probing and
    make use of the common clock subsystem.

    A binding document describing the PWM controller found on
    arch-vt8500 is also included.

    Signed-off-by: Tony Prisk
    Acked-by: Arnd Bergmann
    Signed-off-by: Thierry Reding

    Tony Prisk
     

17 Aug, 2012

1 commit


23 Jul, 2012

1 commit


03 Jul, 2012

1 commit