regulator: mt6358: Use mt6397-regulator.h binding header for buck mode macros
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 28 Sep 2023 08:55:29 +0000 (16:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Oct 2023 18:43:45 +0000 (19:43 +0100)
commit9f3bec54d06f1eb4b47c7f78ef1401bc71977e9e
tree96a618d00dee87421221fba9e0e238ef3d688cda
parentc631494a69c55301a03af9c028892c9098019652
regulator: mt6358: Use mt6397-regulator.h binding header for buck mode macros

The (undocumented) possible values for the buck operating modes on the
MT6358 are the same as those on the MT6397, both for the device tree
bindings and the actual hardware register values.

Reuse the macros for the MT6397 PMIC in the MT6358 regulator driver by
including the mt6397-regulator.h binding header and replacing the
existing macros. This aligns it with other PMIC.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230928085537.3246669-7-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6358-regulator.c