]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitdeaecbef366497c3435b573fed7991d89af9f59c
treec711ec1f0e4e0e8d81072497a0f5abad8c5e052e
parent59dba8facb4ba20ffa6b6a1c76c41f3c662e075a
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