Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1172016AbdDXOEh (ORCPT ); Mon, 24 Apr 2017 10:04:37 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55226 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1170533AbdDXOE3 (ORCPT ); Mon, 24 Apr 2017 10:04:29 -0400 X-Auth-Info: naM1BzXirSqAScZo0i86Sy4wXY4nPt85eWYpzFwoC1s= From: Anatolij Gustschin To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alexandre Courbot , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: [PATCH] gpiolib: Add stubs for gpiod lookup table interface Date: Mon, 24 Apr 2017 16:04:22 +0200 Message-Id: <1493042662-30435-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 43 Add stubs for gpiod_add_lookup_table() and gpiod_remove_lookup_table() for the !GPIOLIB case to prevent build errors. Also add prototypes. Signed-off-by: Anatolij Gustschin --- include/linux/gpio/consumer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h index 933d936..6c0cc67 100644 --- a/include/linux/gpio/consumer.h +++ b/include/linux/gpio/consumer.h @@ -144,6 +144,11 @@ struct gpio_desc *devm_fwnode_get_index_gpiod_from_child(struct device *dev, enum gpiod_flags flags, const char *label); +struct gpiod_lookup_table; + +void gpiod_add_lookup_table(struct gpiod_lookup_table *table); +void gpiod_remove_lookup_table(struct gpiod_lookup_table *table); + #else /* CONFIG_GPIOLIB */ static inline int gpiod_count(struct device *dev, const char *con_id) @@ -435,6 +440,16 @@ struct gpio_desc *devm_fwnode_get_index_gpiod_from_child(struct device *dev, return ERR_PTR(-ENOSYS); } +struct gpiod_lookup_table; + +static inline void gpiod_add_lookup_table(struct gpiod_lookup_table *table) +{ +} + +static inline void gpiod_remove_lookup_table(struct gpiod_lookup_table *table) +{ +} + #endif /* CONFIG_GPIOLIB */ static inline -- 2.7.4