All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: NanamiKite <nanami@yosoro.hk>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v1 2/2] iio: imu: Add driver for QST QMI8658C
Date: Sat, 5 Dec 2026 10:41:58 +0100	[thread overview]
Message-ID: <axPbj0CCDLDbnZ5Z@monoceros> (raw)
In-Reply-To: <tencent_9200994207A2F601959504D19340EC540707@qq.com>

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      parent reply	other threads:[~2026-12-05  9:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261204085504.184447-1-nanami@yosoro.hk>
2026-12-04  8:55 ` [RFC PATCH v1 1/2] dt-bindings: iio: imu: Add QST QMI8658C NanamiKite
2026-12-05 15:32   ` Krzysztof Kozlowski
2026-12-05 15:57     ` NanamiKite
2026-12-04  8:55 ` [RFC PATCH v1 2/2] iio: imu: Add driver for " NanamiKite
2026-12-04  9:10   ` sashiko-bot
2026-12-04  9:49   ` Andy Shevchenko
2026-12-04 11:00     ` NanamiKite
2026-12-05  9:41   ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axPbj0CCDLDbnZ5Z@monoceros \
    --to=u.kleine-koenig@baylibre.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nanami@yosoro.hk \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.