Re: [PATCH v2 02/12] i2c: nomadik: optimize struct layout, change unsigned char into u8

From: Linus Walleij

Date: Mon Sep 14 2026 - 10:03:33 EST


On Thu, Sep 3, 2026 at 7:38 AM Dmitry Guzman <Dmitry.Guzman@xxxxxxxxxxxx> wrote:

> Change type of `tft` and `rft` fields of `nmk_i2c_dev` structure from
> `unsigned char` to `u8` and `buffer` field of `i2c_nmk_client` structure
> from `unsigned char *` to `u8 *`.
>
> Put two bool variables `xfer_done` and `has_32b_bus` and two u8 variables
> `tft` and `rft` together in order to reduce struct size wasted for padding.
>
> Signed-off-by: Dmitry Guzman <Dmitry.Guzman@xxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij