]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2583: convert illuminance0_calibscale sysfs attr to use iio_chan_spec
authorBrian Masney <masneyb@onstation.org>
Fri, 28 Oct 2016 10:00:18 +0000 (06:00 -0400)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Nov 2016 18:50:07 +0000 (18:50 +0000)
commit1bfadbb431b8b5c758170f926f02dc484f96cec5
tree085c2a297a58345595130fd13cea738b6f74b22a
parent7845f2abdad52680ae06d52dc0d1b0d680b09c58
staging: iio: tsl2583: convert illuminance0_calibscale sysfs attr to use iio_chan_spec

The illuminance0_calibscale sysfs attribute is not currently created by
the IIO core. This patch adds the appropriate mask to iio_chan_spec,
along with the appropriate data handling in the read_raw() and
write_raw() functions, so that the sysfs attribute is created by the IIO
core. With this change, this sysfs entry will have its prefix changed
from illuminance0_ to in_illuminance_.

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