Skip to contentSkip to conversation

Trivial changes to pacify the checkpatch

RFC PATCH In review Shubhrajyoti D 2 participants 3 messages Aug 26, 2010 – Aug 27, 2010 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Trivial changes to pacify the checkpatch

Some trivial changes to pacify the checkpatch so that real errors are highlighted.

---
 drivers/hwmon/lm75.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
drivers/hwmon/lm75.c +20 -20
index d579290..97b3a89 100644
@@ -1,21 +1,21 @@
 /*
-    lm75.c - Part of lm_sensors, Linux kernel modules for hardware
-             monitoring
-    Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+	lm75.c - Part of lm_sensors, Linux kernel modules for hardware
+			 monitoring
+	Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
 #include <linux/module.h>
@@ -339,9 +339,9 @@ static struct i2c_driver lm75_driver = {
 
 /* register access */
 
-/* All registers are word-sized, except for the configuration register.
-   LM75 uses a high-byte first convention, which is exactly opposite to
-   the SMBus standard. */
+/*	All registers are word-sized, except for the configuration register.
+	LM75 uses a high-byte first convention, which is exactly opposite to
+	the SMBus standard. */
 static int lm75_read_value(struct i2c_client *client, u8 reg)
 {
 	int value;
Signature · 7 lines
1.7.0.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Re: [lm-sensors] [RFC PATCH] Trivial changes to pacify the

Hi Shubhrajyoti,

Quoted 54 lines · Shubhrajyoti D

Some trivial changes to pacify the checkpatch so that real errors are highlighted.

---
 drivers/hwmon/lm75.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
drivers/hwmon/lm75.c +17 -17
index d579290..97b3a89 100644
@@ -1,21 +1,21 @@
 /*
-    lm75.c - Part of lm_sensors, Linux kernel modules for hardware
-             monitoring
-    Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+	lm75.c - Part of lm_sensors, Linux kernel modules for hardware
+			 monitoring
+	Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
 #include <linux/module.h>
@@ -339,9 +339,9 @@ static struct i2c_driver lm75_driver = {
 
 /* register access */

drivers/hwmon/lm75.c static struct i2c_driver lm75_driver = { · line 347

Quoted 10 lines
drivers/hwmon/lm75.c +3 -3
 
-/* All registers are word-sized, except for the configuration register.
-   LM75 uses a high-byte first convention, which is exactly opposite to
-   the SMBus standard. */
+/*	All registers are word-sized, except for the configuration register.
+	LM75 uses a high-byte first convention, which is exactly opposite to
+	the SMBus standard. */
 static int lm75_read_value(struct i2c_client *client, u8 reg)
 {
 	int value;

That's not the right fix, sorry. The right way would be to add stars:

/*
* All registers are word-sized, except for the configuration register.
* LM75 uses a high-byte first convention, which is exactly opposite to
* the SMBus standard.
*/

Same for the first comment.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw

Re: [lm-sensors] [RFC PATCH] Trivial changes to pacify the

In reply to Shubhrajyoti D

Hi Jean,

Quoted 80 lines

-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: Friday, August 27, 2010 6:15 PM
To: Datta, Shubhrajyoti
Cc: [email protected]
Subject: Re: [lm-sensors] [RFC PATCH] Trivial changes to pacify the checkpatch

Hi Shubhrajyoti,

Quoted 13 lines · Shubhrajyoti D

Some trivial changes to pacify the checkpatch so that real errors are highlighted.

---
 drivers/hwmon/lm75.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
drivers/hwmon/lm75.c +0 -0
index d579290..97b3a89 100644

drivers/hwmon/lm75.c line 6

Quoted 6 lines
drivers/hwmon/lm75.c +0 -5
@@ -1,21 +1,21 @@
 /*
-    lm75.c - Part of lm_sensors, Linux kernel modules for hardware
-             monitoring
-    Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
-
-    This program is free software; you can redistribute it and/or

modify

drivers/hwmon/lm75.c line 7

Quoted 1 line
drivers/hwmon/lm75.c +0 -1
-    it under the terms of the GNU General Public License as published

by

Quoted 34 lines
drivers/hwmon/lm75.c +17 -11
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+	lm75.c - Part of lm_sensors, Linux kernel modules for hardware
+			 monitoring
+	Copyright (c) 1998, 1999  Frodo Looijaard <[email protected]>
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
 #include <linux/module.h>
@@ -339,9 +339,9 @@ static struct i2c_driver lm75_driver = {
 
 /* register access */

drivers/hwmon/lm75.c static struct i2c_driver lm75_driver = { · line 347

Quoted 10 lines
drivers/hwmon/lm75.c +3 -3
 
-/* All registers are word-sized, except for the configuration register.
-   LM75 uses a high-byte first convention, which is exactly opposite to
-   the SMBus standard. */
+/*	All registers are word-sized, except for the configuration register.
+	LM75 uses a high-byte first convention, which is exactly opposite to
+	the SMBus standard. */
 static int lm75_read_value(struct i2c_client *client, u8 reg)
 {
 	int value;

That's not the right fix, sorry. The right way would be to add stars:

Quoted 7 lines

/*
* All registers are word-sized, except for the configuration register.
* LM75 uses a high-byte first convention, which is exactly opposite to
* the SMBus standard.
*/

Same for the first comment.

Agree will fix it.

Quoted 3 lines

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors