lkml.org 
[lkml]   [2022]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] iio: adc: ti-adc128s052: Fix number of channels when device tree is used
On Fri, Jul 1, 2022 at 5:41 AM Nishanth Menon <nm@ti.com> wrote:
> On 18:01-20220630, Nishanth Menon wrote:

...

> > static const struct of_device_id adc128_of_match[] = {
> > - { .compatible = "ti,adc128s052", },
> > - { .compatible = "ti,adc122s021", },
> > - { .compatible = "ti,adc122s051", },
> > - { .compatible = "ti,adc122s101", },
> > - { .compatible = "ti,adc124s021", },
> > - { .compatible = "ti,adc124s051", },
> > - { .compatible = "ti,adc124s101", },
> > + { .compatible = "ti,adc128s052", .data = 0},
>
> I should probably cast these as .data = (void *)0 thoughts?

The 0 is default. You shouldn't use that in the first place for
something meaningful rather than "no, we have no driver data for this
chip).

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2022-07-01 12:10    [W:0.839 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site