]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec
authorBrian Masney <masneyb@onstation.org>
Thu, 19 Oct 2017 20:06:20 +0000 (16:06 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Oct 2017 17:31:06 +0000 (18:31 +0100)
commit7940e2cdadf7b91952e2722069115bf20a7417d1
treec711ec1f0e4e0e8d81072497a0f5abad8c5e052e
parentb06f5301c28148735f0b241dbfe97abd3875ae3c
staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec

The sysfs attributes in_intensity0_thresh_period and
in_proximity0_thresh_period are currently directly created by the driver.
This patch migrates the creation of these sysfs attributes from the driver
to using the IIO core via iio_event_spec.

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