Re: [PATCH v3 2/2] i2c: Add i2c_device_get_match_data() callback

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

 



On Wed, Aug 02, 2023 at 09:34:18AM +0000, Biju Das wrote:

...

> > Can we make i2c_of_match_device_sysfs() take a const pointer to a
> > client? Casting away constness is something that we should avoid.
> 
> I agree, we are not supposed to modify client pointer inside
> i2c_of_match_device_sysfs(), so const makes sense here.
> Wolfram, I guess you are ok with it.


Don't forget to do that in a separate patch as well!

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux