Re: [PATCH v6 3/4] media: i2c: og0ve1b: Introduce per-sensor data structure
From: Sakari Ailus
Date: Thu Sep 10 2026 - 04:35:42 EST
On Thu, Sep 10, 2026 at 04:14:49PM +0800, Wenmeng Liu wrote:
> > > + u64 chip_id;
> >
> > This one seems to be unused.
> >
>
> It is currently used by og0ve1b_identify_sensor().
>
> The intention of moving chip_id into the sensor_data structure is to
> prepare for support of additional sensors sharing the common driver
> code. The next patch in the series adds OG0VA1B support, which uses a
> different chip ID. Keeping chip_id in the per-sensor data allows the
> common identification code to be reused unchanged.
Ok, sounds good.
--
Sakari Ailus