Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932394AbdD0OZq (ORCPT ); Thu, 27 Apr 2017 10:25:46 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:43435 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932155AbdD0OZm (ORCPT ); Thu, 27 Apr 2017 10:25:42 -0400 X-Auth-Info: 8wAPZqXQb7ZaUfKYdu67ld+5g+vr2ZiMqMkC7J4bAFg= Date: Thu, 27 Apr 2017 16:25:34 +0200 From: Anatolij Gustschin To: Andy Shevchenko Cc: Linus Walleij , Alexandre Courbot , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] gpiolib: Add stubs for gpiod lookup table interface Message-ID: <20170427162534.0499344f@crub> In-Reply-To: References: <1493275956-14759-1-git-send-email-agust@denx.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 36 On Thu, 27 Apr 2017 17:07:23 +0300 Andy Shevchenko andy.shevchenko@gmail.com wrote: >On Thu, Apr 27, 2017 at 9:52 AM, Anatolij Gustschin wrote: >> 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 >> Reviewed-by: Andy Shevchenko > >Oh, has to take my tag back. See below why. > > >> --- a/include/linux/gpio/consumer.h >> +++ b/include/linux/gpio/consumer.h > >It is already defined in machine.h. > >What you basically need is to add stubs for !GPIOLIB case > >#ifdef ... >...existing prototypes... >#else /* GPIOLIB */ >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 /* !GPIOLIB */ > >P.S. please notice how I put the stubs. It would be good to keep them >in two lines. this will exceed 80 char line limit. Thanks, Anatolij