* [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[]
@ 2018-03-22 14:37 Alvaro Gamez Machado
2018-03-22 15:56 ` Jean Delvare
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Gamez Machado @ 2018-03-22 14:37 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck, linux-hwmon; +Cc: Alvaro Gamez Machado
Since autodetection of this chip was removed, it makes sense to add prefix
max6635 so that the device can be instantiated by its actual name.
Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
---
Differences:
* Update also Documentation/hwmon/lm92 with new prefix to use
Documentation/hwmon/lm92 | 2 +-
drivers/hwmon/lm92.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/hwmon/lm92 b/Documentation/hwmon/lm92
index f2a5adcf4ead..cfa99a353b8c 100644
--- a/Documentation/hwmon/lm92
+++ b/Documentation/hwmon/lm92
@@ -11,7 +11,7 @@ Supported chips:
Addresses scanned: none, force parameter needed
Datasheet: http://www.national.com/pf/LM/LM76.html
* Maxim MAX6633/MAX6634/MAX6635
- Prefix: 'lm92'
+ Prefix: 'max6635'
Addresses scanned: none, force parameter needed
Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index 18509b5af11e..d40fe5122e94 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -52,6 +52,7 @@
*/
static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
I2C_CLIENT_END };
+enum chips { lm92, max6635 };
/* The LM92 registers */
#define LM92_REG_CONFIG 0x01 /* 8-bit, RW */
@@ -329,8 +330,8 @@ static int lm92_probe(struct i2c_client *new_client,
*/
static const struct i2c_device_id lm92_id[] = {
- { "lm92", 0 },
- /* max6635 could be added here */
+ { "lm92", lm92 },
+ { "max6635", max6635 },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm92_id);
--
2.16.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[]
2018-03-22 14:37 [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[] Alvaro Gamez Machado
@ 2018-03-22 15:56 ` Jean Delvare
2018-03-22 16:32 ` Guenter Roeck
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2018-03-22 15:56 UTC (permalink / raw)
To: Alvaro Gamez Machado; +Cc: Guenter Roeck, linux-hwmon
On Thu, 22 Mar 2018 15:37:44 +0100, Alvaro Gamez Machado wrote:
> Since autodetection of this chip was removed, it makes sense to add prefix
> max6635 so that the device can be instantiated by its actual name.
>
> Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
> ---
> Differences:
> * Update also Documentation/hwmon/lm92 with new prefix to use
>
> Documentation/hwmon/lm92 | 2 +-
> drivers/hwmon/lm92.c | 5 +++--
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/hwmon/lm92 b/Documentation/hwmon/lm92
> index f2a5adcf4ead..cfa99a353b8c 100644
> --- a/Documentation/hwmon/lm92
> +++ b/Documentation/hwmon/lm92
> @@ -11,7 +11,7 @@ Supported chips:
> Addresses scanned: none, force parameter needed
> Datasheet: http://www.national.com/pf/LM/LM76.html
> * Maxim MAX6633/MAX6634/MAX6635
> - Prefix: 'lm92'
> + Prefix: 'max6635'
> Addresses scanned: none, force parameter needed
> Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074
>
> diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
> index 18509b5af11e..d40fe5122e94 100644
> --- a/drivers/hwmon/lm92.c
> +++ b/drivers/hwmon/lm92.c
> @@ -52,6 +52,7 @@
> */
> static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
> I2C_CLIENT_END };
> +enum chips { lm92, max6635 };
>
> /* The LM92 registers */
> #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */
> @@ -329,8 +330,8 @@ static int lm92_probe(struct i2c_client *new_client,
> */
>
> static const struct i2c_device_id lm92_id[] = {
> - { "lm92", 0 },
> - /* max6635 could be added here */
> + { "lm92", lm92 },
> + { "max6635", max6635 },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, lm92_id);
Reviewed-by: Jean Delvare <jdelvare@suse.de>
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[]
2018-03-22 15:56 ` Jean Delvare
@ 2018-03-22 16:32 ` Guenter Roeck
0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2018-03-22 16:32 UTC (permalink / raw)
To: Jean Delvare; +Cc: Alvaro Gamez Machado, linux-hwmon
On Thu, Mar 22, 2018 at 04:56:17PM +0100, Jean Delvare wrote:
> On Thu, 22 Mar 2018 15:37:44 +0100, Alvaro Gamez Machado wrote:
> > Since autodetection of this chip was removed, it makes sense to add prefix
> > max6635 so that the device can be instantiated by its actual name.
> >
> > Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
Never mind my previous comment. I'll take this patch instead.
Thanks,
Guenter
> > ---
> > Differences:
> > * Update also Documentation/hwmon/lm92 with new prefix to use
> >
> > Documentation/hwmon/lm92 | 2 +-
> > drivers/hwmon/lm92.c | 5 +++--
> > 2 files changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/hwmon/lm92 b/Documentation/hwmon/lm92
> > index f2a5adcf4ead..cfa99a353b8c 100644
> > --- a/Documentation/hwmon/lm92
> > +++ b/Documentation/hwmon/lm92
> > @@ -11,7 +11,7 @@ Supported chips:
> > Addresses scanned: none, force parameter needed
> > Datasheet: http://www.national.com/pf/LM/LM76.html
> > * Maxim MAX6633/MAX6634/MAX6635
> > - Prefix: 'lm92'
> > + Prefix: 'max6635'
> > Addresses scanned: none, force parameter needed
> > Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074
> >
> > diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
> > index 18509b5af11e..d40fe5122e94 100644
> > --- a/drivers/hwmon/lm92.c
> > +++ b/drivers/hwmon/lm92.c
> > @@ -52,6 +52,7 @@
> > */
> > static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
> > I2C_CLIENT_END };
> > +enum chips { lm92, max6635 };
> >
> > /* The LM92 registers */
> > #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */
> > @@ -329,8 +330,8 @@ static int lm92_probe(struct i2c_client *new_client,
> > */
> >
> > static const struct i2c_device_id lm92_id[] = {
> > - { "lm92", 0 },
> > - /* max6635 could be added here */
> > + { "lm92", lm92 },
> > + { "max6635", max6635 },
> > { }
> > };
> > MODULE_DEVICE_TABLE(i2c, lm92_id);
>
> Reviewed-by: Jean Delvare <jdelvare@suse.de>
>
> --
> Jean Delvare
> SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-22 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 14:37 [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[] Alvaro Gamez Machado
2018-03-22 15:56 ` Jean Delvare
2018-03-22 16:32 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox