Skip to contentSkip to conversation

mfd: asic3: remove extraneous ')'

PATCH In review Arnd Bergmann 3 participants 4 messages Jan 12, 2016 – Jan 14, 2016 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: asic3: remove extraneous ')'

A cleanup patch introduced an extra closing ')' that leads to a build error:

drivers/mfd/asic3.c: In function 'asic3_gpio_get':
drivers/mfd/asic3.c:505:12: error: expected ';' before ')' token

This removes the extra character to get it to build again.

Fixes fd5b4d01a638 ("mfd: asic3: Be sure to clamp return value")

---
This came up today on linux-next. I took the liberty to adjust formatting of that line as well, if you prefer the original line wrapping please undo that part when applying.

drivers/mfd/asic3.c +2 -2
index c8d46e51faf1..4dca6bc61f5b 100644
@@ -501,8 +501,8 @@ static int asic3_gpio_get(struct gpio_chip *chip,
 		return -EINVAL;
 	}
 
-	return !!(asic3_read_register(asic, gpio_base + ASIC3_GPIO_STATUS)
-		  & mask));
+	return !!(asic3_read_register(asic,
+				      gpio_base + ASIC3_GPIO_STATUS) & mask);
 }
 
 static void asic3_gpio_set(struct gpio_chip *chip,
#1 lore raw
Quoted 6 lines · Arnd Bergmann

A cleanup patch introduced an extra closing ')' that leads to a build error:

drivers/mfd/asic3.c: In function 'asic3_gpio_get':
drivers/mfd/asic3.c:505:12: error: expected ';' before ')' token

Quoted 8 lines

This removes the extra character to get it to build again.

Fixes fd5b4d01a638 ("mfd: asic3: Be sure to clamp return value")

---
This came up today on linux-next. I took the liberty to adjust formatting of that line as well, if you prefer the original line wrapping please undo that part when applying.

Please ignore MFD in next, as it's not quite ready. I've been on vacation for 4 weeks and only returned to work yesterday. I am currently running MFD through AIAIAI and will fix-up any issues I find.

Quoted 16 lines
drivers/mfd/asic3.c +2 -2
index c8d46e51faf1..4dca6bc61f5b 100644
@@ -501,8 +501,8 @@ static int asic3_gpio_get(struct gpio_chip *chip,
 		return -EINVAL;
 	}
 
-	return !!(asic3_read_register(asic, gpio_base + ASIC3_GPIO_STATUS)
-		  & mask));
+	return !!(asic3_read_register(asic,
+				      gpio_base + ASIC3_GPIO_STATUS) & mask);
 }
 
 static void asic3_gpio_set(struct gpio_chip *chip,
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#2 lore raw
Quoted 16 lines · Lee Jones
Quoted 6 lines · Arnd Bergmann

A cleanup patch introduced an extra closing ')' that leads to a build error:

drivers/mfd/asic3.c: In function 'asic3_gpio_get':
drivers/mfd/asic3.c:505:12: error: expected ';' before ')' token

Quoted 8 lines

This removes the extra character to get it to build again.

Fixes fd5b4d01a638 ("mfd: asic3: Be sure to clamp return value")

---
This came up today on linux-next. I took the liberty to adjust formatting of that line as well, if you prefer the original line wrapping please undo that part when applying.

Quoted 4 lines

Please ignore MFD in next, as it's not quite ready. I've been on vacation for 4 weeks and only returned to work yesterday. I am currently running MFD through AIAIAI and will fix-up any issues I find.

As for you Linus. Tut tut. ;)

Quoted 17 lines
Quoted 16 lines
drivers/mfd/asic3.c +2 -2
index c8d46e51faf1..4dca6bc61f5b 100644
@@ -501,8 +501,8 @@ static int asic3_gpio_get(struct gpio_chip *chip,
 		return -EINVAL;
 	}
 
-	return !!(asic3_read_register(asic, gpio_base + ASIC3_GPIO_STATUS)
-		  & mask));
+	return !!(asic3_read_register(asic,
+				      gpio_base + ASIC3_GPIO_STATUS) & mask);
 }
 
 static void asic3_gpio_set(struct gpio_chip *chip,
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Reviewed-by on v1 1/1
#3 lore raw
In reply to Arnd Bergmann
Quoted 6 lines · Arnd Bergmann

A cleanup patch introduced an extra closing ')' that leads to a build error:

drivers/mfd/asic3.c: In function 'asic3_gpio_get':
drivers/mfd/asic3.c:505:12: error: expected ';' before ')' token

Quoted 8 lines

This removes the extra character to get it to build again.

Fixes fd5b4d01a638 ("mfd: asic3: Be sure to clamp return value")

---
This came up today on linux-next. I took the liberty to adjust formatting of that line as well, if you prefer the original line wrapping please undo that part when applying.

Sorry for the mess, apparently one of those I didn't find a good way of building...

Yours,
Linus Walleij