Name
of_changeset_action —
Add a changeset entry to the changeset
Synopsis
int of_changeset_action ( | struct of_changeset * ocs, |
| unsigned long action, |
| struct device_node * np, |
| struct property * prop) ; |
Arguments
ocs
Pointer to changeset
action
Action to perform
np
Pointer to node
prop
Pointer to property
Description
Create a new changeset entry and add it to the tail of ocs
.
Values for action
are
+ OF_RECONFIG_ATTACH_NODE
+ OF_RECONFIG_DETACH_NODE,
+ OF_RECONFIG_ADD_PROPERTY
+ OF_RECONFIG_REMOVE_PROPERTY,
+ OF_RECONFIG_UPDATE_PROPERTY
Return
0
on success, -ENOMEM
on memory allocation error.