Skip to contentSkip to conversation

mfd: twl: Clean up errors in twl.h

PATCH In review chenxuebing 2 participants 2 messages Jan 11, 2024 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: twl: Clean up errors in twl.h

Fix the following errors reported by checkpatch:

ERROR: space prohibited after that open parenthesis '('
ERROR: open brace '{' following function definitions go on the next line

---
 include/linux/mfd/mcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/mcp.h +1 -1
index fd5cafc77e8a..ed56c67bbbc7 100644
@@ -53,7 +53,7 @@ int mcp_driver_register(struct mcp_driver *);
 void mcp_driver_unregister(struct mcp_driver *);
 
 #define mcp_get_drvdata(mcp)	dev_get_drvdata(&(mcp)->attached_device)
-#define mcp_set_drvdata(mcp,d)	dev_set_drvdata(&(mcp)->attached_device, d)
+#define mcp_set_drvdata(mcp, d)	dev_set_drvdata(&(mcp)->attached_device, d)
 
 static inline void *mcp_priv(struct mcp *mcp)
 {
Signature · 1 line
2.17.1
maintainer
#1 lore raw

The subject needs to be improved.

Succinctly explain what you're doing.

Quoted 6 lines · chenxuebing

Fix the following errors reported by checkpatch:

ERROR: space prohibited after that open parenthesis '('
ERROR: open brace '{' following function definitions go on the next line

Is this your first or last name, or both?

Quoted 9 lines
---
 include/linux/mfd/mcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/mcp.h +0 -0
index fd5cafc77e8a..ed56c67bbbc7 100644

include/linux/mfd/mcp.h int mcp_driver_register(struct mcp_driver *); · line 56

Quoted 5 lines
include/linux/mfd/mcp.h +1 -1
@@ -53,7 +53,7 @@ int mcp_driver_register(struct mcp_driver *);
 void mcp_driver_unregister(struct mcp_driver *);
 
 #define mcp_get_drvdata(mcp)	dev_get_drvdata(&(mcp)->attached_device)
-#define mcp_set_drvdata(mcp,d)	dev_set_drvdata(&(mcp)->attached_device, d)
+#define mcp_set_drvdata(mcp, d)	dev_set_drvdata(&(mcp)->attached_device, d)

The code is fine, obviously.

Quoted 5 lines
include/linux/mfd/mcp.h +0 -0
 static inline void *mcp_priv(struct mcp *mcp)
 {
Signature · 1 line
2.17.1
Signature · 1 line
Lee Jones [李琼斯]