Re: [PATCH] iio staging: cleanup documentation for tsl2583

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/06/2012 06:08 PM, Peter Meerwald wrote:
> drop Documentation/sysfs-bus-iio-light-tsl2583 and merge content with
> Documentation/light/sysfs-bus-iio-light-tsl2583 together with some obvious
> fixes:
> in_illuminance0_calibrate -> illuminance0_calibrate

Hmm. arguably it is the driver that is wrong for this first one, not the
documentation.  If we ever put calibrate into the core it will be named
in_illuminance0_calibrate given it is easier to over specify the channel
type than to work out when we don't need to say it is an input.

Otherwise a sensible patch.

Jon, would how much pain would changing the interface to add the in_ prefix
hurt your customers?  At an absolute push we could keep the existing and add
a version with the in_ prefix as well (and the deprecate the old one over
a couple of cycles).

On another note, we should look at doing any other cleanup (beyond this
good work by Peter!) with a view to getting the TAOS light drivers out of
staging...


> lux_table -> illuminance0_lux_table
> 
> Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx>
> Cc: J. August Brenner <jbrenner@xxxxxxxxxxx>
> ---
>  .../light/sysfs-bus-iio-light-tsl2583              |   16 +++++++++++++++-
>  .../iio/Documentation/sysfs-bus-iio-light-tsl2583  |   20 --------------------
>  2 files changed, 15 insertions(+), 21 deletions(-)
>  delete mode 100644 drivers/staging/iio/Documentation/sysfs-bus-iio-light-tsl2583
> 
> diff --git a/drivers/staging/iio/Documentation/light/sysfs-bus-iio-light-tsl2583 b/drivers/staging/iio/Documentation/light/sysfs-bus-iio-light-tsl2583
> index 470f7ad..e9716b9 100644
> --- a/drivers/staging/iio/Documentation/light/sysfs-bus-iio-light-tsl2583
> +++ b/drivers/staging/iio/Documentation/light/sysfs-bus-iio-light-tsl2583
> @@ -1,6 +1,20 @@
> -What:		/sys/bus/iio/devices/device[n]/in_illuminance0_calibrate
> +What:		/sys/bus/iio/devices/device[n]/illuminance0_lux_table
> +KernelVersion:	2.6.37
> +Contact:	linux-iio@xxxxxxxxxxxxxxx
> +Description:
> +		This property gets/sets the table of coefficients
> +		used in calculating illuminance in lux.
> +
> +What:		/sys/bus/iio/devices/device[n]/illuminance0_calibrate
>  KernelVersion:	2.6.37
>  Contact:	linux-iio@xxxxxxxxxxxxxxx
>  Description:
>  		This property causes an internal calibration of the als gain trim
>  		value which is later used in calculating illuminance in lux.
> +
> +What:		/sys/bus/iio/devices/device[n]/illuminance0_input_target
> +KernelVersion:	2.6.37
> +Contact:	linux-iio@xxxxxxxxxxxxxxx
> +Description:
> +		This property is the known externally illuminance (in lux).
> +		It is used in the process of calibrating the device accuracy.
> diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-light-tsl2583 b/drivers/staging/iio/Documentation/sysfs-bus-iio-light-tsl2583
> deleted file mode 100644
> index 660781d..0000000
> --- a/drivers/staging/iio/Documentation/sysfs-bus-iio-light-tsl2583
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -What:		/sys/bus/iio/devices/device[n]/lux_table
> -KernelVersion:	2.6.37
> -Contact:	linux-iio@xxxxxxxxxxxxxxx
> -Description:
> -		This property gets/sets the table of coefficients
> -		used in calculating illuminance in lux.
> -
> -What:		/sys/bus/iio/devices/device[n]/illuminance0_calibrate
> -KernelVersion:	2.6.37
> -Contact:	linux-iio@xxxxxxxxxxxxxxx
> -Description:
> -		This property causes an internal calibration of the als gain trim
> -		value which is later used in calculating illuminance in lux.
> -
> -What:		/sys/bus/iio/devices/device[n]/illuminance0_input_target
> -KernelVersion:	2.6.37
> -Contact:	linux-iio@xxxxxxxxxxxxxxx
> -Description:
> -		This property is the known externally illuminance (in lux).
> -		It is used in the process of calibrating the device accuracy.
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux