RE: [PATCH v4] i2c: Add i2c_get_match_data()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wolfram Sang,

> Subject: Re: [PATCH v4] i2c: Add i2c_get_match_data()
> 
> On Wed, Jun 07, 2023 at 05:57:38PM +0100, Biju Das wrote:
> > Add i2c_get_match_data() to get match data for I2C, ACPI and DT-based
> > matching, so that we can optimize the driver code.
> >
> > Suggested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> 
> No further comments, yet I like it, so:
> 
> Applied to for-next, thanks!
> 
> With one minor change, I hope you are okay with it:
> 
> > +	struct device_driver *drv = client->dev.driver;
> > +	struct i2c_driver *driver = to_i2c_driver(drv);
> 
> Variables 'drv' and 'driver' sounds like it could cause confusion later.
> I merged the two and eliminated 'drv' that way.

Yes, it is much better.

Cheers,
Biju





[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux