Re: [PATCH 5/8] media: atomisp: support the Yoga Book OV2740 link
From: Maurizio Casciano
Date: Thu Aug 27 2026 - 19:23:15 EST
Hi Andy,
I checked the final v3 object with pahole after moving code before the two
register-list members. The resulting layout is:
struct ov2740_mode {
u32 width; /* 0 4 */
u32 height; /* 4 4 */
u32 hts; /* 8 4 */
u32 vts_def; /* 12 4 */
u32 vts_min; /* 16 4 */
u32 vts_max; /* 20 4 */
u32 link_freq_index; /* 24 4 */
u32 code; /* 28 4 */
const struct ov2740_reg_list init_reg_list; /* 32 16 */
const struct ov2740_reg_list reg_list; /* 48 16 */
/* size: 64, cachelines: 1, members: 10 */
};
There are no holes or padding. This layout is included in the v3 series
sent as a fresh thread.
With Best Regards,
Maurizio Casciano