]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: rpr0521: add missing Kconfig dependencies
authorPaul Gazzillo <paul@pgazz.com>
Thu, 10 Nov 2022 21:47:29 +0000 (16:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:02 +0000 (11:23 +0100)
commitdd097934a5207cb2f0931a850271ec67093e9d2f
treed385f8d174e1a0d975b276e38ce9170e4063d333
parent0cd812061866eb418ace0a769233b27fc4bccf3b
iio: light: rpr0521: add missing Kconfig dependencies

[ Upstream commit e7ccf6eed0b511dbc99d94c0bed8e326b5082bc1 ]

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: ffab2ab7b494 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/light/Kconfig