staging: iio: tsl2583: use IIO_*_ATTR* macros to create sysfs entries
authorBrian Masney <masneyb@onstation.org>
Fri, 28 Oct 2016 10:00:19 +0000 (06:00 -0400)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Nov 2016 18:50:07 +0000 (18:50 +0000)
commitb2fa81be96ca315a164ef7bc1d87fbf025fd9954
tree6bc733628a7d05a247e64237eb56334db58bf833
parent143c30f4a51ebff3474643994499468cf56240af
staging: iio: tsl2583: use IIO_*_ATTR* macros to create sysfs entries

Use the IIO_CONST_ATTR, IIO_DEVICE_ATTR_RW, and IIO_DEVICE_ATTR_WO
macros for creating the in_illuminance_calibscale_available,
in_illuminance_integration_time_available, in_illuminance_input_target,
in_illuminance_calibrate, and in_illuminance_lux_table sysfs entries.
Previously these sysfs entries were prefixed with illuminance0_, however
they are now prefixed with in_illuminance_ to make these sysfs entries
consistent with how the IIO core is creating the other sysfs entries.

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