Message ID | 20180212131717.27193-13-linus.walleij@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3201125ljc; Mon, 12 Feb 2018 05:18:04 -0800 (PST) X-Google-Smtp-Source: AH8x224dZs+geNbm+X0wum3V3EwguyazXVMzSjVwQnlyyvrBaGqRhTJdjutRmCrmLto7QaKqGM9n X-Received: by 2002:a17:902:20c8:: with SMTP id v8-v6mr10687791plg.226.1518441484402; Mon, 12 Feb 2018 05:18:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518441484; cv=none; d=google.com; s=arc-20160816; b=Qy/goP651+lOw0dabKJ1LCvShBmP3Gik9JekZdI4mNlhRicqVDlUh40vnt7OXCRaOz Aofxg/+nh6Qan/8pZdwXTt7yTQynQZVDHHwEdNnp5CRYW8KuPHuP2Ui+QtsCupMWRa1f WcHrTluj0ynzfq6DCpcbCA8vv+I5PuFbqJcJKKjYi7R24mR9Nbz5I5P4RDl528xJP+Bf dx1C87pEIqeJdju9Ptpyywx5JQRtWcUWSof5h6Lsl0SEwO18ocAYPlFoUZFfBXkRdaRd 9S7dFraSyKnSLMvzMH+1CwLPRSB6uyaszniHdRlAOTTy1OamrlLeNDRC3VzKzbYSPvBP tNTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ipSnndn20BOACJnA4S/SdJNa8vcelDcG8Kbw1rrM55A=; b=Jb4FCJUdybd7MC9vd6kMGr9Px55m3i4f+lZ6y1i7ICRmA9WuKaSBf+5GSCvtOezKuT bjlO1ncHNQ6DwSTszcyhl2Gtvn+SRBShgfhqFYIlOhTRO64FlFcFSH42YqAVVOeRJWcV D6sq4y2mnnlvFCum2daIb6r93O8EZANm8WB9p5nfE/WAFk2XHFYhIkUc8HeT4dK4MI3f UwUt5g2GmDWKfKsQwrkFW5A+bYToZ6HV81JTqJ/gffgxbUwrzDuwvh/OMYaSIbl/6zZV SiMkX3qqkVxOKx++39zwMc59iPCVX//tjJU0lre/oKR8xdhBsHxrQjNx+YwrE5h1qvYl c3fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LtYIJlnL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si3605235pgt.173.2018.02.12.05.18.04; Mon, 12 Feb 2018 05:18:04 -0800 (PST) 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=@linaro.org header.s=google header.b=LtYIJlnL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932847AbeBLNSB (ORCPT <rfc822;amit.pundir@linaro.org> + 13 others); Mon, 12 Feb 2018 08:18:01 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:37370 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935287AbeBLNR5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Feb 2018 08:17:57 -0500 Received: by mail-lf0-f67.google.com with SMTP id f137so20387604lfe.4 for <linux-kernel@vger.kernel.org>; Mon, 12 Feb 2018 05:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ipSnndn20BOACJnA4S/SdJNa8vcelDcG8Kbw1rrM55A=; b=LtYIJlnL6Kt29iOKo7GS6I30Af8Tj6qyUx8biOEyYxH3VbT+k16ztkZMt7OZ/novNE 4V5Hf2jmIzIl5USNV5fcqJ4z+aT67nKOhRVbFmZCrSBXk7XxkjkVH+atQGsnHeSmbLaV rtcWQTSRyNGZ1G7bEGRxg3l5/sl3t+RAxAOoE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ipSnndn20BOACJnA4S/SdJNa8vcelDcG8Kbw1rrM55A=; b=JKBQZBT0fxolnfGEjddzUxAPKJqwkAmAn+tpfd6zQFyBFdBs33hqY698YT0jIu9JM6 PSGKcNyf1YRHmRgujFfnzeldT34F5hJopOMwBovt5ShC7vkh96euL66RRr0Rc7ix9PUz TXrbizgjTrZjPHJN6gXxKXRNw07Jkfnf0fBXGyR3oP/9y7JirAt0xgPpUA6+uKd2n5ys l1mITFxUi18PTBt/4NwVgbr1yDhbCaP5fVvHEgwmtbrOC4uV71sqTzjJn5VhPbNUKd/p VgRP8Fbi4rm2JYBYvMLyf+nn/rQtyKqdxBGT6MSf2H0qyW+9qq9227MeaxG9xOIuDu5N 9kbQ== X-Gm-Message-State: APf1xPDvQp1T9RYqyYYQzFXoMmQyIa1N9sm0NygJnTmZY/WFN31TD7I9 +0UsY9T2t0ezbdndqu51v7sciNrXIfc= X-Received: by 10.46.92.135 with SMTP id q129mr3168825ljb.94.1518441476091; Mon, 12 Feb 2018 05:17:56 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id r88sm1584648lje.30.2018.02.12.05.17.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 05:17:55 -0800 (PST) From: Linus Walleij <linus.walleij@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org> Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH 12/21] regulator: pfuze100: Delete reference to ena_gpio Date: Mon, 12 Feb 2018 14:17:08 +0100 Message-Id: <20180212131717.27193-13-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180212131717.27193-1-linus.walleij@linaro.org> References: <20180212131717.27193-1-linus.walleij@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
regulator: switch core to GPIO descriptors
|
expand
|
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 63922a2167e5..f341d9614a77 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -648,7 +648,6 @@ static int pfuze100_regulator_probe(struct i2c_client *client, config.init_data = init_data; config.driver_data = pfuze_chip; config.of_node = match_of_node(i); - config.ena_gpio = -EINVAL; pfuze_chip->regulators[i] = devm_regulator_register(&client->dev, desc, &config);
We now pass a GPIO descriptor to the core instead of a global GPIO number, if this descriptor is NULL the GPIO line is not used. Just delete the assignment of an invalid GPIO line. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/regulator/pfuze100-regulator.c | 1 - 1 file changed, 1 deletion(-) -- 2.14.3