[PATCH] Driver core: pass interface to class interface methods
Driver core: pass interface to class intreface methods Pass interface as argument to add() and remove() class interface methods. This way a subsystem can implement generic add/remove handlers and then call interface-specific ones. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7bd7b09142
commit
d8539d81ae
@@ -251,8 +251,8 @@ struct class_interface {
|
||||
struct list_head node;
|
||||
struct class *class;
|
||||
|
||||
int (*add) (struct class_device *);
|
||||
void (*remove) (struct class_device *);
|
||||
int (*add) (struct class_device *, struct class_interface *);
|
||||
void (*remove) (struct class_device *, struct class_interface *);
|
||||
};
|
||||
|
||||
extern int class_interface_register(struct class_interface *);
|
||||
|
Reference in New Issue
Block a user