From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: RFC: Light sensors, unifying current options? Date: Fri, 11 Sep 2009 09:20:49 +0200 Message-ID: <20090911092049.70887ad0@hyperion.delvare> References: <4A9FC9D7.20000@cam.ac.uk> <1252308744.3483.414.camel@rzhang-dt> <4AA4F194.1070507@cam.ac.uk> <1252467684.3483.446.camel@rzhang-dt> <4AA79144.8060104@cam.ac.uk> <1252546449.3483.476.camel@rzhang-dt> <4AA8CF57.4010409@cam.ac.uk> <1252634101.3483.514.camel@rzhang-dt> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from poutre.nerim.net ([62.4.16.124]:50508 "EHLO poutre.nerim.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbZIKHUt (ORCPT ); Fri, 11 Sep 2009 03:20:49 -0400 In-Reply-To: <1252634101.3483.514.camel@rzhang-dt> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Zhang Rui Cc: Jonathan Cameron , LKML , "alan@linux.intel.com" , "lenb@kernel.org" , "pavel@ucw.cz" , "Cory T. Tusar" , "Trisal, Kalhan" , linux-acpi On Fri, 11 Sep 2009 09:55:01 +0800, Zhang Rui wrote: > On Thu, 2009-09-10 at 18:05 +0800, Jonathan Cameron wrote: > > Some sensors, e.g. tsl2561 use an internal clock to do sampling and hence > > have some predefined period in which the reading taken doesn't change. > > Perhaps exporting said period would be useful to userspace? > > > I don't think so. > IMO, the tsl2561 driver should handle this, and there is no need to > annoy the user space. > i.e. users always assume the content of "illuminance" attribute is > valid, and it's the driver's job to make this true. We don't need to > document this. I agree with Rui on this. Let's not delegate everything to user-space, otherwise it's pointless to write kernel drivers in the first place. -- Jean Delvare