Skip to content

Commit 6ac1230

Browse files
paulgazzjic23
authored andcommitted
iio: light: rpr0521: add missing Kconfig dependencies
Fix an implicit declaration of function error for rpr0521 under some configs When CONFIG_RPR0521 is enabled without CONFIG_IIO_TRIGGERED_BUFFER, the build results in "implicit declaration of function" errors, e.g., drivers/iio/light/rpr0521.c:434:3: error: implicit declaration of function 'iio_trigger_poll_chained' [-Werror=implicit-function-declaration] 434 | iio_trigger_poll_chained(data->drdy_trigger0); | ^~~~~~~~~~~~~~~~~~~~~~~~ This fix adds select dependencies to RPR0521's configuration declaration. Fixes: e12ffd2 ("iio: light: rpr0521 triggered buffer") Signed-off-by: Paul Gazzillo <paul@pgazz.com> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216678 Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20221110214729.ls5ixav5kxpeftk7@device Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent fc92d9e commit 6ac1230

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/light/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ config RPR0521
293293
tristate "ROHM RPR0521 ALS and proximity sensor driver"
294294
depends on I2C
295295
select REGMAP_I2C
296+
select IIO_BUFFER
297+
select IIO_TRIGGERED_BUFFER
296298
help
297299
Say Y here if you want to build support for ROHM's RPR0521
298300
ambient light and proximity sensor device.

0 commit comments

Comments
 (0)