Searched refs:class_intf (Results 1 – 2 of 2) sorted by relevance
467 int class_interface_register(struct class_interface *class_intf) in class_interface_register() argument474 if (!class_intf || !class_intf->class) in class_interface_register()477 parent = class_intf->class; in class_interface_register()488 list_add_tail(&class_intf->node, &sp->interfaces); in class_interface_register()489 if (class_intf->add_dev) { in class_interface_register()492 class_intf->add_dev(dev); in class_interface_register()501 void class_interface_unregister(struct class_interface *class_intf) in class_interface_unregister() argument504 const struct class *parent = class_intf->class; in class_interface_unregister()516 list_del_init(&class_intf->node); in class_interface_unregister()517 if (class_intf->remove_dev) { in class_interface_unregister()[all …]
3518 struct class_interface *class_intf; in device_add() local3652 list_for_each_entry(class_intf, &sp->interfaces, node) in device_add()3653 if (class_intf->add_dev) in device_add()3654 class_intf->add_dev(dev); in device_add()3779 struct class_interface *class_intf; in device_del() local3810 list_for_each_entry(class_intf, &sp->interfaces, node) in device_del()3811 if (class_intf->remove_dev) in device_del()3812 class_intf->remove_dev(dev); in device_del()