[PATCH v2 0/3] firmware: exynos-acpm: Use __counted_by()
Krzysztof Kozlowski
krzysztof.kozlowski at oss.qualcomm.com
Thu Feb 19 03:27:09 PST 2026
Changes in v2:
- Add tags
- Patch 2/3: typo, single ioread32 lines, merge the two if() for
txcnt/rxcnt checks
- Link to v1: https://patch.msgid.link/20260214-firmare-acpm-counted-v1-0-32af5735470e@oss.qualcomm.com
Improve safety of the code by using __counted_by/__counted_by_ptr.
Best regards,
Krzysztof
---
Krzysztof Kozlowski (3):
firmware: exynos-acpm: Use unsigned int for acpm_pmic_linux_errmap index
firmware: exynos-acpm: Count number of commands in acpm_xfer
firmware: exynos-acpm: Count acpm_xfer buffers with __counted_by_ptr
drivers/firmware/samsung/exynos-acpm-dvfs.c | 9 +++++----
drivers/firmware/samsung/exynos-acpm-pmic.c | 16 ++++++++--------
drivers/firmware/samsung/exynos-acpm.c | 14 +++++++-------
drivers/firmware/samsung/exynos-acpm.h | 8 ++++----
4 files changed, 24 insertions(+), 23 deletions(-)
---
base-commit: 635c467cc14ebdffab3f77610217c1dacaf88e8c
change-id: 20260214-firmare-acpm-counted-255f287c3dce
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list