Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1502520ybn; Wed, 2 Oct 2019 17:37:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3sLSDqzLX0r2IEAxvKoznT3FwvRF61nLEZDMQFrF1MZTZeDl0BNkg/wqZrHhCeJuWoOlU X-Received: by 2002:a50:9fe5:: with SMTP id c92mr6841061edf.280.1570063045272; Wed, 02 Oct 2019 17:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570063045; cv=none; d=google.com; s=arc-20160816; b=SSujBSN3N6jFubDs0DRBVhSkae4zKOfGS4TX0OfIsJ8BCgO3OBSkq/YHoSn9N0folA LGgGfgzsfAe8w9SPQfn+Tc/9Km8gRlITFyMZ8GqUiUlNbFiYhcTn0eCJDKjsxaHcnim9 +Q6pnm06RefScZPsc90353WMiDZfqd4oQguwbNVeC+j9bbHS0aWZyoOyfQBTGgYalPvO BEghKQrxVWwW6vb1VrkXSX0YB95WlgzdqdFlEubgv5fDWZMzS0UEU+qvvxTj1zRUvkc+ VYhh9TtImnSQhZCsxFIOe/fVNDXhC+mP4uZJAc4cfVMFYGL18jZFjaNe96sm1l52P8BW MwAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=iL69b6SZhjeHqz7z9KlPv28qExZ+KYl8s7du84qUeS8=; b=ht/8g+Zu4271Qj49ZQP9UDRq0RFed6X2JA3Vl6iaKgiSAoh0CPvZgckycGxTMwJ4NV rY3PLbr5m79VJws8Bx9ycGISN2rLmRK/YKbNxU3NMe/8Pr9ySJ968xCFZH04iEgu7mm8 tDggbHoGBbCLN97y2TtE8neD3gulbENevnpWCVwE9Z3FBFcUkC2H18XBApg+h9Pb8XQb TtKsGzU5pomPyvCS1xh6jBh4wHJWeRtDhmE2kIvDcctTHuNEFQDZRp8AvywM/UctfFQz p8LJAKisjX7WQF9p53j/4OUrf4U7G0Ql5wAOR6T1L/g2zHpmTwQiU+560POQZFL6Y1G+ 3HHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CCVjBZgJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si427867ejb.136.2019.10.02.17.37.01; Wed, 02 Oct 2019 17:37:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CCVjBZgJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729812AbfJCA2i (ORCPT + 99 others); Wed, 2 Oct 2019 20:28:38 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40189 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729623AbfJCA2g (ORCPT ); Wed, 2 Oct 2019 20:28:36 -0400 Received: by mail-pf1-f193.google.com with SMTP id x127so552455pfb.7 for ; Wed, 02 Oct 2019 17:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=iL69b6SZhjeHqz7z9KlPv28qExZ+KYl8s7du84qUeS8=; b=CCVjBZgJNoZXNmUjGe6FbDFZNAoTKdPA5z/K3o2b0kXvq+yxh5d71q0qScFjbdJjfa xhx2L7zDBHspwU144G0iCenrQbVHQTaoMaJIMZL1gLLFK0Ql4X662BevGMszLnTe0Rgo 8yWL+thmAaoBbI2N/bhM42gbcX3W0/auI4UZYKsX4xCjB5TPCWtGGE+yI+v6AFQI57sA DDG9BSspxuYtG38gWEpz629rzpQ2fb6NvkAijYdESDKGAtbEx0d845ZpiR/sL2ux454q n9UvgSYnzvwy3K8zs6bHqG4/k5cyteWcT0XMt8uhscYZq8JMh8ak73rSS2qVJwKl4pZK qw+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=iL69b6SZhjeHqz7z9KlPv28qExZ+KYl8s7du84qUeS8=; b=dcRyEKpAhScE0bCZmuS+myP+DsQmTs/DnBCqS7zCYonWhrVwALl1XirVEfMner9aEL OSQ7RKZPedEl127tp5bFibxHgKNQ+UKkj1p/s3y4x1Tqu6ixtwjZxlPdH6mOZeTV/Rr0 1/FQSDunLfym7D6iQV8f76jx20HqsGwJfDaYMteOHvfawV/NiG0TQTV7e0YwLhsPnBxN psf6BTeJyftf0lc+bvA7oDKnQPv2bE0lF3IR2kXoIvsVexvI5eU36hpQSSzmum9lIm70 SSinK+WJpwAz+Cb6Oq8r5ia+PL1hNGaRpyJDuyyCSX5qxy1+BOhprk5w1gQWtD0e19Zr 2tIg== X-Gm-Message-State: APjAAAXFulqO0aPdZ08xRjyNCgqCZi0bhvUb7pISEzMUqh/gra/nArnl X2JGKj8dyIKiWvZN3BzKt7A= X-Received: by 2002:a63:f5f:: with SMTP id 31mr6520184pgp.265.1570062514976; Wed, 02 Oct 2019 17:28:34 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id 2sm617591pfa.43.2019.10.02.17.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 17:28:34 -0700 (PDT) Date: Wed, 2 Oct 2019 17:28:32 -0700 From: Dmitry Torokhov To: Lee Jones Cc: Mark Brown , Charles Keepax , linux-kernel@vger.kernel.org Subject: [PATCH] mfd: arizona: switch to using devm_gpiod_get() Message-ID: <20191003002832.GA13466@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that gpiolib recognizes wlf,reset legacy GPIO and will handle it even if DTS uses it without -gpio[s] suffix, we can switch to more standard devm_gpiod_get() and later remove devm_gpiod_get_from_of_node(). Note that we will lose "arizona /RESET" custom GPIO label, but since we do not set such custom label when using the modern binding, I opted to not having it here either. Signed-off-by: Dmitry Torokhov --- drivers/mfd/arizona-core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 4a31907a4525..f73cf76d1373 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -814,11 +814,7 @@ static int arizona_of_get_core_pdata(struct arizona *arizona) int ret, i; /* Handle old non-standard DT binding */ - pdata->reset = devm_gpiod_get_from_of_node(arizona->dev, - arizona->dev->of_node, - "wlf,reset", 0, - GPIOD_OUT_LOW, - "arizona /RESET"); + pdata->reset = devm_gpiod_get(arizona->dev, "wlf,reset", GPIOD_OUT_LOW); if (IS_ERR(pdata->reset)) { ret = PTR_ERR(pdata->reset); -- 2.23.0.444.g18eeb5a265-goog -- Dmitry