Skip to content

Commit d836408

Browse files
henrikbrixandersencarlescufi
authored andcommitted
doc: reference: api: design guidelines: use const struct device *dev
Use "const struct device *dev" for first argument in callback functions. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 9a67af9 commit d836408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/reference/api/design_guidelines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ specifying the signature of a callback:
1616

1717
* The first parameter should be a pointer to the object most closely
1818
associated with the callback. In the case of device drivers this
19-
would be ``struct device *dev``. For library functions it may be a
19+
would be ``const struct device *dev``. For library functions it may be a
2020
pointer to another object that was referenced when the callback was
2121
provided.
2222

0 commit comments

Comments
 (0)