From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752583AbZHEE2w (ORCPT ); Wed, 5 Aug 2009 00:28:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752330AbZHEE2u (ORCPT ); Wed, 5 Aug 2009 00:28:50 -0400 Received: from mga14.intel.com ([143.182.124.37]:60056 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbZHEE2t (ORCPT ); Wed, 5 Aug 2009 00:28:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,324,1246863600"; d="scan'208";a="172368708" Subject: Re: [PATCH 0/3] Generic sysfs support for ACPI ALS and other ALS devices From: Zhang Rui To: Greg KH Cc: Pavel Machek , linux-acpi , Linux Kernel Mailing List , Len Brown , Richard Purdie , Matthew Garrett In-Reply-To: <20090804151042.GA20276@kroah.com> References: <1249290657.2670.250.camel@rzhang-dt> <20090804132129.GH18974@elf.ucw.cz> <20090804151042.GA20276@kroah.com> Content-Type: text/plain; charset=utf-8 Date: Wed, 05 Aug 2009 08:55:55 +0800 Message-Id: <1249433755.2670.379.camel@rzhang-dt> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-08-04 at 23:10 +0800, Greg KH wrote: > 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. > Okay. how about /sys/class/als/als0/mapping{0, 1, ...}/illuminance and /sys/class/als/als0/mapping{0, 1, ...}/adjustment > > Plus I'd say Documentation/ file is needed. > > It's required for any new sysfs file being added to the kernel. > Okay, I'll add the document file. thanks, rui