Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941909AbcJSOW2 (ORCPT ); Wed, 19 Oct 2016 10:22:28 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36017 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941301AbcJSOWV (ORCPT ); Wed, 19 Oct 2016 10:22:21 -0400 From: Andrey Smirnov To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cphealy@gmail.com, Andrey Smirnov Subject: [PATCH v2 06/10] gpio-sx150x: Replace 'reset_during_probe" with DT binding Date: Wed, 19 Oct 2016 07:04:02 -0700 Message-Id: <1476885846-16469-7-git-send-email-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1476885846-16469-1-git-send-email-andrew.smirnov@gmail.com> References: <1476885846-16469-1-git-send-email-andrew.smirnov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1227 Lines: 35 Signed-off-by: Andrey Smirnov --- 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