public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/2] Add support for LTR-301 and LTR-559 sensors
@ 2015-04-21 16:10 Daniel Baluta
  2015-04-21 16:10 ` [PATCH v8 1/2] iio: ltr501: Add support for ltr559 chip Daniel Baluta
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Daniel Baluta @ 2015-04-21 16:10 UTC (permalink / raw)
  To: sathyanarayanan.kuppuswamy, jic23
  Cc: pmeerw, linux-iio, srinivas.pandruvada, daniel.baluta

This patchset adds support for LiteOn LTR301 ambient light sensor
and LTR559 ambient light and proximity sensor.

I will just leave this here if Sathya needs to push support for LTR-301.
Minimal tested. I will be back in few days with more testing.

v8:

1. Rebased on the latest linux-iio testing branch.

v7:
1. Rebase LTR-301 on top of LTR-559 and merged the patches into a single patchset
2. Moved ltr501_chip_info_tbl below ltr501_info in patch 1 in order
to make patch 2 changes look natural. :)
3. Moved "else" branch of id check from patch 2 to patch 1. Now it is no
longer possible to have a NULL name after this check. If id is not NULL
than id->name is one of ltr501_id already defined strings.

v6:
1. Changed the title in commit log

v5:
1. Rebased this patch on top of Daniel's LTR559 patchset
   (http://marc.info/?l=linux-kernel&m=142779827617036&w=2)
2. Added info and channel members to chip_info struture.

v4:
1. Addressed minor comments from Peter Meerwald
2. Changed invalid chip id errno from ENOSYS to ENODEV
3. Fixed channel id index number
4. Removed unused variable.

v3:
1. Sent v2 before by mistake. So sending the final version of v2 as v3.

v2:
1. Handled device id NULL case in probe
2. Changed pr_warn to dev_warn

v1:
Extended LTR501 driver to support both LTR301 and LTR501 device.

Daniel Baluta (2):
  iio: ltr501: Add support for ltr559 chip
  iio: ltr501: Add support for ltr301 chip

 drivers/iio/light/Kconfig  |   3 +-
 drivers/iio/light/ltr501.c | 290 +++++++++++++++++++++++++++++++++++++++------
 2 files changed, 256 insertions(+), 37 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-04-26 15:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 16:10 [PATCH v8 0/2] Add support for LTR-301 and LTR-559 sensors Daniel Baluta
2015-04-21 16:10 ` [PATCH v8 1/2] iio: ltr501: Add support for ltr559 chip Daniel Baluta
2015-04-26 15:55   ` Jonathan Cameron
2015-04-21 16:11 ` [PATCH v8 2/2] iio: ltr501: Add support for ltr301 chip Daniel Baluta
2015-04-21 16:23   ` Kuppuswamy Sathyanarayanan
2015-04-21 16:27     ` Daniel Baluta
2015-04-21 17:26       ` Kuppuswamy Sathyanarayanan
2015-04-21 17:55     ` Jonathan Cameron
2015-04-26  7:18       ` Sathyanarayanan Kuppuswamy
2015-04-26 15:56   ` Jonathan Cameron
2015-04-21 16:24 ` [PATCH v8 0/2] Add support for LTR-301 and LTR-559 sensors Kuppuswamy Sathyanarayanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox