Skip to content

Commit a659548

Browse files
gmarullcarlescufi
authored andcommitted
net: fix pm argument documentation
The `pm` field is used to provide a reference to pre-allocated PM resources. Its usage as a callback was removed a while ago, and these headers missed the migration. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 129a093 commit a659548

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

include/zephyr/net/ethernet.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,8 @@ static inline bool net_eth_get_vlan_status(struct net_if *iface)
860860
* @param name The name this instance of the driver exposes to
861861
* the system.
862862
* @param init_fn Address to the init function of the driver.
863-
* @param pm Pointer to PM action callback.
864-
* Can be NULL if not implemented.
863+
* @param pm Reference to struct pm_device associated with the device.
864+
* (optional).
865865
* @param data Pointer to the device's private data.
866866
* @param config The address to the structure containing the
867867
* configuration information for this instance of the driver.
@@ -881,8 +881,8 @@ static inline bool net_eth_get_vlan_status(struct net_if *iface)
881881
*
882882
* @param node_id The devicetree node identifier.
883883
* @param init_fn Address to the init function of the driver.
884-
* @param pm Pointer to PM action callback.
885-
* Can be NULL if not implemented.
884+
* @param pm Reference to struct pm_device associated with the device.
885+
* (optional).
886886
* @param data Pointer to the device's private data.
887887
* @param config The address to the structure containing the
888888
* configuration information for this instance of the driver.

include/zephyr/net/net_if.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,8 +2330,8 @@ struct net_if_api {
23302330
* @param name The name this instance of the driver exposes to
23312331
* the system.
23322332
* @param init_fn Address to the init function of the driver.
2333-
* @param pm Pointer to PM action callback.
2334-
* Can be NULL if not implemented.
2333+
* @param pm Reference to struct pm_device associated with the device.
2334+
* (optional).
23352335
* @param data Pointer to the device's private data.
23362336
* @param config The address to the structure containing the
23372337
* configuration information for this instance of the driver.
@@ -2353,8 +2353,8 @@ struct net_if_api {
23532353
*
23542354
* @param node_id The devicetree node identifier.
23552355
* @param init_fn Address to the init function of the driver.
2356-
* @param pm Pointer to PM action callback.
2357-
* Can be NULL if not implemented.
2356+
* @param pm Reference to struct pm_device associated with the device.
2357+
* (optional).
23582358
* @param data Pointer to the device's private data.
23592359
* @param config The address to the structure containing the
23602360
* configuration information for this instance of the driver.
@@ -2403,8 +2403,8 @@ struct net_if_api {
24032403
* the system.
24042404
* @param instance Instance identifier.
24052405
* @param init_fn Address to the init function of the driver.
2406-
* @param pm Pointer to PM action callback.
2407-
* Can be NULL if not implemented.
2406+
* @param pm Reference to struct pm_device associated with the device.
2407+
* (optional).
24082408
* @param data Pointer to the device's private data.
24092409
* @param config The address to the structure containing the
24102410
* configuration information for this instance of the driver.
@@ -2432,8 +2432,8 @@ struct net_if_api {
24322432
* @param node_id The devicetree node identifier.
24332433
* @param instance Instance identifier.
24342434
* @param init_fn Address to the init function of the driver.
2435-
* @param pm Pointer to PM action callback.
2436-
* Can be NULL if not implemented.
2435+
* @param pm Reference to struct pm_device associated with the device.
2436+
* (optional).
24372437
* @param data Pointer to the device's private data.
24382438
* @param config The address to the structure containing the
24392439
* configuration information for this instance of the driver.
@@ -2482,8 +2482,8 @@ struct net_if_api {
24822482
* @param name The name this instance of the driver exposes to
24832483
* the system.
24842484
* @param init_fn Address to the init function of the driver.
2485-
* @param pm Pointer to PM action callback.
2486-
* Can be NULL if not implemented.
2485+
* @param pm Reference to struct pm_device associated with the device.
2486+
* (optional).
24872487
* @param data Pointer to the device's private data.
24882488
* @param config The address to the structure containing the
24892489
* configuration information for this instance of the driver.
@@ -2506,8 +2506,8 @@ struct net_if_api {
25062506
*
25072507
* @param node_id The devicetree node identifier.
25082508
* @param init_fn Address to the init function of the driver.
2509-
* @param pm Pointer to PM action callback.
2510-
* Can be NULL if not implemented.
2509+
* @param pm Reference to struct pm_device associated with the device.
2510+
* (optional).
25112511
* @param data Pointer to the device's private data.
25122512
* @param config The address to the structure containing the
25132513
* configuration information for this instance of the driver.

include/zephyr/net/virtual.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ net_virtual_get_iface_capabilities(struct net_if *iface)
290290
* @param name The name this instance of the driver exposes to
291291
* the system.
292292
* @param init_fn Address to the init function of the driver.
293-
* @param pm Pointer to PM action callback.
294-
* Can be NULL if not implemented.
293+
* @param pm Reference to struct pm_device associated with the device.
294+
* (optional).
295295
* @param data Pointer to the device's private data.
296296
* @param config The address to the structure containing the
297297
* configuration information for this instance of the driver.

0 commit comments

Comments
 (0)