Re: [PATCH v2 2/2] iio: magnetometer: add support for Melexis MLX90393
From: Uwe Kleine-König
Date: Thu Jun 18 2026 - 13:27:04 EST
Hello,
On Thu, Jun 18, 2026 at 09:31:41PM +0530, Nikhil Gautam wrote:
> +static const struct i2c_device_id mlx90393_id[] = {
> + { "mlx90393" },
> + { }
Please make that:
{ .name = "mlx90393" },
> +};
> +MODULE_DEVICE_TABLE(i2c, mlx90393_id);
> +
> +static const struct of_device_id mlx90393_of_match[] = {
> + { .compatible = "melexis,mlx90393" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, mlx90393_of_match);
> +
> +static struct i2c_driver mlx90393_i2c_driver = {
> + .driver = {
> + .name = "mlx90393",
> + .of_match_table = mlx90393_of_match,
> + },
> + .probe = mlx90393_i2c_probe,
I guess you want
.id_table = mlx90393_id,
here.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature