Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: stm32-dfsdm: fill module aliases

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: e2e6771c6462 ("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>

authored by

Olivier Moysan and committed by
Jonathan Cameron
cc330405 1b929c02

+1
+1
drivers/iio/adc/stm32-dfsdm-adc.c
··· 1520 1520 }, 1521 1521 {} 1522 1522 }; 1523 + MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match); 1523 1524 1524 1525 static int stm32_dfsdm_adc_probe(struct platform_device *pdev) 1525 1526 {