]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being...
authorBrian Masney <masneyb@onstation.org>
Thu, 10 Nov 2016 09:25:38 +0000 (04:25 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Nov 2016 16:22:53 +0000 (16:22 +0000)
commit2167769aed61782b7b966b9dfaac8e357fa5c516
tree733a77c1537b8a8cc2b2901c68286625714f7d6d
parentc908fb76b29b3eb527eb7feef260bba7057680f5
staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

When updating the in_illuminance_calibscale and
in_illuminance_integration_time sysfs attributes, these values were not
actually written to the chip. The chip would continue to use the old
parameters. Extracted out tsl2583_set_als_gain() and
tsl2583_set_als_time() functions that are now called when these sysfs
attributes are updated. The chip initialization also calls these these
new functions.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c