Re: [PATCH] iio: pressure: bmp280: Use i2c_get_match_data()

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

 



On Sat, Aug 12, 2023 at 06:58:08PM +0100, Biju Das wrote:
> Replace device_get_match_data() and id lookup for retrieving match data
> by i2c_get_match_data().

...

>  	const struct i2c_device_id *id = i2c_client_get_device_id(client);
>  
> -	chip_info = device_get_match_data(&client->dev);
> -	if (!chip_info)
> -		chip_info = (const struct bmp280_chip_info *) id->driver_data;
> +	chip_info = i2c_get_match_data(client);

Is id still in use?

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