]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mux: describe np parameter in __devm_mux_state_get()
authorFrank Li <Frank.Li@nxp.com>
Thu, 7 May 2026 15:21:14 +0000 (11:21 -0400)
committerLinus Walleij <linusw@kernel.org>
Mon, 11 May 2026 20:33:12 +0000 (22:33 +0200)
Add a description for the 'np' parameter of __devm_mux_state_get() to fix
build warning.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605061502.ullLjmtN-lkp@intel.com/
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/mux/core.c

index 2f01acfccf47b1a55037a29101951f4b1760d890..5083e3d19606b66256526cd98bd6aa36cac04b78 100644 (file)
@@ -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.
  *