Re: [PATCH v5 RESEND 3/4] i2c: i2c-core-of: Convert i2c_of_match_device_sysfs() to non-static

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

 



On Thu, Aug 03, 2023 at 11:31:01AM +0100, Biju Das wrote:
> Currently i2c_of_match_device_sysfs() is used by i2c_of_match_device().
> Convert this to non-static function for finding match data for the I2C
> sysfs interface using i2c_device_get_match_data() for code reuse.
> 
> While at it, fix the below issues:
>  1) Replace 'of_device_id*'->'of_device_id *' in function definition.
>  2) Fix the alignment in the function definition.
>  3) Change the struct i2c_client parameter as const to avoid overriding
>     the client pointer.

All makes sense
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux