From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Date: Fri, 20 Apr 2012 15:57:34 +0000 Subject: Re: [PATCH 2/4] misc: add LM3533 ambient light sensor driver Message-Id: <20120420155734.GE8327@kroah.com> List-Id: References: <1334935826-12527-1-git-send-email-jhovold@gmail.com> <1334935826-12527-3-git-send-email-jhovold@gmail.com> In-Reply-To: <1334935826-12527-3-git-send-email-jhovold@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Johan Hovold Cc: Richard Purdie , Samuel Ortiz , Arnd Bergmann , Florian Tobias Schandinat , Andrew Morton , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org On Fri, Apr 20, 2012 at 05:30:24PM +0200, Johan Hovold wrote: > Add sub-driver for the ambient light sensor in National Semiconductor / > TI LM3533 lighting power chips. > > Raw ADC values as well as current ALS zone can be retrieved through > sysfs. The ALS zone can also be read using a character device > (/dev/lm3533-als) which is updated on zone changes (interrupt driven or > polled). > > The driver provides a configuration interface through sysfs. Which seems to not be documented at all :( What about using the iio interface for this instead? Doesn't that already provide this standard interface you are looking for? thanks, greg k-h