Searched refs:switch_class (Results 1 – 3 of 3) sorted by relevance
/drivers/switch/ |
D | switch_class.c | 26 struct class *switch_class; variable 103 if (!switch_class) { in create_switch_class() 104 switch_class = class_create(THIS_MODULE, "switch"); in create_switch_class() 105 if (IS_ERR(switch_class)) in create_switch_class() 106 return PTR_ERR(switch_class); in create_switch_class() 117 if (!switch_class) { in switch_dev_register() 124 sdev->dev = device_create(switch_class, NULL, in switch_dev_register() 143 device_destroy(switch_class, MKDEV(0, sdev->index)); in switch_dev_register() 154 device_destroy(switch_class, MKDEV(0, sdev->index)); in switch_dev_unregister() 166 class_destroy(switch_class); in switch_class_exit()
|
D | Makefile | 2 obj-$(CONFIG_SWITCH) += switch_class.o
|
/drivers/extcon/ |
D | extcon-class.c | 69 static struct class_compat *switch_class; variable 563 switch_class = class_compat_register("switch"); in create_extcon_class() 564 if (WARN(!switch_class, "cannot allocate")) in create_extcon_class() 751 if (switch_class) in extcon_dev_register() 752 ret = class_compat_create_link(switch_class, edev->dev, in extcon_dev_register() 829 if (switch_class) in extcon_dev_unregister() 830 class_compat_remove_link(switch_class, edev->dev, NULL); in extcon_dev_unregister() 846 class_compat_unregister(switch_class); in extcon_class_exit()
|