Searched refs:switch_dev (Results 1 - 5 of 5) sorted by relevance

/drivers/staging/android/switch/
H A Dswitch.h21 struct switch_dev { struct
27 ssize_t (*print_name)(struct switch_dev *sdev, char *buf);
28 ssize_t (*print_state)(struct switch_dev *sdev, char *buf);
35 /* if NULL, switch_dev.name will be printed */
43 extern int switch_dev_register(struct switch_dev *sdev);
44 extern void switch_dev_unregister(struct switch_dev *sdev);
46 static inline int switch_get_state(struct switch_dev *sdev)
51 extern void switch_set_state(struct switch_dev *sdev, int state);
H A Dswitch_class.c32 struct switch_dev *sdev = (struct switch_dev *)
46 struct switch_dev *sdev = (struct switch_dev *)
60 void switch_set_state(struct switch_dev *sdev, int state)
113 int switch_dev_register(struct switch_dev *sdev)
150 void switch_dev_unregister(struct switch_dev *sdev)
H A Dswitch_gpio.c29 struct switch_dev sdev;
58 static ssize_t switch_gpio_print_state(struct switch_dev *sdev, char *buf)
/drivers/switch/
H A Dswitch_class.c32 struct switch_dev *sdev = (struct switch_dev *)
46 struct switch_dev *sdev = (struct switch_dev *)
60 void switch_set_state(struct switch_dev *sdev, int state)
113 int switch_dev_register(struct switch_dev *sdev)
150 void switch_dev_unregister(struct switch_dev *sdev)
H A Dswitch_gpio.c29 struct switch_dev sdev;
58 static ssize_t switch_gpio_print_state(struct switch_dev *sdev, char *buf)

Completed in 77 milliseconds