* [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name
@ 2025-04-24 20:33 Krzysztof Kozlowski
2025-04-25 9:21 ` Tudor Ambarus
2025-04-25 9:43 ` Krzysztof Kozlowski
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-24 20:33 UTC (permalink / raw)
To: Tudor Ambarus, Krzysztof Kozlowski, Alim Akhtar,
André Draszik, linux-kernel, linux-samsung-soc,
linux-arm-kernel
Cc: Krzysztof Kozlowski, kernel test robot
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/
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/firmware/samsung/exynos-acpm.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/firmware/samsung/exynos-acpm.c b/drivers/firmware/samsung/exynos-acpm.c
index b3afb2069fd1..e02f14f4bd7c 100644
--- a/drivers/firmware/samsung/exynos-acpm.c
+++ b/drivers/firmware/samsung/exynos-acpm.c
@@ -677,20 +677,20 @@ static void devm_acpm_release(struct device *dev, void *res)
}
/**
- * acpm_get_by_phandle() - get the ACPM handle using DT phandle.
- * @dev: device pointer requesting ACPM handle.
- * @property: property name containing phandle on ACPM node.
+ * acpm_get_by_node() - get the ACPM handle using node pointer.
+ * @dev: device pointer requesting ACPM handle.
+ * @np: ACPM device tree node.
*
* Return: pointer to handle on success, ERR_PTR(-errno) otherwise.
*/
static const struct acpm_handle *acpm_get_by_node(struct device *dev,
- struct device_node *acpm_np)
+ struct device_node *np)
{
struct platform_device *pdev;
struct device_link *link;
struct acpm_info *acpm;
- pdev = of_find_device_by_node(acpm_np);
+ pdev = of_find_device_by_node(np);
if (!pdev)
return ERR_PTR(-EPROBE_DEFER);
--
2.45.2
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name
2025-04-24 20:33 [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name Krzysztof Kozlowski
@ 2025-04-25 9:21 ` Tudor Ambarus
2025-04-25 9:43 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Tudor Ambarus @ 2025-04-25 9:21 UTC (permalink / raw)
To: Krzysztof Kozlowski, Krzysztof Kozlowski, Alim Akhtar,
André Draszik, linux-kernel, linux-samsung-soc,
linux-arm-kernel
Cc: kernel test robot
On 4/24/25 9:33 PM, Krzysztof Kozlowski wrote:
> 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/
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name
2025-04-24 20:33 [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name Krzysztof Kozlowski
2025-04-25 9:21 ` Tudor Ambarus
@ 2025-04-25 9:43 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-25 9:43 UTC (permalink / raw)
To: Tudor Ambarus, Krzysztof Kozlowski, Alim Akhtar,
André Draszik, linux-kernel, linux-samsung-soc,
linux-arm-kernel, Krzysztof Kozlowski
Cc: kernel test robot
On Thu, 24 Apr 2025 22:33:09 +0200, Krzysztof Kozlowski wrote:
> 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
>
> [...]
Applied, thanks!
[1/1] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name
https://git.kernel.org/krzk/linux/c/2c2e5e908ea2b53aa0d21fbfe4d1dab527a7703e
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-25 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-24 20:33 [PATCH] firmware: exynos-acpm: Correct kerneldoc and use typical np argument name Krzysztof Kozlowski
2025-04-25 9:21 ` Tudor Ambarus
2025-04-25 9:43 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®