Re: [PATCH v2 3/5] iio: pressure: bmp280: simplify driver initialization logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 4, 2022 at 2:46 AM Angel Iglesias <ang.iglesiasg@xxxxxxxxx> 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(...);

>         }


-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux