lkml.org 
[lkml]   [2009]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] Generic sysfs support for ACPI ALS and other ALS devices
On Tue, Aug 04, 2009 at 03:21:29PM +0200, Pavel Machek wrote:
> On Mon 2009-08-03 17:10:57, Zhang Rui wrote:
> > Hi, all,
> >
> > This is the patch set I made to introduce ACPI ALS device driver
> > and a generic sysfs I/F for all the ALS devices, like ACPI ALS,
> > platform ALS, etc.
> >
> > Patch 01 introduces the ACPI ALS device driver.
> >
> > Patch 02 introduces ALS sysfs class.
> > Two sysfs I/F are created for each ALS device.
> > /sys/class/als/alsX/illuminance:
> > the amount of light incident upon a specified surface area.
> > /sys/class/als/alsX/mappings:
> > ambient light illuminance to display luminance mappings
> > that can be used by an OS to calibrate its ambient light policy
> > this is what I got on a test box:
> > cat /sys/class/als/als0/mappings
> > ???Illuminance Adjustment
> > 0 70
> > 10 73
> > 80 85
> > 300 100
> > 1000 150
>
> There's one value per file for sysfs... You should definitely have the
> header.

No, no "header", just don't do this, it's not allowed. Again,
one-value-per-sysfs-file is the rule, please do not violate it.

> Plus I'd say Documentation/ file is needed.

It's required for any new sysfs file being added to the kernel.

thanks,

greg k-h


\
 
 \ /
  Last update: 2009-08-04 17:17    [W:0.138 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site