mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
iio: adc: ad_sigma_delta: allow COMPILE_TEST in isolation
AD_SIGMA_DELTA is a hidden tristate that can only be enabled by selecting drivers (AD7124, AD7192, etc.), all of which require SPI. This prevents compile-testing the library code directly with allmodconfig or by manually enabling it with COMPILE_TEST. Add a prompt string guarded by "if COMPILE_TEST" so the symbol becomes directly selectable when COMPILE_TEST is set. Also add an explicit "depends on SPI" since the ad_sigma_delta library directly calls SPI core symbols such as spi_bus_lock(), spi_bus_unlock(), and spi_sync_locked(). Signed-off-by: Radu Sabau <radu.sabau@analog.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
8a4eb07a93
commit
c2d11f5cc2
1 changed files with 2 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue