Skip to contentSkip to conversation

mux: describe np parameter in __devm_mux_state_get()

PATCH In review Frank Li 2 participants 2 messages May 7 – May 12

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 mux: describe np parameter in __devm_mux_state_get()

Add a description for the 'np' parameter of __devm_mux_state_get() to fix build warning.

---
 drivers/mux/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mux/core.c +1 -0
index 2f01acfccf47b..5083e3d19606b 100644
@@ -771,6 +771,7 @@ static void devm_mux_state_release(struct device *dev, void *res)
  * @dev: The device that needs a mux-state.
  * @mux_name: The name identifying the mux-state.
  * @optional: Whether to return NULL and silence errors when mux doesn't exist.
+ * @np: The device nodes, use dev->of_node if it is NULL.
  * @init: Optional function pointer for mux-state object initialisation.
  * @exit: Optional function pointer for mux-state object cleanup on release.
  *

--
2.43.0

Acked-by on v1 1/1
#1 lore raw

Hi Frank,

Am 07.05.26 um 17:21 schrieb Frank Li:

Quoted 15 lines

Add a description for the 'np' parameter of __devm_mux_state_get() to fix build warning.

---
 drivers/mux/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mux/core.c +0 -0
index 2f01acfccf47b..5083e3d19606b 100644

drivers/mux/core.c static void devm_mux_state_release(struct device *dev, void *res) · line 774

Quoted 4 lines
drivers/mux/core.c +1 -0
@@ -771,6 +771,7 @@ static void devm_mux_state_release(struct device *dev, void *res)
  * @dev: The device that needs a mux-state.
  * @mux_name: The name identifying the mux-state.
  * @optional: Whether to return NULL and silence errors when mux doesn't exist.
+ * @np: The device nodes, use dev->of_node if it is NULL.

minor nit: Singular device "node".

Quoted 6 lines
drivers/mux/core.c +0 -1
  * @init: Optional function pointer for mux-state object initialisation.
  * @exit: Optional function pointer for mux-state object cleanup on release.
  *
--

2.43.0

I think patches to mux-core alone end up in some low-attention (no-)maintainer bin, when they don't go via other trees (mmc, pinctrl, phy, ...).
See also:

https://lore.kernel.org/r/[email protected]