Re: [PATCH 3/3] iio: pressure: dps310: keep the user's settings across a timeout reset
From: Joshua Crofts
Date: Fri Oct 30 2026 - 04:22:56 EST
On Fri, 30 Oct 2026 00:06:35 +0200
Rupesh Majhi <zoone.rupert@xxxxxxxxx> wrote:
...
> @@ -328,10 +327,14 @@ static int dps310_startup(struct dps310_data *data)
> return rc;
>
> /* Temp and pressure shifts are disabled when PRC <= 8 */
> - rc = regmap_write_bits(data->regmap, DPS310_CFG_REG,
> - DPS310_PRS_SHIFT_EN | DPS310_TMP_SHIFT_EN, 0);
> - if (rc)
> - return rc;
> + return regmap_write_bits(data->regmap, DPS310_CFG_REG,
> + DPS310_PRS_SHIFT_EN | DPS310_TMP_SHIFT_EN, 0);
> +}
> +
> +static int dps310_startup(struct dps310_data *data)
> +{
> + int rc;
> + int ready;
A very small nit, but reverse xmas tree.
--
Kind regards,
Joshua Crofts