Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5169157yba; Wed, 10 Apr 2019 12:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXj0wS4FqlZOB10PdID5vkTvv2MGffksrE/QrLQs5jk5K+jraUpVOYpy75K364Q29tmaaU X-Received: by 2002:a63:7885:: with SMTP id t127mr41491808pgc.338.1554926255295; Wed, 10 Apr 2019 12:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554926255; cv=none; d=google.com; s=arc-20160816; b=fKECWeaepURcnmd9R4n91aqDbsu8UKObDMfXyLJH4EnVZ0P2xQdsTTV6VB6zI+BCkn x+X8aehWNqqG/nRQvyZ11PP9TIeXxbhqCYcnNaxvGQxaIqv1mZ4vO31geh/rNtYGfSzx wH9iOAWfaxPgbFjUWZbKjTK7dXrOsPEFAZZShqGY7Z4ik3ou89417PkVfuN5e2raSe0W pKDrE/rqeW5gtAvntixzX502fS0YwIYWiHBWOo6hWJsrnDQMsVBRVT1IeinvGkvk8T7Z BRvv/DYsTIeE+Coh5Bmql2Hk4byjp/XVJgOnQHIxJRvV5kLc6OIIdRUr0vS/ls9qJULY i1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cUErJlnKhaAAi5cili2B6BxIZXm5dTTk/ZatlWe6NaE=; b=C18U21JiAVQUiF/DcmdiQmM4ZEEAP+idCAj0Ssm3QoVYoAvWfDF2oxcWoggxUR6JMi AiN/2vkN0va4jw9NITdpvdqMp3mDNhalcdeP7q+H3fI+ZaKiJhkH12NL+U5f1ENbgU6U O4OoSIYXfJpRxK8jYvEifsoGWUJ3/Du9oiOrIOITsfHyGAvcxqWCR0kDyCayLgr1BZ0N gpAxd0XkfnY2jyK/dcd5xDJ74G2wDtCbjAQeb2k6Ou6ftwXK4bSdSCJgljkmBv3PEVU/ YgfNF8z2cpSNeja5hZWhaZFbbZhC6PMj9o2++/zVt/Viy6tKgY9b/VwjEOtluXSna1x5 2OOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pjfay6NJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si32655320pll.374.2019.04.10.12.57.19; Wed, 10 Apr 2019 12:57:35 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pjfay6NJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbfDJT4g (ORCPT + 99 others); Wed, 10 Apr 2019 15:56:36 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38224 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbfDJT4f (ORCPT ); Wed, 10 Apr 2019 15:56:35 -0400 Received: by mail-io1-f67.google.com with SMTP id v4so3279936ioj.5; Wed, 10 Apr 2019 12:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cUErJlnKhaAAi5cili2B6BxIZXm5dTTk/ZatlWe6NaE=; b=Pjfay6NJMcz59gLPKho+URVlMA1xvGMvnCsO5wtQI5kucO7W15Xxhbx/aG0ZEayTAV Qytk5kDSs4nuW6OMLY2ckRj7Y9YzS8DnPizLWWx6m9EdOgA13Yt3isAiNwGNH/hw8ZIp SaoXTwLz6cxW3OKN9+yBsNjscOqxa1bYkRWuIS/qJPMYKf7H8M4E5sYr7EtEhenE/7b5 eWjhfNNdkbmUtiWg78hM45tq9DXNY7ufOvA3UCWgQuOOS0J38y56vpAbfOmbm32T2IKJ VdcvZDtB6Kc4kXM+yzTT8is+Q0HcNFzNXpLZjw3R13OVz8Hi+0xqNGeToC3D1forVk+F dl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cUErJlnKhaAAi5cili2B6BxIZXm5dTTk/ZatlWe6NaE=; b=oHBmFXjUz/Qy3xdJfsBnXRUAEhsmrmfryMIOQzek5Qw3gIcwTMUOek1LOTqKPy5ZPF u0tqznCsA9ThmcEjDmcquawik36nPtCYq4Fm2nwSSRAQ+0DT1yZMfODUtz9hOasfFZ2h qi0MAGF8qmJbyf+NFZiT4hDXQkxOWtty1FofoOP++RtwNVmm9JJqvETknSMuHsMpV7PC Hyamagq+PjhwcirvPU0p1LQUHkokqp/TjDVyx9IvGRr/hyXTILaasmTl2ezY79sa0k1x zWNe7cvx8CP+czNil9oiD+H33zVo3BXbXB2mcuoKIM6I+ibwmAPCKAWrks6og0n2hWU0 HElQ== X-Gm-Message-State: APjAAAVGXquVwjqmyIlRq55yisG+Zma+8AIc/BDCd/sp45zNPrImYZc7 dq04M5wicFuE2c3LIGbg5xHPv7l1KAZWiOXLoGU= X-Received: by 2002:a5d:8597:: with SMTP id f23mr17737961ioj.148.1554926194571; Wed, 10 Apr 2019 12:56:34 -0700 (PDT) MIME-Version: 1.0 References: <20190410084558.35160-1-yuehaibing@huawei.com> In-Reply-To: <20190410084558.35160-1-yuehaibing@huawei.com> From: Justin Chen Date: Wed, 10 Apr 2019 12:56:23 -0700 Message-ID: Subject: Re: [PATCH] iio: adc: ti-ads7950: Fix build error without CONFIG_GPIOLIB To: Yue Haibing Cc: Jonathan Cameron , knaack.h@gmx.de, lars@metafoo.de, Peter Meerwald-Stadler , stefan.popa@analog.com, Mark Brown , Linus Walleij , Jonathan.Cameron@huawei.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 1:47 AM Yue Haibing wrote: > > From: YueHaibing > > When building with CONFIG_GPIOLIB is not set > gcc warns this: > > drivers/iio/adc/ti-ads7950.c:75:19: error: field chip has incomplete type > struct gpio_chip chip; > ^~~~ > drivers/iio/adc/ti-ads7950.c: In function ti_ads7950_set: > drivers/iio/adc/ti-ads7950.c:409:32: error: implicit declaration of function gpiochip_get_data; did you mean acpi_get_data? [-Werror=implicit-function-declaration] > struct ti_ads7950_state *st = gpiochip_get_data(chip); > ^~~~~~~~~~~~~~~~~ > acpi_get_data > > Reported-by: Hulk Robot > Fixes: c97dce792dc8 ("iio: adc: ti-ads7950: add GPIO support") > Signed-off-by: YueHaibing Reviewed-by: Justin Chen Thanks, Justin > --- > drivers/iio/adc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > index 846c7ac..f760269 100644 > --- a/drivers/iio/adc/Kconfig > +++ b/drivers/iio/adc/Kconfig > @@ -968,7 +968,7 @@ config TI_ADS1015 > > config TI_ADS7950 > tristate "Texas Instruments ADS7950 ADC driver" > - depends on SPI > + depends on SPI && GPIOLIB > select IIO_BUFFER > select IIO_TRIGGERED_BUFFER > help > -- > 2.7.4 > >