OSDN Git Service

Staging: iio: adt7316: Add of_device_id table
authorShreeya Patel <shreeya.patel23498@gmail.com>
Tue, 20 Nov 2018 16:52:30 +0000 (22:22 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Nov 2018 11:43:47 +0000 (11:43 +0000)
commitf8f612530e6010cef1971ec986d55d04269d1365
treeebc2ec991fb62f3059ed2f8e2b5ecb284022b0cf
parent50314f98b0ac468218e7c9af8c99f215a35436df
Staging: iio: adt7316: Add of_device_id table

When the kernel starts up, it kicks off compiled-in drivers
that match “compatible” entries it finds in the device tree.
At a later stage (when /lib/modules is available), all kernel modules
that match “compatible” entries in the device tree are loaded.

But if there is no dt table then there should be a fall back path
with which desired kernel modules can be loaded. Hence, add
of_device_id table in the i2c driver to be able to use when there
is no dt table.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/addac/adt7316-i2c.c