From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Vasut To: Martin =?utf-8?q?Li=C5=A1ka?= Subject: Re: ACPI ambient light sensor Date: Sun, 8 Jul 2012 22:28:14 +0200 Cc: platform-driver-x86@vger.kernel.org, linux-iio@vger.kernel.org, Zhang Rui , Corentin Chary , joeyli , Len Brown , pavel@denx.de, Jonathan Cameron , Jonathan Cameron References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Message-Id: <201207082228.14318.marex@denx.de> List-ID: Dear Martin Li=C5=A1ka, > Hello, > Iconia Tab W500 contains Ambient Light Sensor (hid 0008), I started > implementing IIO device drive having following questions: >=20 > - chip could offer following variables: illuminance, color chromaticity > and color temperature, how should I connect last 2 vars to any of IIO > CHANNEL types? > - I'm not sure how to connect an illuminance mapping to IIO > infrastructure? See IIO_DEVICE_ATTR() maybe ? > Thank you, > Martin Li=C5=A1ka Best regards, Marek Vasut From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: ACPI ambient light sensor Date: Sun, 8 Jul 2012 22:28:14 +0200 Message-ID: <201207082228.14318.marex@denx.de> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Martin =?utf-8?q?Li=C5=A1ka?= Cc: platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Zhang Rui , Corentin Chary , joeyli , Len Brown , pavel-ynQEQJNshbs@public.gmane.org, Jonathan Cameron , Jonathan Cameron List-Id: platform-driver-x86.vger.kernel.org Dear Martin Li=C5=A1ka, > Hello, > Iconia Tab W500 contains Ambient Light Sensor (hid 0008), I starte= d > implementing IIO device drive having following questions: >=20 > - chip could offer following variables: illuminance, color chromat= icity > and color temperature, how should I connect last 2 vars to any of = IIO > CHANNEL types? > - I'm not sure how to connect an illuminance mapping to IIO > infrastructure? See IIO_DEVICE_ATTR() maybe ? > Thank you, > Martin Li=C5=A1ka Best regards, Marek Vasut