]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: stm32-dfsdm: fill module aliases
authorOlivier Moysan <olivier.moysan@foss.st.com>
Fri, 2 Dec 2022 15:28:48 +0000 (16:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:26 +0000 (12:50 +0100)
commit43f9f142bc41e01dc935cd88f4347a4104ea2c2e
tree1db0fb323af36b9bfcbc017b6a0e6b32542036d6
parent2019cb4aca8c00d5dd6269aedc38e6bcdd69ade0
iio: adc: stm32-dfsdm: fill module aliases

[ Upstream commit cc3304052a89ab6ac887ed9224420a27e3d354e1 ]

When STM32 DFSDM driver is built as module, no modalias information
is available. This prevents module to be loaded by udev.
Add MODULE_DEVICE_TABLE() to fill module aliases.

Fixes: bd36f196b1f5 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support")
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20221202152848.45585-1-olivier.moysan@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/stm32-dfsdm-adc.c