Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/extcon/devres.c - EXTCON device's resource management
34 unsigned int id; member
42 extcon_unregister_notifier(this->edev, this->id, this->nb); in devm_extcon_dev_notifier_unreg()
49 extcon_unregister_notifier_all(this->edev, this->nb); in devm_extcon_dev_notifier_all_unreg()
53 * devm_extcon_dev_allocate - Allocate managed extcon device
59 * resource management and simplify the control of freeing the memory of extcon
72 return ERR_PTR(-ENOMEM); in devm_extcon_dev_allocate()
80 edev->dev.parent = dev; in devm_extcon_dev_allocate()
90 * devm_extcon_dev_free() - Resource-managed extcon_dev_unregister()
105 * devm_extcon_dev_register() - Resource-managed extcon_dev_register()
125 return -ENOMEM; in devm_extcon_dev_register()
141 * devm_extcon_dev_unregister() - Resource-managed extcon_dev_unregister()
156 * devm_extcon_register_notifier() - Resource-managed extcon_register_notifier()
159 * @id: the unique id among the extcon enumeration
163 * device resource management and simplify the control of unregistering
173 unsigned int id, struct notifier_block *nb) in devm_extcon_register_notifier() argument
181 return -ENOMEM; in devm_extcon_register_notifier()
183 ret = extcon_register_notifier(edev, id, nb); in devm_extcon_register_notifier()
189 ptr->edev = edev; in devm_extcon_register_notifier()
190 ptr->id = id; in devm_extcon_register_notifier()
191 ptr->nb = nb; in devm_extcon_register_notifier()
200 * - Resource-managed extcon_unregister_notifier()
203 * @id: the unique id among the extcon enumeration
207 struct extcon_dev *edev, unsigned int id, in devm_extcon_unregister_notifier() argument
217 * - Resource-managed extcon_register_notifier_all()
223 * device resource management and simplify the control of unregistering
237 return -ENOMEM; in devm_extcon_register_notifier_all()
245 ptr->edev = edev; in devm_extcon_register_notifier_all()
246 ptr->nb = nb; in devm_extcon_register_notifier_all()
255 * - Resource-managed extcon_unregister_notifier_all()