]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: Add missing MODULE_DEVICE_TABLE
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Wed, 12 May 2021 09:38:44 +0000 (17:38 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:54:24 +0000 (13:54 +0100)
commita9abfcc29e4551ab7d8c2bab1153b3df93635090
tree411849dab8d26d69be6cc91e9a61d97fc4efc557
parent3b605ea397015c67d22bb7782cda35e39d5ab295
iio: adc: Add missing MODULE_DEVICE_TABLE

MODULE_DEVICE_TABLE is used to extract the device information out of the
driver and builds a table when being compiled. If using this macro,
kernel can find the driver if available when the device is plugged in,
and then loads that driver and initializes the device.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/sc27xx_adc.c