Loading drivers/extcon/extcon.c +5 −5 Original line number Diff line number Diff line /* * drivers/extcon/extcon_class.c * drivers/extcon/extcon.c - External Connector (extcon) framework. * * External connector (extcon) class driver * Loading @@ -19,7 +19,6 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/module.h> Loading Loading @@ -469,7 +468,6 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, ret = raw_notifier_chain_register(&obj->edev->nh, &obj->internal_nb); spin_unlock_irqrestore(&obj->edev->lock, flags); return ret; } else { struct class_dev_iter iter; struct extcon_dev *extd; Loading @@ -489,8 +487,10 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, cable_name, nb); } return -ENODEV; ret = -ENODEV; } return ret; } EXPORT_SYMBOL_GPL(extcon_register_interest); Loading include/linux/extcon.h +4 −3 Original line number Diff line number Diff line Loading @@ -97,8 +97,8 @@ struct extcon_cable; * @state: Attach/detach state of this extcon. Do not provide at * register-time. * @nh: Notifier for the state change events from this extcon * @entry: To support list of extcon devices so that users can search * for extcon devices based on the extcon name. * @entry: To support list of extcon devices so that users can * search for extcon devices based on the extcon name. * @lock: * @max_supported: Internal value to store the number of cables. * @extcon_dev_type: Device_type struct to provide attribute_groups Loading Loading @@ -258,7 +258,8 @@ extern int extcon_unregister_notifier(struct extcon_dev *edev, * Following API get the extcon device from devicetree. * This function use phandle of devicetree to get extcon device directly. */ extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); /* Following API to get information of extcon device */ extern const char *extcon_get_edev_name(struct extcon_dev *edev); Loading Loading
drivers/extcon/extcon.c +5 −5 Original line number Diff line number Diff line /* * drivers/extcon/extcon_class.c * drivers/extcon/extcon.c - External Connector (extcon) framework. * * External connector (extcon) class driver * Loading @@ -19,7 +19,6 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/module.h> Loading Loading @@ -469,7 +468,6 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, ret = raw_notifier_chain_register(&obj->edev->nh, &obj->internal_nb); spin_unlock_irqrestore(&obj->edev->lock, flags); return ret; } else { struct class_dev_iter iter; struct extcon_dev *extd; Loading @@ -489,8 +487,10 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, cable_name, nb); } return -ENODEV; ret = -ENODEV; } return ret; } EXPORT_SYMBOL_GPL(extcon_register_interest); Loading
include/linux/extcon.h +4 −3 Original line number Diff line number Diff line Loading @@ -97,8 +97,8 @@ struct extcon_cable; * @state: Attach/detach state of this extcon. Do not provide at * register-time. * @nh: Notifier for the state change events from this extcon * @entry: To support list of extcon devices so that users can search * for extcon devices based on the extcon name. * @entry: To support list of extcon devices so that users can * search for extcon devices based on the extcon name. * @lock: * @max_supported: Internal value to store the number of cables. * @extcon_dev_type: Device_type struct to provide attribute_groups Loading Loading @@ -258,7 +258,8 @@ extern int extcon_unregister_notifier(struct extcon_dev *edev, * Following API get the extcon device from devicetree. * This function use phandle of devicetree to get extcon device directly. */ extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); /* Following API to get information of extcon device */ extern const char *extcon_get_edev_name(struct extcon_dev *edev); Loading