]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitd884da1a75489e10ccf65fdca41ce8d917bcfbe1
treebbe75a5f63dc492bf564159c34b6741c5724e21d
parent41a4b8f13a39f846747f5cffc58c315e72a29606
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