Re: [PATCH] regulator: sy8824x: Make similar OF and ID table

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

 



On Sat, Aug 26, 2023 at 06:11:58PM +0100, Biju Das wrote:
> Make similar OF and ID table to extend support for ID match using
> i2c_match_data(). Currently it works only for OF match tables as the
> driver_data is wrong for ID match.

...

>  	{ }
>  };
>  MODULE_DEVICE_TABLE(of, sy8824_dt_ids);

...

>  static const struct i2c_device_id sy8824_id[] = {
> -	{ "sy8824", },
> +	{ "sy8824", (kernel_ulong_t)&sy8824c_cfg },

>  	{ },

Here is even inconsistency with usage of trailing comma in the terminator
entry.

>  };

-- 
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