[PATCH 2/2] power: regulator: Support pmic pf0900
Tom Rini
trini at konsulko.com
Thu Oct 10 20:25:34 CEST 2024
On Mon, Sep 30, 2024 at 11:22:43AM +0800, Peng Fan (OSS) wrote:
> From: Joy Zou <joy.zou at nxp.com>
>
> Add regulator driver for NXP PF0900
>
> Signed-off-by: Joy Zou <joy.zou at nxp.com>
> Reviewed-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
> drivers/power/regulator/Kconfig | 15 ++
> drivers/power/regulator/Makefile | 1 +
> drivers/power/regulator/pf0900.c | 304 +++++++++++++++++++++++++++++++
> 3 files changed, 320 insertions(+)
> create mode 100644 drivers/power/regulator/pf0900.c
In addition to the MAINTAINERS comment:
CHECK: Macro argument reuse '_range' - possible side-effects?
#280: FILE: drivers/power/regulator/pf0900.c:59:
+#define PCA_DATA(_name, enreg, enmask, vreg, vmask, _range) \
+{ \
+ .name = (_name), .enable_reg = (enreg), .enablemask = (enmask), \
+ .volt_reg = (vreg), .volt_mask = (vmask), .ranges = (_range), \
+ .numranges = ARRAY_SIZE(_range) \
+}
And it's that last _range that I believe is being noted.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241010/8ee96d2e/attachment.sig>
More information about the U-Boot
mailing list