Re: [PATCH] iio: mlx90614: Use i2c_get_match_data()

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

 



It should not break some backwards compatibility so:
Acked-by: "Crt Mori <cmo@xxxxxxxxxxx>"

On Sat, 12 Aug 2023 at 18:22, Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote:
>
> Replace device_get_match_data()->i2c_get_match_data() to extend matching
> support for ID table.
>
> Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> ---
>  drivers/iio/temperature/mlx90614.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/mlx90614.c
> index 07bb5df24ab3..740018d4b3df 100644
> --- a/drivers/iio/temperature/mlx90614.c
> +++ b/drivers/iio/temperature/mlx90614.c
> @@ -600,7 +600,7 @@ static int mlx90614_probe(struct i2c_client *client)
>         data->client = client;
>         mutex_init(&data->lock);
>         data->wakeup_gpio = mlx90614_probe_wakeup(client);
> -       data->chip_info = device_get_match_data(&client->dev);
> +       data->chip_info = i2c_get_match_data(client);
>
>         mlx90614_wakeup(data);
>
> --
> 2.25.1
>



[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