Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318445 > unrolled thread
| Started by | Lucas De Marchi <lucas.de.marchi@gmail.com> |
|---|---|
| First post | 2016-01-26 23:30 +0100 |
| Last post | 2016-01-27 11:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support Lucas De Marchi <lucas.de.marchi@gmail.com> - 2016-01-26 23:30 +0100
Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support Daniel Baluta <daniel.baluta@intel.com> - 2016-01-27 11:00 +0100
| From | Lucas De Marchi <lucas.de.marchi@gmail.com> |
|---|---|
| Date | 2016-01-26 23:30 +0100 |
| Subject | Re: [PATCH] iio: adc: Add TI ADS1015 ADC driver support |
| Message-ID | <qVkhA-2q0-19@gated-at.bofh.it> |
Hi,
On Thu, Jan 14, 2016 at 2:25 PM, Daniel Baluta <daniel.baluta@intel.com> 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>
> ---
[ ... ]
> +static const struct i2c_device_id ads1015_id[] = {
> + {"ads1015", 0},
shouldn't this be ti-ads1015 so not to clash with the hwmon driver?
> + {}
> +};
> +MODULE_DEVICE_TABLE(i2c, ads1015_id);
> +
> +static struct i2c_driver ads1015_driver = {
> + .driver = {
> + .name = ADS1015_DRV_NAME,
same here, otherwise we will have an i2c:ads1015 alias
Lucas De Marchi
[toc] | [next] | [standalone]
| From | Daniel Baluta <daniel.baluta@intel.com> |
|---|---|
| Date | 2016-01-27 11:00 +0100 |
| Message-ID | <qVv3k-1Ak-3@gated-at.bofh.it> |
| In reply to | #1318445 |
On Wed, Jan 27, 2016 at 12:28 AM, Lucas De Marchi
<lucas.de.marchi@gmail.com> wrote:
> Hi,
>
> On Thu, Jan 14, 2016 at 2:25 PM, Daniel Baluta <daniel.baluta@intel.com> 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>
>> ---
>
> [ ... ]
>
>> +static const struct i2c_device_id ads1015_id[] = {
>> + {"ads1015", 0},
>
> shouldn't this be ti-ads1015 so not to clash with the hwmon driver?
The plan is to remove hwmon driver and replace it with the a backward
compatbile IIO driver.
I am now working to address the comments from this thread and send a v2
asap.
>
>> + {}
>> +};
>> +MODULE_DEVICE_TABLE(i2c, ads1015_id);
>> +
>> +static struct i2c_driver ads1015_driver = {
>> + .driver = {
>> + .name = ADS1015_DRV_NAME,
>
> same here, otherwise we will have an i2c:ads1015 alias
thanks,
Daniel.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web