Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: mt6397: Move buck modes into header file

This will allow device trees to make use of these constants.

Signed-off-by: Anand K Mistry <amistry@google.com>
Link: https://lore.kernel.org/r/20200702162231.v2.1.Icf69e2041b1af4548347018186c3ba6310f53e66@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Anand K Mistry and committed by
Mark Brown
1c537b2d d5ff5fb9

+16 -3
+1 -3
drivers/regulator/mt6397-regulator.c
··· 13 13 #include <linux/regulator/machine.h> 14 14 #include <linux/regulator/mt6397-regulator.h> 15 15 #include <linux/regulator/of_regulator.h> 16 - 17 - #define MT6397_BUCK_MODE_AUTO 0 18 - #define MT6397_BUCK_MODE_FORCE_PWM 1 16 + #include <dt-bindings/regulator/mediatek,mt6397-regulator.h> 19 17 20 18 /* 21 19 * MT6397 regulators' information
+15
include/dt-bindings/regulator/mediatek,mt6397-regulator.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + #ifndef _DT_BINDINGS_REGULATOR_MEDIATEK_MT6397_H_ 4 + #define _DT_BINDINGS_REGULATOR_MEDIATEK_MT6397_H_ 5 + 6 + /* 7 + * Buck mode constants which may be used in devicetree properties (eg. 8 + * regulator-initial-mode, regulator-allowed-modes). 9 + * See the manufacturer's datasheet for more information on these modes. 10 + */ 11 + 12 + #define MT6397_BUCK_MODE_AUTO 0 13 + #define MT6397_BUCK_MODE_FORCE_PWM 1 14 + 15 + #endif