Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1502034

[PATCH 08/13] gpio-sx150x: Replace 'reset_during_probe" with DT binding

From Andrey Smirnov <andrew.smirnov@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 08/13] gpio-sx150x: Replace 'reset_during_probe" with DT binding
Date 2016-10-17 16:30 +0200
Message-ID <sth5o-4CT-39@gated-at.bofh.it> (permalink)
References <sth5n-4CT-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 drivers/gpio/gpio-sx150x.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/gpio/gpio-sx150x.c b/drivers/gpio/gpio-sx150x.c
index b751ff9..a63f6ea 100644
--- a/drivers/gpio/gpio-sx150x.c
+++ b/drivers/gpio/gpio-sx150x.c
@@ -90,13 +90,9 @@ struct sx150x_device_data {
  *                instead of as an oscillator, increasing the size of the
  *                GP(I)O pool created by this expander by one.  The
  *                output-only GPO pin will be added at the end of the block.
- * @reset_during_probe: If set to true, the driver will trigger a full
- *                      reset of the chip at the beginning of the probe
- *                      in order to place it in a known state.
  */
 struct sx150x_platform_data {
 	bool     oscio_is_gpo;
-	bool     reset_during_probe;
 };
 
 struct sx150x_chip {
@@ -606,7 +602,8 @@ static int sx150x_init_hw(struct sx150x_chip *chip,
 	u32 io_pullup   = 0;
 	int err = 0;
 
-	if (pdata->reset_during_probe) {
+	if (of_property_read_bool(chip->client->dev.of_node,
+				  "semtech,reset-during-probe")) {
 		err = sx150x_reset(chip);
 		if (err < 0)
 			return err;
-- 
2.5.5

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/13] Revamp Semtech SX150x driver Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:30 +0200
  [PATCH 10/13] gpio-sx150x: Replace 'oscio_is_gpio' with DT binding Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:30 +0200
  [PATCH 08/13] gpio-sx150x: Replace 'reset_during_probe" with DT binding Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:30 +0200
  [PATCH 02/13] gpio-sx150x: Remove 'irq_summary' parameter Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:30 +0200
  [PATCH 11/13] bindings: gpio-sx150x: Document "semtech,oscio-is-gpo" binding Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:30 +0200
  [PATCH 06/13] gpio-sx150x: Replace "io_pull*_ena" with DT bindings Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:40 +0200
  [PATCH 04/13] gpio-sx150x: Replace 'io_polarity' with DT binding Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:40 +0200
  [PATCH 05/13] bindings: gpio-sx150x: Document "semtech,io-polarity" binding Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:40 +0200
    Re: [PATCH 05/13] bindings: gpio-sx150x: Document  "semtech,io-polarity" binding Rob Herring <robh@kernel.org> - 2016-10-18 18:30 +0200
  [PATCH 03/13] gpio-sx150x: Remove 'irq_base' parameter Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-10-17 16:40 +0200

csiph-web