[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1421876028-22799-1-git-send-email-o.schinagl@ultimaker.com>
Date: Wed, 21 Jan 2015 22:33:44 +0100
From: Olliver Schinagl <o.schinagl@...imaker.com>
To: Rob Herring <robh+dt@...nel.org>, Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <gnurou@...il.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Bryan Wu <cooloney@...il.com>,
Richard Purdie <rpurdie@...ys.net>,
Olliver Schinagl <oliver@...inagl.nl>,
Robin Gong <b38343@...escale.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Aaron Lu <aaron.lu@...el.com>,
Grant Likely <grant.likely@...aro.org>,
Jingoo Han <jg1.han@...sung.com>,
Alexander Shiyan <shc_work@...l.ru>,
Wolfram Sang <wsa@...-dreams.de>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-input@...r.kernel.org,
linux-leds@...r.kernel.org,
Olliver Schinagl <o.schinagl@...imaker.com>
Subject: [PATCH v2 0/4] Let leds use named gpios
The gpio binding docs ask to use named-gpios wherever possible, however 40b73183 probably forgot that. This patch makes the new devm_get_gpiod_from_child use named gpios.
Changed since v1:
Fix a few typo's
Fix of_find_gpio to remove hardcoded length of string
Check both for leds-gpios and if that fails, fall back to standard gpios for the users of devm_get_gpiod_from_child.
Olliver Schinagl (4):
gpio: use sizeof() instead of hardcoded values
gpio: add parameter to allow the use named gpios
leds: Let the binding document example for leds-gpio follow the gpio
bindings
leds: no longer use unnamed gpios
Documentation/devicetree/bindings/leds/leds-gpio.txt | 14 ++++++++------
drivers/gpio/devres.c | 18 +++++++++++++++++-
drivers/gpio/gpiolib.c | 6 ++++--
drivers/input/keyboard/gpio_keys_polled.c | 20 ++++++++++++--------
drivers/leds/leds-gpio.c | 2 +-
include/linux/gpio/consumer.h | 1 +
6 files changed, 43 insertions(+), 18 deletions(-)
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists