12 Oct, 2015

1 commit


21 Jul, 2015

1 commit


12 May, 2015

1 commit

  • Remove gpiod_sysfs_set_active_low (and gpio_sysfs_set_active_low) which
    allowed code to change the polarity of a gpio line even after it had
    been exported through sysfs.

    Drivers should not care, and generally does not know, about gpio-line
    polarity which is a hardware feature that needs to be described by
    firmware.

    It is currently possible to define gpio-line polarity in device-tree and
    acpi firmware or using platform data. Userspace can also change the
    polarity through sysfs.

    Note that drivers using the legacy gpio interface could still use
    GPIOF_ACTIVE_LOW to change the polarity before exporting the gpio.

    There are no in-kernel users of this interface.

    Cc: Jonathan Corbet
    Cc: Harry Wei
    Cc: Arnd Bergmann
    Cc: linux-doc@vger.kernel.org
    Cc: linux-kernel@zh-kernel.org
    Cc: linux-arch@vger.kernel.org
    Signed-off-by: Johan Hovold
    Reviewed-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Johan Hovold
     

25 Nov, 2013

1 commit

  • gpiolib now exports a new descriptor-based interface which deprecates
    the older integer-based one. This patch documents this new interface and
    also takes the opportunity to brush-up the GPIO documentation a little
    bit.

    The new descriptor-based interface follows the same consumer/driver
    model as many other kernel subsystems (e.g. clock, regulator), so its
    documentation has similarly been splitted into different files.

    The content of the former documentation has been reused whenever it
    made sense; however, some of its content did not apply to the new
    interface anymore and have this been removed. Likewise, new sections
    like the mapping of GPIOs to devices have been written from scratch.

    The deprecated legacy-based documentation is still available, untouched,
    under Documentation/gpio/gpio-legacy.txt.

    Signed-off-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Alexandre Courbot