lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 11 Feb 2020 02:32:39 +0000
From:   Chris Packham <Chris.Packham@...iedtelesis.co.nz>
To:     "linux@...ck-us.net" <linux@...ck-us.net>,
        "guillaume.ligneul@...il.com" <guillaume.ligneul@...il.com>,
        Henry Shen <Henry.Shen@...iedtelesis.co.nz>,
        "jdelvare@...e.com" <jdelvare@...e.com>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>
Subject: Re: [PATCH] hwmon: (lm73) Add support for of_match_table

On Mon, 2020-02-10 at 18:30 -0800, Guenter Roeck wrote:
> On 2/10/20 6:21 PM, Chris Packham wrote:
> > On Wed, 2020-02-05 at 14:06 +1300, Henry Shen wrote:
> > > Add the of_match_table.
> > 
> > Needs your Signed-off-by line.
> > 
> 
> ti,lm73 would also have to be documented as trivial device.
> 

Yes there's another patch for that. I'll work with Henry to send a v2
series instead of individual patches.

> Guenter
> 
> > > ---
> > >   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,
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ