Skip to contentSkip to conversation

Staging: One Laptop Per Child: add function argument names

PATCH In review Arkadiusz Lis 2 participants 3 messages Aug 9, 2018 – Aug 28, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: One Laptop Per Child: add function argument names

Add function argument names to pointers to functions in struct dcon_platform_data: init, set_dconload and read_status This commit removes checkpatch.pl warning.

---
 drivers/staging/olpc_dcon/olpc_dcon.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/olpc_dcon/olpc_dcon.h +3 -3
index fa89bb9..0ce1a7a 100644
@@ -91,10 +91,10 @@ struct dcon_priv {
 };
 
 struct dcon_platform_data {
-	int (*init)(struct dcon_priv *);
+	int (*init)(struct dcon_priv *dcon);
 	void (*bus_stabilize_wiggle)(void);
-	void (*set_dconload)(int);
-	int (*read_status)(u8 *);
+	void (*set_dconload)(int val);
+	int (*read_status)(u8 *status);
 };
 
 #include <linux/interrupt.h>
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 34 lines · Arkadiusz Lis

Add function argument names to pointers to functions in struct dcon_platform_data: init, set_dconload and read_status This commit removes checkpatch.pl warning.

---
 drivers/staging/olpc_dcon/olpc_dcon.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/olpc_dcon/olpc_dcon.h +3 -3
index fa89bb9..0ce1a7a 100644
@@ -91,10 +91,10 @@ struct dcon_priv {
 };
 
 struct dcon_platform_data {
-	int (*init)(struct dcon_priv *);
+	int (*init)(struct dcon_priv *dcon);
 	void (*bus_stabilize_wiggle)(void);
-	void (*set_dconload)(int);
-	int (*read_status)(u8 *);
+	void (*set_dconload)(int val);
+	int (*read_status)(u8 *status);
 };
 
 #include <linux/interrupt.h>
Signature · 6 lines
1.9.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Patch did not apply to my tree at all. Please rebase against the latest linux-next and resend.

thanks,

greg k-h

#2 lore raw
Quoted 39 lines · Greg KH
Quoted 34 lines · Arkadiusz Lis

Add function argument names to pointers to functions in struct dcon_platform_data: init, set_dconload and read_status This commit removes checkpatch.pl warning.

---
 drivers/staging/olpc_dcon/olpc_dcon.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/olpc_dcon/olpc_dcon.h +3 -3
index fa89bb9..0ce1a7a 100644
@@ -91,10 +91,10 @@ struct dcon_priv {
 };
 
 struct dcon_platform_data {
-	int (*init)(struct dcon_priv *);
+	int (*init)(struct dcon_priv *dcon);
 	void (*bus_stabilize_wiggle)(void);
-	void (*set_dconload)(int);
-	int (*read_status)(u8 *);
+	void (*set_dconload)(int val);
+	int (*read_status)(u8 *status);
 };
 
 #include <linux/interrupt.h>
Signature · 6 lines
1.9.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Patch did not apply to my tree at all. Please rebase against the latest linux-next and resend.

Quoted 3 lines

thanks,

greg k-h

Hi Greg,
It seems this issue was already fixed with commit 9b59883c14267ccf2c3f9d260bd6fb0dc9478fa1, hence the conflict. My patch is redundant

Regards,
Arek