Re: [PATCH] iio: temperature: tmp117: Convert enum->pointer for data in the match tables

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

 



On 23-08-28, Jonathan Cameron wrote:
> On Sat, 12 Aug 2023 17:11:54 +0100
> Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote:
> 
> > Convert enum->pointer for data in the match tables, so that
> > device_get_match_data() can do match against OF/ACPI/I2C tables, once i2c
> > bus type match support added to it.
> > 
> > Add struct tmp11x_info and replace enum->struct *tmp11x_info for data in
> > the match table. Drop tmp117_identify() and simplify tmp117_probe() by
> > replacing device_get_match_data() and id lookup for retrieving data by
> > i2c_get_match_data().
> > 
> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> 
> +CC Marco who has been active on this driver recently.
> 
> I'll apply it in the meantime, but still very much open to review comments.

LGTM, thanks for the work on i2c_get_match_data().

Reviewed-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>



[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