Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: exynos-acpm: Correct kerneldoc and use typical np argument name

Correct kerneldoc warnings after commit a8dc26a0ec43 ("firmware:
exynos-acpm: introduce devm_acpm_get_by_node()") changed the function
prototype:

exynos-acpm.c:672: warning: Function parameter or struct member 'acpm_np' not described in 'acpm_get_by_node'
exynos-acpm.c:672: warning: expecting prototype for acpm_get_by_phandle(). Prototype was for acpm_get_by_node() instead

While touching the lines, change the name of device_node pointer to
'np' to match convention.

Fixes: a8dc26a0ec43 ("firmware: exynos-acpm: introduce devm_acpm_get_by_node()")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504222051.7TqaSQ48-lkp@intel.com/
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20250424203308.402168-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+5 -5
+5 -5
drivers/firmware/samsung/exynos-acpm.c
··· 661 661 } 662 662 663 663 /** 664 - * acpm_get_by_phandle() - get the ACPM handle using DT phandle. 665 - * @dev: device pointer requesting ACPM handle. 666 - * @property: property name containing phandle on ACPM node. 664 + * acpm_get_by_node() - get the ACPM handle using node pointer. 665 + * @dev: device pointer requesting ACPM handle. 666 + * @np: ACPM device tree node. 667 667 * 668 668 * Return: pointer to handle on success, ERR_PTR(-errno) otherwise. 669 669 */ 670 670 static const struct acpm_handle *acpm_get_by_node(struct device *dev, 671 - struct device_node *acpm_np) 671 + struct device_node *np) 672 672 { 673 673 struct platform_device *pdev; 674 674 struct device_link *link; 675 675 struct acpm_info *acpm; 676 676 677 - pdev = of_find_device_by_node(acpm_np); 677 + pdev = of_find_device_by_node(np); 678 678 if (!pdev) 679 679 return ERR_PTR(-EPROBE_DEFER); 680 680