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

Linus Walleij linusw at kernel.org
Mon Sep 14 05:19:35 PDT 2026


On Thu, Sep 3, 2026 at 7:38 AM Dmitry Guzman <Dmitry.Guzman at mobileye.com> 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 at mobileye.com>

Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list