Staging: iio: Documentation: Remove unused sysfs attributes
Subsystems (3)
PATCH 1/1 Staging: iio: Documentation: Remove unused sysfs attributes
This patch removes the unused sysfs attributes range, range_available, adc_resolution and adc_resolution_available.
--- .../staging/iio/Documentation/sysfs-bus-iio-light | 28 ---------------------- 1 file changed, 28 deletions(-)
drivers/staging/iio/Documentation/sysfs-bus-iio-light +0 -28
@@ -1,31 +1,3 @@ - -What: /sys/bus/iio/devices/device[n]/range -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent ADC Full Scale Range used for some ambient - light sensors in calculating lux. - -What: /sys/bus/iio/devices/device[n]/range_available -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent supported vales for ADC Full Scale Range. - -What: /sys/bus/iio/devices/device[n]/adc_resolution -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent ADC resolution of the ambient light sensor - used in calculating the lux. - -What: /sys/bus/iio/devices/device[n]/adc_resolution_available -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent list of possible values supported for the - adc_resolution of the given sensor. - What: /sys/bus/iio/devices/device[n]/in_illuminance0[_input|_raw] KernelVersion: 2.6.35 Contact: [email protected]
Signature · 1 line
2.1.4
Quoted 4 lines · Shraddha Barke
This patch removes the unused sysfs attributes range,
range_available,adc_resolutionandadc_resolution_available.Signed-off-by Shraddha Barke <[email protected]>
Applied,
If you are of a mind to do it, it would also be good to prune general attributes that are mirrored in Documentation/ABI/testing/sysfs-bus-iio* out of this staging version as well.
That would clear
in_illuminance0_[raw|input]
in_proximity0_[raw|input]
intensity_infrared_[raw|input] (though this one is bogus anyway given the lack of prefix). in_illuminance0_integration_timein_intensity_clear...in_intensity_red... (though curiously some of these are not documented in the Documentation dir but should be as their integration_time parts are!)
Other elements in here don't look to be used in staging either so could at least be dropped from this file.
CCT. I'm having trouble remembering which part resulted in this being added! It was a patch from Jon at TAOS (now AMS). cc'd on off chance he can provide more info or get back to us with a driver or two ;) I'd actually be inclined to just move this particular bit of documentation directly to the non staging file. It's used by out of tree drivers (presumably given Jon had some reason to propose it) and supported by the core so lets just lift the ABI doc out of staging.
lux_table - this was always black magic and part specific - nasty non linear mappings - not much we can do about this one so leave it there until the two taos driver using it move out of staging then stick it in a taos specific ABI doc.
target - much the same.on_chip_ambient_infrared_supression - much the same.
Anyhow, just a few thoughts. Keep up the good work!
Jonathan
Quoted 41 lines
--- .../staging/iio/Documentation/sysfs-bus-iio-light | 28 ---------------------- 1 file changed, 28 deletions(-)drivers/staging/iio/Documentation/sysfs-bus-iio-light +0
-28@@ -1,31 +1,3 @@ - -What: /sys/bus/iio/devices/device[n]/range -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent ADC Full Scale Range used for some ambient - light sensors in calculating lux. - -What: /sys/bus/iio/devices/device[n]/range_available -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent supported vales for ADC Full Scale Range. - -What: /sys/bus/iio/devices/device[n]/adc_resolution -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent ADC resolution of the ambient light sensor - used in calculating the lux. - -What: /sys/bus/iio/devices/device[n]/adc_resolution_available -KernelVersion: 2.6.37 -Contact: [email protected] -Description: - Hardware dependent list of possible values supported for the - adc_resolution of the given sensor. - What: /sys/bus/iio/devices/device[n]/in_illuminance0[_input|_raw] KernelVersion: 2.6.35 Contact: [email protected]