Re: [PATCH v2 1/3] iio: inv_sensors: convert to kernel types
From: Andy Shevchenko
Date: Mon Jul 20 2026 - 07:59:56 EST
On Mon, Jul 20, 2026 at 12:38:32PM +0200, Jean-Baptiste Maneyrol via B4 Relay wrote:
> Convert standard types (u)intXX_t to kernel type u/sXX.
Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
...
> void inv_sensors_timestamp_apply_odr(struct inv_sensors_timestamp *ts,
> - uint32_t fifo_period, size_t fifo_nb,
> + u32 fifo_period, size_t fifo_nb,
> unsigned int fifo_no)
> {
> - int64_t interval;
> - uint32_t fifo_mult;
> + s64 interval;
> + u32 fifo_mult;
It makes sense to also amend the ordering to follow reversed xmas tree.
(On a glance there are more places, but let Jonathan to tweak if he feels
so.)
--
With Best Regards,
Andy Shevchenko