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)
commitf5abfa40a755f70194af3d227e5f2bad86d5c4fc
tree411849dab8d26d69be6cc91e9a61d97fc4efc557
parent347978983b3453bc4d5a917ea34d1cd53b5fea08
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