[PATCH V3 2/9] iio: imu: inv_icm42607: Add Core for inv_icm42607 Driver
Andy Shevchenko
andriy.shevchenko at intel.com
Tue Apr 14 00:14:48 PDT 2026
On Mon, Apr 13, 2026 at 08:06:54PM +0100, Jonathan Cameron wrote:
> On Mon, 30 Mar 2026 14:58:46 -0500
> Chris Morgan <macroalpha82 at gmail.com> wrote:
...
> > + if (!conf->temp_en)
> > + val |= INV_ICM42607_PWR_MGMT0_ACCEL_LP_CLK_SEL;
>
> Could make this
> val |= FIELD_PREP(INV_ICM42607_PWR_MGMT0_ACCEL_LP_CLK_SEL,
> !conf->temp_en);
> Not particularly important though if you prefer the if.
Isn't this becomes FIELD_MODIFY()?
--
With Best Regards,
Andy Shevchenko
More information about the Linux-rockchip
mailing list