Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1319145
| From | Daniel Baluta <daniel.baluta@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support |
| Date | 2016-01-27 17:40 +0100 |
| Message-ID | <qVBiq-6lh-17@gated-at.bofh.it> (permalink) |
| References | <qQSWC-197-19@gated-at.bofh.it> <qRxQ5-486-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Jan 16, 2016 at 2:07 PM, Jonathan Cameron <jic23@kernel.org> wrote:
> On 14/01/16 16:25, Daniel Baluta wrote:
>> The driver has sysfs readings with runtime PM support for power saving.
>> It also offers buffer support that can be used together with IIO software
>> triggers.
>>
>> Datasheet can be found here:
>> http://www.ti.com.cn/cn/lit/ds/symlink/ads1015.pdf
>>
>> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Thanks for the feedback! Few questions below.
> The hwmon compatibility stuff has been covered by others so I'll just assume
> you'll sort that out :)
>
> Various bits and bobs inline.
Do you think it is worth to have both of the drivers in parallel for a
period until
we figure out that everything is correct? The IIO config symbol can be enabled
only hwmon symbol is not enabled?
<snip>
>> +struct ads1015_data {
> I was a little suprised to see both the i2c_client and regmap in here...
> Could use regmap_get_device for most if not all uses in here of the
> client pointer..
That's a good point. Anyhow, there is no single instance of regmap_get_device
in the IIO tree. I counted at least 4 drivers where we could use it.
Do you think
is there a great benefit from using it?
This will be a nice change for Linux kernel outreachy applicants :).
I'm sure they will
love to work on it.
>> + struct i2c_client *client;
>> + struct regmap *regmap;
> You only use buffer[0] that I can see...
The rest should be for the timestamp and I will fix it :).
<snip>
thanks,
Daniel.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support Jonathan Cameron <jic23@kernel.org> - 2016-01-16 13:10 +0100
Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support Daniel Baluta <daniel.baluta@intel.com> - 2016-01-27 17:40 +0100
Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support Jonathan Cameron <jic23@jic23.retrosnub.co.uk> - 2016-01-27 18:30 +0100
csiph-web