You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
of/reconfig: Add of_reconfig_get_state_change() of notifier helper.
Introduce of_reconfig_get_state_change() which allows an of notifier to query about device state changes. Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:
committed by
Grant Likely
parent
da56d04c80
commit
b53a2340d0
@@ -327,6 +327,7 @@ struct of_prop_reconfig {
|
||||
extern int of_reconfig_notifier_register(struct notifier_block *);
|
||||
extern int of_reconfig_notifier_unregister(struct notifier_block *);
|
||||
extern int of_reconfig_notify(unsigned long, void *);
|
||||
extern int of_reconfig_get_state_change(unsigned long action, void *arg);
|
||||
|
||||
extern int of_attach_node(struct device_node *);
|
||||
extern int of_detach_node(struct device_node *);
|
||||
@@ -887,6 +888,12 @@ struct of_changeset {
|
||||
struct list_head entries;
|
||||
};
|
||||
|
||||
enum of_reconfig_change {
|
||||
OF_RECONFIG_NO_CHANGE = 0,
|
||||
OF_RECONFIG_CHANGE_ADD,
|
||||
OF_RECONFIG_CHANGE_REMOVE,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_OF_DYNAMIC
|
||||
extern void of_changeset_init(struct of_changeset *ocs);
|
||||
extern void of_changeset_destroy(struct of_changeset *ocs);
|
||||
|
||||
Reference in New Issue
Block a user