Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423263AbbD2OxM (ORCPT ); Wed, 29 Apr 2015 10:53:12 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:48281 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423043AbbD2OxI (ORCPT ); Wed, 29 Apr 2015 10:53:08 -0400 X-Auth-Info: 0jx2CbfIYRlmmbz5cRCpGAlFxKbbbjVBKbXpQ4g4w/E= From: Marek Vasut To: Gabriele Mazzotta Subject: Re: [PATCH] iio: acpi: Add ACPI0008 Ambient Light Sensor Date: Wed, 29 Apr 2015 16:33:18 +0200 User-Agent: KMail/1.13.7 (Linux/3.13-trunk-amd64; KDE/4.13.1; x86_64; ; ) Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, marxin.liska@gmail.com, rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org References: <1430306845-7117-1-git-send-email-gabriele.mzt@gmail.com> <1625165.pchJQFHZZe@xps13> In-Reply-To: <1625165.pchJQFHZZe@xps13> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201504291633.18558.marex@denx.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1809 Lines: 44 On Wednesday, April 29, 2015 at 01:51:21 PM, Gabriele Mazzotta wrote: > On Wednesday 29 April 2015 13:27:25 Gabriele Mazzotta wrote: > > Add basic implementation of the ACPI0008 Ambient Light Sensor driver. > > This driver currently supports only the ALI property, yet is ready to > > be easily extended to handle ALC, ALT, ALP ones as well. > > > > Signed-off-by: Martin Liska > > Signed-off-by: Marek Vasut > > Signed-off-by: Gabriele Mazzotta > > Cc: Zhang Rui > > --- > > This continues http://marc.info/?t=140163463200002 > > > > I've made few adjustments over the original patch: > > - Code aligned with 4.1-rc1 and cleaned up > > - Use signed integers to store values: sensors report 32bit signed > > > > values. In particular, -1 is reported when the current reading > > is above the supported range of sensitivity. > > > > Most of the changes are just a consequence of the changes in the > > iio subsystem. > > > > Gabriele > > I'm sorry, I've just noticed that I haven't changed the value of > realbits in acpi_als_channels. This makes me wonder what would be the > proper value, given that this is a generic driver and all the > information I have are those in the ACPI specification (which states > what I reported here above). > > Should I just set realbits to 32? I believe the ALS reports only 16bit signel value, no ? My observation with a strong coherent light source is that the saturated sensor reported 0xffff . Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/