Skip to contentSkip to conversation

maple: tidy maple_driver code by removing redundant connect/disconnect

PATCH Applied Adrian McMenamin 3 participants 4 messages Jun 15, 2008 – Jun 24, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maple: tidy maple_driver code by removing redundant connect/disconnect

The connect and disconnect functions are unnecessary - everything they do can be accomplished in the initial probe - so remove them.

---

include/linux/maple.h +0 -2
index 39a125a..d49e2d3 100644
@@ -62,8 +62,6 @@ struct maple_device {
 
 struct maple_driver {
 	unsigned long function;
-	int (*connect) (struct maple_device * dev);
-	void (*disconnect) (struct maple_device * dev);
 	struct device_driver drv;
 };
 
Applied
#1 lore raw
Quoted 4 lines · Adrian McMenamin

The connect and disconnect functions are unnecessary - everything they do can be accomplished in the initial probe - so remove them.

Applied, thanks.

#2 lore raw
Quoted 9 lines · Paul Mundt
Quoted 5 lines · Adrian McMenamin

The connect and disconnect functions are unnecessary - everything they do can be
accomplished in the initial probe - so remove them.

Applied, thanks.

Paul,

Just to note that this (http://lkml.org/lkml/2008/6/15/122) will break the keyboard driver unless this (http://lkml.org/lkml/2008/6/15/121) is also applied.

I haven't heard back from Dmitry on the keyboard patch yet.

Adrian

#3 lore raw
Quoted 10 lines · Adrian McMenamin
Quoted 9 lines · Paul Mundt
Quoted 5 lines · Adrian McMenamin

The connect and disconnect functions are unnecessary - everything they do can be
accomplished in the initial probe - so remove them.

Applied, thanks.

Quoted 8 lines

Paul,

Just to note that this (http://lkml.org/lkml/2008/6/15/122) will break the keyboard driver unless this (http://lkml.org/lkml/2008/6/15/121) is also applied.

I haven't heard back from Dmitry on the keyboard patch yet.

Yes, I'm aware of that. This should fix itself in linux-next once it is merged in the input tree, and I don't intend on pushing my changes until that's in place, so we don't break bisection.