Skip to content

Commit d799727

Browse files
lucaceresolirobherring
authored andcommitted
of: dynamic: Fix of_reconfig_get_state_change() return value documentation
The documented numeric return values do not match the actual returned values. Fix them by using the enum names instead of raw numbers. Fixes: b53a234 ("of/reconfig: Add of_reconfig_get_state_change() of notifier helper.") Signed-off-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/20231123-fix-of_reconfig_get_state_change-docs-v1-1-f51892050ff9@bootlin.com Signed-off-by: Rob Herring <[email protected]>
1 parent ded9658 commit d799727

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/of/dynamic.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p)
9898
*
9999
* Returns the new state of a device based on the notifier used.
100100
*
101-
* Return: 0 on device going from enabled to disabled, 1 on device
102-
* going from disabled to enabled and -1 on no change.
101+
* Return: OF_RECONFIG_CHANGE_REMOVE on device going from enabled to
102+
* disabled, OF_RECONFIG_CHANGE_ADD on device going from disabled to
103+
* enabled and OF_RECONFIG_NO_CHANGE on no change.
103104
*/
104105
int of_reconfig_get_state_change(unsigned long action, struct of_reconfig_data *pr)
105106
{

0 commit comments

Comments
 (0)