From: Pavel Machek Subject: Re: [PATCH V6 2/2] introduce ACPI ALS device driver Date: Tue, 1 Sep 2009 10:13:42 +0200 Message-ID: <20090901081342.GB9942@elf.ucw.cz> References: <1251789956.3483.216.camel@rzhang-dt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60162 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932AbZIAINq (ORCPT ); Tue, 1 Sep 2009 04:13:46 -0400 Content-Disposition: inline In-Reply-To: <1251789956.3483.216.camel@rzhang-dt> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Zhang Rui Cc: Len Brown , Linux Kernel Mailing List , linux-acpi , Greg KH , Dmitry Torokhov Hi! > ACPI spec defines ACPI Ambient Light Sensor device (hid ACPI0008), > which provides a standard interface by which the OS may query properties > of the ambient light environment the system is currently operating in, > as well as the ability to detect meaningful changes in these values when > the environment changes. > +struct acpi_als { > + struct acpi_device *device; > + struct als_device *als_sys; > + int illuminance; > + int chromaticity; > + int temperature; > + int polling; > + int count; > + struct als_mapping *mappings; > +}; chromaticity is write-only variable. I believe you can drop it and associted code. temperature ditto. Drop from this version? polling ditto. Drop from this version? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html