lkml.org 
[lkml]   [2022]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 3/5] iio: pressure: bmp280: simplify driver initialization logic
From
Date
On Mon, 2022-07-04 at 22:10 +0200, Andy Shevchenko wrote:
> On Mon, Jul 4, 2022 at 2:46 AM Angel Iglesias <ang.iglesiasg@gmail.com> wrote:
> >
> > Extended chip_info structure with default values for configuration params
> > to simplify and unify initialization logic for different supported sensors
>
> ...
>
> > +       ret = data->chip_info->read_calib(data, chip_id);
> > +       if (ret < 0) {
> > +               dev_err(data->dev,
> > +                       "failed to read calibration coefficients\n");
> > +               return ret;
>
> return dev_err_probe(...);

Got it, thank you!

> >         }
>
>
Thanks,
Angel Iglesias

\
 
 \ /
  Last update: 2022-07-06 00:58    [W:0.041 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site