Re: [RFC PATCH v1 2/2] iio: imu: Add driver for QST QMI8658C
From: Uwe Kleine-König
Date: Sat Dec 05 2026 - 04:42:07 EST
On Fri, Dec 04, 2026 at 04:55:04PM +0800, NanamiKite wrote:
> +#include <linux/i2c.h>
> +#include <linux/mod_devicetable.h>
<linux/i2c.h> already provides i2c_device_id and of_device_id, so there
is no need to include <linux/mod_devicetable.h> (which pulls in a lot
more *_device_id and thus introduces many unneeded build dependencies).
I'm working on removing <linux/mod_devicetable.h>, so it also helps me
if you don't add another user.
> +static const struct i2c_device_id qmi8658_id[] = {
> + { "qmi8658c" },
Please use a named initializer, i.e.
{ .name = "qmi8658c" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(i2c, qmi8658_id);
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature