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

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

 



Hi Andy,

> Subject: Re: [PATCH] iio: pressure: bmp280: Use i2c_get_match_data()
> 
> 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?

Yes down,

return bmp280_common_probe( ..,id->name,..);

Cheers,
Biju




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux