power: pfuze100 correct macro definition
PATCH 1/1 power: pfuze100 correct macro definition
Correct the macro PFUZE100_SW1ABC_SETP definition. We should add parenthese for 'x'.
Signed-off-by Peng Fan <[email protected]>
--- include/power/pfuze100_pmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/power/pfuze100_pmic.h +1 -1
@@ -61,7 +61,7 @@ enum {* Buck Regulators */ -#define PFUZE100_SW1ABC_SETP (x) ((x - 3000) / 250) +#define PFUZE100_SW1ABC_SETP (x) (((x) - 3000) / 250)/* SW1A/B/C Output Voltage Configuration */ #define SW1x_0_300V 0
Signature · 1 line
1.8.4
PATCH 1/1 power: pfuze100 correct macro definition
Hello Peng,
Quoted 14 lines · Peng Fan
Correct the macro
PFUZE100_SW1ABC_SETPdefinition. We should add parenthese for 'x'.Signed-off-by Peng Fan <[email protected]>--- include/power/pfuze100_pmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/power/pfuze100_pmic.h +0
-0
include/power/pfuze100_pmic.h enum { · line 67
Quoted 8 lines
include/power/pfuze100_pmic.h +1
-1@@ -61,7 +61,7 @@ enum {* Buck Regulators */ -#define PFUZE100_SW1ABC_SETP (x) ((x - 3000) / 250) +#define PFUZE100_SW1ABC_SETP (x) (((x) - 3000) / 250)/* SW1A/B/C Output Voltage Configuration */ #define SW1x_0_300V 0
best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com