diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-07-04 23:16:33 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-07-05 00:57:10 +0100 |
| commit | 790a2080e0c9eabefea3561dec301172043de236 (patch) | |
| tree | bf0ebd7ed2e23aca243f4be4ce3fda608e56b38b | |
| parent | 97e5f68ca4acc9cec2827e2aacce340096bc5e8e (diff) | |
| download | linux-790a2080e0c9eabefea3561dec301172043de236.tar.gz linux-790a2080e0c9eabefea3561dec301172043de236.zip | |
iio: adc: max1241: add missing MODULE_DEVICE_TABLE()
The driver has a match table for the spi bus wired into its driver
structure, but the table is not exported with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE() entry so module alias information
is generated for automatic module loading.
This is a source-level fix. It does not claim dynamic hardware
reproduction; the evidence is the driver-owned match table, its use by
the driver registration structure, and the missing module alias
publication.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
| -rw-r--r-- | drivers/iio/adc/max1241.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/max1241.c b/drivers/iio/adc/max1241.c index fb7f53316e3d..b3cecbf9a89e 100644 --- a/drivers/iio/adc/max1241.c +++ b/drivers/iio/adc/max1241.c @@ -175,6 +175,7 @@ static const struct spi_device_id max1241_id[] = { { .name = "max1241" }, { } }; +MODULE_DEVICE_TABLE(spi, max1241_id); static const struct of_device_id max1241_dt_ids[] = { { .compatible = "maxim,max1241" }, |
