Lines Matching +full:device +full:- +full:id

1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon-provider.h for extcon provider device driver.
19 /* Following APIs register/unregister the extcon device. */
22 int devm_extcon_dev_register(struct device *dev,
24 void devm_extcon_dev_unregister(struct device *dev,
27 /* Following APIs allocate/free the memory of the extcon device. */
30 struct extcon_dev *devm_extcon_dev_allocate(struct device *dev,
32 void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
35 int extcon_sync(struct extcon_dev *edev, unsigned int id);
39 * The 'id' argument indicates the defined external connector.
41 int extcon_set_state(struct extcon_dev *edev, unsigned int id,
43 int extcon_set_state_sync(struct extcon_dev *edev, unsigned int id,
48 * The 'id' argument indicates the defined external connector
53 * property of each external connector based on the id and property.
55 int extcon_set_property(struct extcon_dev *edev, unsigned int id,
58 int extcon_set_property_sync(struct extcon_dev *edev, unsigned int id,
62 unsigned int id, unsigned int prop);
72 static inline int devm_extcon_dev_register(struct device *dev, in devm_extcon_dev_register()
75 return -EINVAL; in devm_extcon_dev_register()
78 static inline void devm_extcon_dev_unregister(struct device *dev, in devm_extcon_dev_unregister()
83 return ERR_PTR(-ENOSYS); in extcon_dev_allocate()
88 static inline struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, in devm_extcon_dev_allocate()
91 return ERR_PTR(-ENOSYS); in devm_extcon_dev_allocate()
97 static inline int extcon_set_state(struct extcon_dev *edev, unsigned int id, in extcon_set_state() argument
103 static inline int extcon_set_state_sync(struct extcon_dev *edev, unsigned int id, in extcon_set_state_sync() argument
109 static inline int extcon_sync(struct extcon_dev *edev, unsigned int id) in extcon_sync() argument
114 static inline int extcon_set_property(struct extcon_dev *edev, unsigned int id, in extcon_set_property() argument
122 unsigned int id, unsigned int prop, in extcon_set_property_sync() argument
129 unsigned int id, unsigned int prop) in extcon_set_property_capability() argument