Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lukasz Majewski" <lukma@nabladev.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (lm77) Provide of_match_table to allow module auto loading
Date: Fri, 13 Nov 2026 13:08:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-212825@kernel.org> (raw)
In-Reply-To: <20261113130133.4094280-1-lukma@nabladev.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] hwmon: (lm77) Undocumented DT compatible string national,lm77
--

commit 9ee0f69ba3227a960f104981995c86d2458362e9
Author: Lukasz Majewski <lukma@nabladev.com>

hwmon: (lm77) Provide of_match_table to allow module auto loading

This commit adds an OF match table for "national,lm77" to the lm77 I2C
driver to enable automatic module loading on Devicetree systems.

> diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c
> index 51bbc84d74844..e64dabfcda09e 100644
> --- a/drivers/hwmon/lm77.c
> +++ b/drivers/hwmon/lm77.c
> @@ -336,6 +336,12 @@ static int lm77_probe(struct i2c_client *client)
>  	return PTR_ERR_OR_ZERO(hwmon_dev);
>  }
>  
> +static const struct of_device_id lm77_of_match[] = {
> +	{ .compatible = "national,lm77" },
> +	{ }
> +};

[Severity: Low]
Is "national,lm77" documented in the Devicetree bindings?  It does not
appear in Documentation/devicetree/bindings/ (such as in
Documentation/devicetree/bindings/trivial-devices.yaml alongside other
National Semiconductor I2C sensors), which causes checkpatch.pl to warn
about an undocumented DT compatible string and dtbs_check to fail on
nodes using it.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261113130133.4094280-1-lukma@nabladev.com?part=1

      reply	other threads:[~2026-11-13 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 13:01 [PATCH] hwmon: (lm77) Provide of_match_table to allow module auto loading Lukasz Majewski
2026-11-13 13:08 ` sashiko-bot [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=sashiko-outbox-212825@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=lukma@nabladev.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox