From patchwork Mon Mar 4 19:38:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159569 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4137833jad; Mon, 4 Mar 2019 11:38:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxFYsFOGM4QcZ7K4qbuo6lkaas5POlqQqUjDC9hR0aGjdbrXqW3pXUbQ2Ce71nLWHEFQJin X-Received: by 2002:a17:902:2aa8:: with SMTP id j37mr21110499plb.226.1551728333275; Mon, 04 Mar 2019 11:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551728333; cv=none; d=google.com; s=arc-20160816; b=tCqf2CbFkuteVcvEeFqemaSo+010C/QRIrxx/3o/VJ1sKKHE4dkU7d+U9c9eVyM7B2 PVo90TemXaUAobpsypEG3XZQel+Qc1mGRKzFzYhDIbNjY10oJ3z/fyCShhy2WkGOLVAA PWrvV1A3hziXf2GQS1cjzrJTSu+K68yZcTdj2A93e5LIHOnIFfGszlGkIh+wG9Zl0PMo LHlMkGpW7+qP3WhMFOh0M0521qb0PbE0QRYfXepj0Js7gXT/+LM6oz5OLyC7Wh5Evkf+ gtC1Gwxu6zXbHJmconnS4f8yXRIsa3blM6Vcgh/YmGK34hjhVEJxmx0PyJ55nX5kop/8 CxSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XrcojVwrOw1diW2P2m9ET+pfZm389k/vr71HuyoDpmg=; b=F4QH7+tb3jDqISr7xt/9n7Vw6T9Vxq9IJ6aitJq4StLwS9Z/sBXag64AFLV3T9yu25 xi4Gx/FtT96syYHSbi1C4S/TXZj1SbRUJt1Zgz+scyy0LH2OHn0sz/XglPKORu/2qssX +aJUfGIyAId4BEDQ6ldWxweIdZerAU2yIubpsPSSYBNJ0VjvbCg3Gz3DLg025QUcglP7 Ki1xcXdhSZqB1Dsl191RuPnPw37kBzhyNx+v3YNu2+MUZVs6juLmjobD1ZBvlEHOfqTZ miZLovsqrBn66Pvn+KaDY+0K0i0RoUJXVS1LlTnn0+3muxUp+MJpbMMubKkQMlJ24qe7 aZFw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si5400200pgp.286.2019.03.04.11.38.52; Mon, 04 Mar 2019 11:38:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbfCDTiv (ORCPT + 31 others); Mon, 4 Mar 2019 14:38:51 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:51421 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbfCDTiv (ORCPT ); Mon, 4 Mar 2019 14:38:51 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MV6Bs-1gZpqD1spy-00SBO9; Mon, 04 Mar 2019 20:38:39 +0100 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Cc: Joseph Lo , Arnd Bergmann , Douglas Anderson , Javier Martinez Canillas , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: add regulator_get_linear_step() stub helper Date: Mon, 4 Mar 2019 20:38:29 +0100 Message-Id: <20190304193836.687473-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:QF9xFjS61cs6qTXNG1v/VSVuwsR/exTDfz0RJyZ49wR4KnR39l0 pVSKthku/csV7vWfOhXHgpR25lHjfQjtfovBkOK5a38IClzhBZ6tk6+HyITun3hqGSVDDCI d060X0OQj/PaUItaCKA4dUT68gv1+V3G+AP4s+8VvVl+uf8UKNm6YBvp7Bcczj2aDXm9oL8 byKiPTkrHBNxhYkoPyJ/Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:n70Uf+NhApY=:l3EVPdQ7HcqN9r75rlyzO+ i0BC0BjxqcFXDtXM7zQc2Do7KWgAHjVQy6yQHPrYfq82vxm8emmbmtmc/jsnqTZQYw8WKcc2v o6yQy8+8M2wp3GvSSfGjTCAu4pqdedJbrHwGcl4vUh2aIXzf/vFfKcPytIQi5/qxWnHcgUGU4 Cq2WTyemPC7uBFYvo/tich960wTEAPJ5rjigZtU1SPOoCrN24zEg2soOW33kblt2VdI+5VU/M HOkOBdPTURj+Bb69S6Eb8sp1gyyUxkqgQ7EJJPezt8k2VVxYazKiIQAYRMAoo5WL+ADiuoJG5 054B7emkb9ZHyS84qWj9Q+tfSlYdiy0VoEjw7WyQg564plAtUdxxtRVzL3+yqsSlZjaLZMWRo vohlSOe3dB8NLhMFjy41ohuEZR7zPeJXHxW8gCsBHEQHcMJ4MtyjEH5AOAX6i2Daplx0gxD0O jaVkR6eg1V1xwIqGAaNRVpzjA7Jkz63Ko2W2XVx5G3XSBWVQvOGpTJuyo/sxDDwA2iHQSRgxF xnGw43GCAsRACmO+CoeqE7SM5XU06x3D2HqTYRIZP2QyngUbijH49xwxv1bgvrCH+L2epGGgu orHpCxzupG6nY+EirjwEaMgLlwSart9owTsjXdpZV2ipojsAEGPiudrYi8NBvMODinuBS2j82 Q9VX7bcqG/0++HOi4dn9LS3VXlc6WlrCnVoY/2iq6czCZ+J4icaXo3COUHZH0HkhV0UQnAlRG EdtN6vg5hERKUfVFI/zw8RAZY1I8RPNisu8WjQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The regulator header has empty inline functions for most interfaces, but not regulator_get_linear_step(), which has just grown a user that does not depend on regulators otherwise: drivers/clk/tegra/clk-tegra124-dfll-fcpu.c: In function 'get_alignment_from_regulator': drivers/clk/tegra/clk-tegra124-dfll-fcpu.c:555:19: error: implicit declaration of function 'regulator_get_linear_step'; did you mean 'regulator_get_drvdata'? [-Werror=implicit-function-declaration] align->step_uv = regulator_get_linear_step(reg); ^~~~~~~~~~~~~~~~~~~~~~~~~ regulator_get_drvdata cc1: all warnings being treated as errors scripts/Makefile.build:278: recipe for target 'drivers/clk/tegra/clk-tegra124-dfll-fcpu.o' failed Add the missing stub along the others. Fixes: b3cf8d069505 ("clk: tegra: dfll: CVB calculation alignment with the regulator") Signed-off-by: Arnd Bergmann --- include/linux/regulator/consumer.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.20.0 diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index f3f76051e8b0..aaf3cee70439 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -478,6 +478,11 @@ static inline int regulator_is_supported_voltage(struct regulator *regulator, return 0; } +static inline unsigned int regulator_get_linear_step(struct regulator *regulator) +{ + return 0; +} + static inline int regulator_set_current_limit(struct regulator *regulator, int min_uA, int max_uA) {