From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755344AbcBPQPt (ORCPT ); Tue, 16 Feb 2016 11:15:49 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:47740 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751929AbcBPQPr (ORCPT ); Tue, 16 Feb 2016 11:15:47 -0500 Subject: Re: [PATCH] iio: health/afe4403: select REGMAP_SPI To: Arnd Bergmann , Jonathan Cameron References: <1455637959-3169264-1-git-send-email-arnd@arndb.de> CC: , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Matt Ranostay , , From: "Andrew F. Davis" Message-ID: <56C34AF8.7080104@ti.com> Date: Tue, 16 Feb 2016 10:14:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1455637959-3169264-1-git-send-email-arnd@arndb.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/2016 09:52 AM, Arnd Bergmann wrote: > The newly added afe4403 driver uses the regmap facility to abstract > the I2C and SPI access. However, it fails to ensure that regmap_spi > is actually present: > > drivers/iio/built-in.o: In function `afe4403_probe': > :(.text+0x9bf8): undefined reference to `__devm_regmap_init_spi' > > This adds a Kconfig select statement like the afe4404 I2C driver > has. > > Signed-off-by: Arnd Bergmann > Fixes: eec96d1e2d31 ("iio: health: Add driver for the TI AFE4403 heart monitor") > --- > drivers/iio/health/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/health/Kconfig b/drivers/iio/health/Kconfig > index f0c19779ac27..c5f004a8e447 100644 > --- a/drivers/iio/health/Kconfig > +++ b/drivers/iio/health/Kconfig > @@ -10,6 +10,7 @@ menu "Heart Rate Monitors" > config AFE4403 > tristate "TI AFE4403 Heart Rate Monitor" > depends on SPI_MASTER > + select REGMAP_SPI > select IIO_BUFFER > select IIO_TRIGGERED_BUFFER > help > Oversight on my part, thanks for fix. Acked-by: Andrew F. Davis