From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761386AbdDSJBR (ORCPT ); Wed, 19 Apr 2017 05:01:17 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:35674 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761347AbdDSJBM (ORCPT ); Wed, 19 Apr 2017 05:01:12 -0400 MIME-Version: 1.0 In-Reply-To: <1492522889.24567.66.camel@linux.intel.com> References: <201704030713.jb1PXu29%fengguang.wu@intel.com> <1491319621.708.128.camel@linux.intel.com> <1492522889.24567.66.camel@linux.intel.com> From: Linus Walleij Date: Wed, 19 Apr 2017 11:01:10 +0200 Message-ID: Subject: Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table' To: Andy Shevchenko Cc: Andy Shevchenko , Arnd Bergmann , kbuild test robot , "kbuild-all@01.org" , "linux-kernel@vger.kernel.org" , tipbuild@zytor.com, Ingo Molnar Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 18, 2017 at 3:41 PM, Andy Shevchenko wrote: > On Fri, 2017-04-07 at 12:36 +0200, Linus Walleij wrote: >> They return NULL if the GPIO is not there, or if the >> GPIO library is compiled out (as of HEAD, due to the >> patch from Dmitry T.) > > I'm talking if they are used or not in hci_bcm.c. > > Just checked and indeed the driver is using _optional() variants. > This means GPIOLIB is optional to the driver. GPIOLIB's idea of "optional" should preferrably be the same as an optional regulator, i.e. "electrically optional" not "software optional". The regulator example is for example an ADC reference voltage that is not strictly required, then it is optional, and the ADC can use some internal reference voltage instead. It does not mean that the regulator framework is optional. I'd like to have the same semantice for GPIO but maybe that is a pipe dream :/ Yours, Linus Walleij