Skip to contentSkip to conversation

misc: ics932s401: warnings and errors are resolved.

PATCH New Dhaval Shah 1 participant 4 messages Dec 8, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

cover misc: ics932s401: warnings and errors are resolved.

Two types of checkpatch warnings and one type of error are resolved.
* First patch : Missing a blank line after declarations
* Second patch : please, no space before tabs
* third patch : open brace { should be on the previous line

Issue found by checkpatch. ./scripts/checkpatch.pl -f --strict drivers/misc/hpilo.c

Dhaval Shah (3):
misc: ics932s401: Missing a blank line after declarations
misc: ics932s401: please, no space before tabs
misc: ics932s401: open brace should be on the previous line

 drivers/misc/ics932s401.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/3 misc: ics932s401: Missing a blank line after declarations

Resolved all the missing a blank line after declarations checkpatch warnings. Issue found by checkpatch.

---
 drivers/misc/ics932s401.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/ics932s401.c +1 -0
index 28f51e01fd2b..d22e2dc62907 100644
@@ -225,6 +225,7 @@ static ssize_t show_cpu_clock_sel(struct device *dev,
 	else {
 		/* Freq is neatly wrapped up for us */
 		int fid = data->regs[ICS932S401_REG_CFG7] & ICS932S401_FS_MASK;
+
 		freq = fs_speeds[fid];
 		if (data->regs[ICS932S401_REG_CTRL] & ICS932S401_CPU_ALT) {
 			switch (freq) {
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/3 misc: ics932s401: please, no space before tabs

In reply to Dhaval Shah

Resolved all the please, no space beofore tabs checkpatch warnings. Issue found by checkpatch.

---
 drivers/misc/ics932s401.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/ics932s401.c +2 -2
index d22e2dc62907..12177db99ce1 100644
@@ -33,7 +33,7 @@ static const unsigned short normal_i2c[] = { 0x69, I2C_CLIENT_END };
 
 /* ICS932S401 registers */
 #define ICS932S401_REG_CFG2			0x01
-#define 	ICS932S401_CFG1_SPREAD		0x01
+#define		ICS932S401_CFG1_SPREAD		0x01
 #define ICS932S401_REG_CFG7			0x06
 #define		ICS932S401_FS_MASK		0x07
 #define	ICS932S401_REG_VENDOR_REV		0x07
@@ -58,7 +58,7 @@ static const unsigned short normal_i2c[] = { 0x69, I2C_CLIENT_END };
 #define	ICS932S401_REG_SRC_SPREAD1		0x11
 #define ICS932S401_REG_SRC_SPREAD2		0x12
 #define ICS932S401_REG_CPU_DIVISOR		0x13
-#define 	ICS932S401_CPU_DIVISOR_SHIFT	4
+#define		ICS932S401_CPU_DIVISOR_SHIFT	4
 #define ICS932S401_REG_PCISRC_DIVISOR		0x14
 #define		ICS932S401_SRC_DIVISOR_MASK	0x0F
 #define		ICS932S401_PCI_DIVISOR_SHIFT	4
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/3 misc: ics932s401: open brace should be on the previous line

In reply to Dhaval Shah

Resolved open brace { should be on the previous line checkpatch error. Issue found by checkpatch.

---
 drivers/misc/ics932s401.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/misc/ics932s401.c +1 -2
index 12177db99ce1..81a0541ef3ac 100644
@@ -353,8 +353,7 @@ static DEVICE_ATTR(ref_clock, S_IRUGO, show_value, NULL);
 static DEVICE_ATTR(cpu_spread, S_IRUGO, show_spread, NULL);
 static DEVICE_ATTR(src_spread, S_IRUGO, show_spread, NULL);
 
-static struct attribute *ics932s401_attr[] =
-{
+static struct attribute *ics932s401_attr[] = {
 	&dev_attr_spread_enabled.attr,
 	&dev_attr_cpu_clock_selection.attr,
 	&dev_attr_cpu_clock.attr,
Signature · 1 line
2.11.0