]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: exynos-acpm: Count number of commands in acpm_xfer
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 19 Feb 2026 11:27:11 +0000 (12:27 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 24 Feb 2026 11:06:29 +0000 (12:06 +0100)
commit00808ae2e679a97dccc5cf0ee4474ba1e2e8a21a
treed5f3270551a181f517546da1ddca9535bc8d789d
parent910e91a6496f7e0af80e945a6b850b589b90669e
firmware: exynos-acpm: Count number of commands in acpm_xfer

Struct acpm_xfer holds two buffers with u32 commands - rxd and txd - and
counts their size by rxlen and txlen.  "len" suffix is here ambiguous,
so could mean length of the buffer or length of commands, and these are
not the same since each command is u32.  Rename these to rxcnt and
txcnt, and change their usage to count the number of commands in each
buffer.

This will have a benefit of allowing to use __counted_by_ptr later.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://patch.msgid.link/20260219-firmare-acpm-counted-v2-2-e1f7389237d3@oss.qualcomm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/firmware/samsung/exynos-acpm-dvfs.c
drivers/firmware/samsung/exynos-acpm-pmic.c
drivers/firmware/samsung/exynos-acpm.c
drivers/firmware/samsung/exynos-acpm.h