Message ID | 20180212131717.27193-13-linus.walleij@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <linux-gpio-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="LtYIJlnL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zg5rC549Mz9ryT for <incoming@patchwork.ozlabs.org>; Tue, 13 Feb 2018 00:20:11 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935295AbeBLNSA (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Mon, 12 Feb 2018 08:18:00 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:46364 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935244AbeBLNR5 (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Mon, 12 Feb 2018 08:17:57 -0500 Received: by mail-lf0-f67.google.com with SMTP id q194so20357595lfe.13 for <linux-gpio@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=GU4r6US//ALhCvpd3Pz7WIXuTa8Q1AIL5SWCSUcp6gNyatbU9pk4wrBbhbeCPb8UUI A5Qr+dQl7pOM6um2GCLHNG6inT+GIvYep1VKd6EI5GBaFkM7MFpa8BMVm4mspmGCU1XE n+e3QidBVy/coDNmd5l5DkQovfZ9p1DEuAm6Womhw88LbWvrl/VR+qObmcE7k4ASd09A 7gsV7/EdNnEzGOjr0YgvnMyV6oEJ5dbIWtaZsykHUlZmtK8p6qx84SUkLxP9CpWXrSqi DYks98C/4iI255UOXcvg0li/jhMOmgAjSRL3THX7Hmdvu+wGjsyuoFZ6DhrJk/o+RYbn IIHg== X-Gm-Message-State: APf1xPDnFKqIKd/ezm2OOjNq21i4X0jF2rZfGjrWdqxWB6DZeNzac14M mWmxxyAh+jKXJW2qfH9QZskYxQ== X-Google-Smtp-Source: AH8x2244NvVt7s9K6mziJNi2BrSojMMn7CvCPx65VTgZUV8WH7AMiCOPSjpnzQkEGqwVcUnM+M2Dkw== 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@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(-)