Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: accel: Fix a compilation problem
@ 2024-01-31 22:52 Mario Limonciello
  2024-02-04 15:16 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Limonciello @ 2024-01-31 22:52 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Lars-Peter Clausen, open list:IIO SUBSYSTEM AND DRIVERS,
	open list, Mario Limonciello

The kernel fails when compiling without `CONFIG_REGMAP_I2C` but with
`CONFIG_BMA400`.
```
ld: drivers/iio/accel/bma400_i2c.o: in function `bma400_i2c_probe':
bma400_i2c.c:(.text+0x23): undefined reference to `__devm_regmap_init_i2c'
```

This was caught with one of the kconfigs used by the LKP robot for a
separate issue.

Link: https://download.01.org/0day-ci/archive/20240131/202401311634.FE5CBVwe-lkp@intel.com/config
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/iio/accel/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 91adcac875a4..c9d7afe489e8 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -219,10 +219,12 @@ config BMA400
 
 config BMA400_I2C
 	tristate
+	select REGMAP_I2C
 	depends on BMA400
 
 config BMA400_SPI
 	tristate
+	select REGMAP_SPI
 	depends on BMA400
 
 config BMC150_ACCEL
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: accel: Fix a compilation problem
  2024-01-31 22:52 [PATCH] iio: accel: Fix a compilation problem Mario Limonciello
@ 2024-02-04 15:16 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2024-02-04 15:16 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Lars-Peter Clausen, open list:IIO SUBSYSTEM AND DRIVERS,
	open list

On Wed, 31 Jan 2024 16:52:46 -0600
Mario Limonciello <mario.limonciello@amd.com> wrote:

> The kernel fails when compiling without `CONFIG_REGMAP_I2C` but with
> `CONFIG_BMA400`.
> ```
> ld: drivers/iio/accel/bma400_i2c.o: in function `bma400_i2c_probe':
> bma400_i2c.c:(.text+0x23): undefined reference to `__devm_regmap_init_i2c'
> ```
> 
> This was caught with one of the kconfigs used by the LKP robot for a
> separate issue.
> 
> Link: https://download.01.org/0day-ci/archive/20240131/202401311634.FE5CBVwe-lkp@intel.com/config
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>

Good catch.  Ideally would have a fixes tag but it's a bit complex in this
case as they two parts landed in different series.
I've added both tags and marked it for stable.

Fixes: 465c811f1f20 ("iio: accel: Add driver for the BMA400")
Fixes: 9bea10642396 ("iio: accel: bma400: add support for bma400 spi")

> ---
>  drivers/iio/accel/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
> index 91adcac875a4..c9d7afe489e8 100644
> --- a/drivers/iio/accel/Kconfig
> +++ b/drivers/iio/accel/Kconfig
> @@ -219,10 +219,12 @@ config BMA400
>  
>  config BMA400_I2C
>  	tristate
> +	select REGMAP_I2C
>  	depends on BMA400
>  
>  config BMA400_SPI
>  	tristate
> +	select REGMAP_SPI
>  	depends on BMA400
>  
>  config BMC150_ACCEL


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-04 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 22:52 [PATCH] iio: accel: Fix a compilation problem Mario Limonciello
2024-02-04 15:16 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox