]> git.baikalelectronics.ru Git - kernel.git/commit
iio:light:tsl2563 use generic fw accessors
authorVaishnav M A <vaishnav@beagleboard.org>
Sun, 18 Oct 2020 20:35:52 +0000 (02:05 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Nov 2020 15:28:55 +0000 (15:28 +0000)
commit29b8733cc5b3d3391731a94636566e5ba987d854
treebbe75a5f63dc492bf564159c34b6741c5724e21d
parentf7f386c90d12f16ae6a03f488fbe56f236095fa5
iio:light:tsl2563 use generic fw accessors

Replace of_property_read_u32() with device_property_read_u32(),
when reading the amstaos,cover-comp-gain.This opens up the
possibility of passing the properties during platform instantiation
of the device by a suitable populated struct property_entry.
Additionally, a minor change in logic is added to remove the
of_node present check.

Signed-off-by: Vaishnav M A <vaishnav@beagleboard.org>
Link: https://lore.kernel.org/r/20201018203552.GA816421@ubuntu
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2563.c