Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1494750 > unrolled thread
| Started by | Pavel Machek <pavel@ucw.cz> |
|---|---|
| First post | 2016-10-03 10:50 +0200 |
| Last post | 2016-10-10 10:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] gpio/board.txt: point to gpiod_set_value Pavel Machek <pavel@ucw.cz> - 2016-10-03 10:50 +0200
Re: [PATCH] gpio/board.txt: point to gpiod_set_value Linus Walleij <linus.walleij@linaro.org> - 2016-10-10 10:50 +0200
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2016-10-03 10:50 +0200 |
| Subject | [PATCH] gpio/board.txt: point to gpiod_set_value |
| Message-ID | <so76F-2sv-13@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
gpiod_set_value() is preffered interface these days, so add a pointer. Also fix a missing ). Signed-off-by: Pavel Machek <pavel@ucw.cz> diff --git a/Documentation/gpio/board.txt b/Documentation/gpio/board.txt index 86d3fa9..589e789 100644 --- a/Documentation/gpio/board.txt +++ b/Documentation/gpio/board.txt @@ -6,7 +6,7 @@ Note that it only applies to the new descriptor-based interface. For a description of the deprecated integer-based GPIO interface please refer to gpio-legacy.txt (actually, there is no real mapping possible with the old interface; you just fetch an integer from somewhere and request the -corresponding GPIO. +corresponding GPIO). Platforms that make use of GPIOs must select ARCH_REQUIRE_GPIOLIB (if GPIO usage is mandatory) or ARCH_WANT_OPTIONAL_GPIOLIB (if GPIO support can be omitted) in @@ -165,3 +165,6 @@ signals to 1, i.e. enabling the LEDs. And for the "power" GPIO, which is mapped as active-low, its actual signal will be 0 after this code. Contrary to the legacy integer GPIO interface, the active-low property is handled during mapping and is thus transparent to GPIO consumers. + +Set of functions such as gpiod_set_value() is available to work with +this interface. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2016-10-10 10:50 +0200 |
| Message-ID | <sqErw-7rt-17@gated-at.bofh.it> |
| In reply to | #1494750 |
On Mon, Oct 3, 2016 at 10:43 AM, Pavel Machek <pavel@ucw.cz> wrote: > gpiod_set_value() is preffered interface these days, so add a > pointer. Also fix a missing ). > > Signed-off-by: Pavel Machek <pavel@ucw.cz> Patch applied with some tweaking. Yours, Linus Walleij
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web