Linux IIO development
 help / color / mirror / Atom feed
* Re: [RFC PATCH 2/2] iio: light: Add support for LTR559 chip
       [not found]   ` <552680FF.3060604@kernel.org>
@ 2015-04-09 13:44     ` Daniel Baluta
  2015-04-09 22:28       ` sathyanarayanan kuppuswamy
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2015-04-09 13:44 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: knaack.h, lars, pmeerw, daniel.baluta, linux-iio, linux-kernel,
	Kuppuswamy, Sathyanarayanan



On 04/09/2015 04:39 PM, Jonathan Cameron wrote:
> On 31/03/15 11:37, Daniel Baluta wrote:
>> This device is register compatible with LTR501, with a minor difference for
>> ALS control register as showed below:
>>
>> ALS Control register for LTR501:
>>
>>      7      6      5      4      3      2      1      0
>> +------+------+------+------+------+------+------+------+
>> |                           |      |      |             |
>> |        Reserved           | Gain |  SW  |    ALS Mode |
>> |                           |      | Reset|             |
>> +------+------+------+------+------+------+------+------+
>>
>> ALS Control register for LTR559:
>>
>>      7      6      5      4      3      2      1      0
>> +------+------+------+------+------+------+------+------+
>> |                    |                    |      |      |
>> |     Reserved       |        Gain        |  SW  | ALS  |
>> |                    |                    | Reset| Mode |
>> +------+------+------+------+------+------+------+------+
>>
>> We handle this difference by introducing ltr501_chip_info.
>>
>> Datasheet for LTR559 is at:
>> http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf
>>
>> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
> Looks good to me.  Let us know when you've tested it ;)
> Anyhow, one comment inline.  It 'think' you can end up with a device probing
> succesfully with no known name...

Good point.

thanks,
Daniel.

<snip>

>> -	indio_dev->name = LTR501_DRV_NAME;
>> +	indio_dev->name = name;
> Can name still be NULL?  Needs a default value that makes sense.
>>   	indio_dev->modes = INDIO_DIRECT_MODE;

I will fix this and sync with Sathya for the LTR301 support.

thanks,
Daniel.

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

* Re: [RFC PATCH 2/2] iio: light: Add support for LTR559 chip
  2015-04-09 13:44     ` [RFC PATCH 2/2] iio: light: Add support for LTR559 chip Daniel Baluta
@ 2015-04-09 22:28       ` sathyanarayanan kuppuswamy
  0 siblings, 0 replies; 2+ messages in thread
From: sathyanarayanan kuppuswamy @ 2015-04-09 22:28 UTC (permalink / raw)
  To: Daniel Baluta, Jonathan Cameron
  Cc: knaack.h, lars, pmeerw, linux-iio, linux-kernel,
	Kuppuswamy, Sathyanarayanan



On 04/09/2015 06:44 AM, Daniel Baluta wrote:
>
>
> On 04/09/2015 04:39 PM, Jonathan Cameron wrote:
>> On 31/03/15 11:37, Daniel Baluta wrote:
>>> This device is register compatible with LTR501, with a minor 
>>> difference for
>>> ALS control register as showed below:
>>>
>>> ALS Control register for LTR501:
>>>
>>>      7      6      5      4      3      2      1      0
>>> +------+------+------+------+------+------+------+------+
>>> |                           |      |      |             |
>>> |        Reserved           | Gain |  SW  |    ALS Mode |
>>> |                           |      | Reset|             |
>>> +------+------+------+------+------+------+------+------+
>>>
>>> ALS Control register for LTR559:
>>>
>>>      7      6      5      4      3      2      1      0
>>> +------+------+------+------+------+------+------+------+
>>> |                    |                    |      |      |
>>> |     Reserved       |        Gain        |  SW  | ALS  |
>>> |                    |                    | Reset| Mode |
>>> +------+------+------+------+------+------+------+------+
>>>
>>> We handle this difference by introducing ltr501_chip_info.
>>>
>>> Datasheet for LTR559 is at:
>>> http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf 
>>>
>>>
>>> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
>> Looks good to me.  Let us know when you've tested it ;)
>> Anyhow, one comment inline.  It 'think' you can end up with a device 
>> probing
>> succesfully with no known name...
>
> Good point.
>
> thanks,
> Daniel.
>
> <snip>
>
>>> -    indio_dev->name = LTR501_DRV_NAME;
>>> +    indio_dev->name = name;
>> Can name still be NULL?  Needs a default value that makes sense.
>>>       indio_dev->modes = INDIO_DIRECT_MODE;
>
> I will fix this and sync with Sathya for the LTR301 support.

I will send you the re-based LTR301 patch. Please add it your patch set.
>
> thanks,
> Daniel.
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
Sathyanarayanan Kuppuswamy
Android kernel developer


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

end of thread, other threads:[~2015-04-09 22:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1427798235-29602-1-git-send-email-daniel.baluta@intel.com>
     [not found] ` <1427798235-29602-3-git-send-email-daniel.baluta@intel.com>
     [not found]   ` <552680FF.3060604@kernel.org>
2015-04-09 13:44     ` [RFC PATCH 2/2] iio: light: Add support for LTR559 chip Daniel Baluta
2015-04-09 22:28       ` sathyanarayanan kuppuswamy

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