staging: iio: tsl2x7x: convert in_proximity0_calibscale_available to use IIO_CONST_ATTR
authorBrian Masney <masneyb@onstation.org>
Thu, 19 Oct 2017 20:06:25 +0000 (16:06 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Oct 2017 17:36:29 +0000 (18:36 +0100)
commit972845c3cb063ad8183b651cd97e32c4ecb7e831
tree4cb596b202007620bc8d8281aec1e3ead97c90c5
parent8c1c135f74282c35b6bebd2db6710c7a8e17aab5
staging: iio: tsl2x7x: convert in_proximity0_calibscale_available to use IIO_CONST_ATTR

The sysfs attribute in_proximity0_calibscale_available is currently
created by using DEVICE_ATTR_RO(). Convert this over to use
IIO_CONST_ATTR().

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c