lkml.org 
[lkml]   [2023]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 2/2] iio: pressure: driver for Honeywell HSC/SSC series

hello,

On Thu, Nov 30, 2023 at 03:33:02PM +0200, Andy Shevchenko wrote:
> On Wed, Nov 29, 2023 at 09:12:52PM +0200, Petre Rodan wrote:
> > On Wed, Nov 29, 2023 at 07:24:31PM +0200, Andy Shevchenko wrote:
> >
> > 437: ret = device_property_read_string(dev, "honeywell,pressure-triplet",
> > &triplet);
> > [..]
> > 455: ret = match_string(hsc_triplet_variants, HSC_VARIANTS_MAX,
> > triplet);
> > if (ret < 0)
> > return dev_err_probe(dev, -EINVAL,
> > "honeywell,pressure-triplet is invalid\n");
> >
> > hsc->pmin = hsc_range_config[ret].pmin;
> > hsc->pmax = hsc_range_config[ret].pmax;
> >
> > triplet is got via device_property_read_string(), is there some other property
> > function I should be using?
>
> I think I mentioned that API, but for your convenience
> device_property_match_property_string().

one of us is not sync-ed with 6.7.0-rc3 :)

cheers,
peter

\
 
 \ /
  Last update: 2023-12-02 17:06    [W:0.067 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site