From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kI72O-0004tW-8R for barebox@lists.infradead.org; Tue, 15 Sep 2020 09:14:09 +0000 From: Ahmad Fatoum Date: Tue, 15 Sep 2020 11:14:00 +0200 Message-Id: <20200915091400.942694-1-ahmad@a3f.at> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] regulator: provide regulator_get_name() stub for !CONFIG_REGULATOR To: barebox@lists.infradead.org Cc: Roland Hieber Otherwise users of this function run into a link error when regulator support is compiled out. Reported-by: Roland Hieber Signed-off-by: Ahmad Fatoum --- include/regulator.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/regulator.h b/include/regulator.h index 12d8e816cdb1..6a398100182f 100644 --- a/include/regulator.h +++ b/include/regulator.h @@ -175,6 +175,11 @@ static inline struct regulator *regulator_get(struct device_d *dev, const char * return NULL; } +static inline struct regulator *regulator_get_name(const char *name); +{ + return NULL; +} + static inline int regulator_enable(struct regulator *r) { return 0; -- 2.28.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox