linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Henry Shen <henry.shen@alliedtelesis.co.nz>
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
	guillaume.ligneul@gmail.com, jdelvare@suse.com,
	trivial@kernel.org, venture@google.com,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2 2/2] hwmon: (lm73) Add support for of_match_table
Date: Wed, 19 Feb 2020 15:07:27 -0800	[thread overview]
Message-ID: <20200219230726.GA9285@roeck-us.net> (raw)
In-Reply-To: <20200212030615.28537-3-henry.shen@alliedtelesis.co.nz>

On Wed, Feb 12, 2020 at 04:06:15PM +1300, Henry Shen wrote:
> Add the of_match_table.
> 
> Signed-off-by: Henry Shen <henry.shen@alliedtelesis.co.nz>

Applied to hwmon-next.

Thanks,
Guenter

> ---
> Change in v2:
> - add missing sign-off
> 
>  drivers/hwmon/lm73.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c
> index 1eeb9d7de2a0..733c48bf6c98 100644
> --- a/drivers/hwmon/lm73.c
> +++ b/drivers/hwmon/lm73.c
> @@ -262,10 +262,20 @@ static int lm73_detect(struct i2c_client *new_client,
>  	return 0;
>  }
>  
> +static const struct of_device_id lm73_of_match[] = {
> +	{
> +		.compatible = "ti,lm73",
> +	},
> +	{ },
> +};
> +
> +MODULE_DEVICE_TABLE(of, lm73_of_match);
> +
>  static struct i2c_driver lm73_driver = {
>  	.class		= I2C_CLASS_HWMON,
>  	.driver = {
>  		.name	= "lm73",
> +		.of_match_table = lm73_of_match,
>  	},
>  	.probe		= lm73_probe,
>  	.id_table	= lm73_ids,

      reply	other threads:[~2020-02-19 23:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12  3:06 [PATCH v2 0/2] (lm73) Add support for of_match_table Henry Shen
2020-02-12  3:06 ` [PATCH v2 1/2] dt-bindings: Add TI LM73 as a trivial device Henry Shen
2020-02-19 15:19   ` Rob Herring
2020-02-19 23:07   ` Guenter Roeck
2020-02-12  3:06 ` [PATCH v2 2/2] hwmon: (lm73) Add support for of_match_table Henry Shen
2020-02-19 23:07   ` Guenter Roeck [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=20200219230726.GA9285@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=devicetree@vger.kernel.org \
    --cc=guillaume.ligneul@gmail.com \
    --cc=henry.shen@alliedtelesis.co.nz \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=trivial@kernel.org \
    --cc=venture@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).