Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1742421
| From | Brian Masney <masneyb@onstation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/3] staging: iio: tsl2x7x: staging cleanups |
| Date | 2017-09-30 03:10 +0200 |
| Message-ID | <uves2-5vQ-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch set converts several sysfs attributes from directly being
created by the driver to be created by iio_chan_spec and iio_event_spec.
There is also a patch to shorten the length of a variable to fix an
issue that I encountered with some lines that were over 80 characters
with this refactoring.
Driver tested using a TSL2771 hooked up to a Raspberry Pi 2.
List of sysfs attributes before and after my changes:
raspberrypi:/sys/bus/iio/devices/iio:device0$ find . -type f | sort
./dev
./events/in_intensity0_thresh_falling_en
./events/in_intensity0_thresh_falling_value
./events/in_intensity0_thresh_period
./events/in_intensity0_thresh_rising_en
./events/in_intensity0_thresh_rising_value
./events/in_proximity0_thresh_falling_en
./events/in_proximity0_thresh_falling_value
./events/in_proximity0_thresh_period
./events/in_proximity0_thresh_rising_en
./events/in_proximity0_thresh_rising_value
./in_illuminance0_calibrate
./in_illuminance0_calibscale_available
./in_illuminance0_input
./in_illuminance0_integration_time
./in_illuminance0_integration_time_available
./in_illuminance0_lux_table
./in_illuminance0_target_input
./in_intensity0_calibbias
./in_intensity0_calibscale
./in_intensity0_raw
./in_intensity1_raw
./in_proximity0_calibrate
./in_proximity0_raw
./name
./power/autosuspend_delay_ms
./power/control
./power/runtime_active_time
./power/runtime_status
./power/runtime_suspended_time
./uevent
Brian Masney (3):
staging: iio: tsl2x7x: rename tsl2x7x_settings variable to settings
staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs
attribute to iio_chan_spec
staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to
iio_event_spec
drivers/staging/iio/light/tsl2x7x.c | 418 ++++++++++++------------------------
1 file changed, 141 insertions(+), 277 deletions(-)
--
2.13.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/3] staging: iio: tsl2x7x: staging cleanups Brian Masney <masneyb@onstation.org> - 2017-09-30 03:10 +0200
[PATCH 2/3] staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec Brian Masney <masneyb@onstation.org> - 2017-09-30 03:10 +0200
Re: [PATCH 2/3] staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec Jonathan Cameron <jic23@kernel.org> - 2017-10-01 12:20 +0200
[PATCH 1/3] staging: iio: tsl2x7x: rename tsl2x7x_settings variable to settings Brian Masney <masneyb@onstation.org> - 2017-09-30 03:10 +0200
Re: [PATCH 1/3] staging: iio: tsl2x7x: rename tsl2x7x_settings variable to settings Jonathan Cameron <jic23@kernel.org> - 2017-10-01 12:20 +0200
[PATCH 3/3] staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec Brian Masney <masneyb@onstation.org> - 2017-09-30 03:20 +0200
Re: [PATCH 3/3] staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec Jonathan Cameron <jic23@kernel.org> - 2017-10-01 12:20 +0200
Re: [PATCH 3/3] staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec Brian Masney <masneyb@onstation.org> - 2017-10-01 13:00 +0200
csiph-web