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)
commit143c30f4a51ebff3474643994499468cf56240af
tree085c2a297a58345595130fd13cea738b6f74b22a
parentb3d941550d9d3753ed76f09c9b1015c777f41f17
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