Re: [PATCH 2/9] iio: adc: ad_sigma_delta: use u8 instead of uint8_t

From: Andy Shevchenko
Date: Mon Jun 23 2025 - 02:52:47 EST


On Fri, Jun 20, 2025 at 05:20:08PM -0500, David Lechner wrote:
> Replace uint8_t with u8 in the ad_sigma_delta driver.
>
> Technically, uint8_t comes from the C standard library, while u8 is a
> Linux kernel type. Since we don't use the C standard library in the
> kernel, we should use the kernel types instead.

...

> unsigned int reset_length = sigma_delta->info->num_resetclks;
> - uint8_t *buf;
> + u8 *buf;
> unsigned int size;
> int ret;

Wondering if in the cases like this we may make it to be reversed xmas tree.

unsigned int reset_length = sigma_delta->info->num_resetclks;
unsigned int size;
u8 *buf;
int ret;

--
With Best Regards,
Andy Shevchenko