Skip to contentSkip to conversation

power: pfuze100 correct macro definition

PATCH New Peng Fan 2 participants 2 messages Mar 23, 2015

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 power: pfuze100 correct macro definition

Correct the macro PFUZE100_SW1ABC_SETP definition. We should add parenthese for 'x'.

---
 include/power/pfuze100_pmic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/power/pfuze100_pmic.h +1 -1
index 07199b4..9c749ed 100644
@@ -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
#1 lore raw

PATCH 1/1 power: pfuze100 correct macro definition

Hello Peng,

Quoted 14 lines · Peng Fan

Correct the macro PFUZE100_SW1ABC_SETP definition. We should add parenthese for 'x'.

---
  include/power/pfuze100_pmic.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/power/pfuze100_pmic.h +0 -0
index 07199b4..9c749ed 100644

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