diff mbox

[U-Boot] power: pfuze100 correct macro definition

Message ID 1427096050-3737-1-git-send-email-Peng.Fan@freescale.com
State Accepted, archived
Delegated to: Przemyslaw Marczak
Headers show

Commit Message

Peng Fan March 23, 2015, 7:34 a.m. UTC
Correct the macro PFUZE100_SW1ABC_SETP definition. We should
add parenthese for 'x'.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
---
 include/power/pfuze100_pmic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Przemyslaw Marczak March 23, 2015, 8:34 a.m. UTC | #1
Hello Peng,

On 03/23/2015 08:34 AM, Peng Fan wrote:
> Correct the macro PFUZE100_SW1ABC_SETP definition. We should
> add parenthese for 'x'.
>
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
> ---
>   include/power/pfuze100_pmic.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h
> index 07199b4..9c749ed 100644
> --- a/include/power/pfuze100_pmic.h
> +++ b/include/power/pfuze100_pmic.h
> @@ -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
>

Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>

best regards,
diff mbox

Patch

diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h
index 07199b4..9c749ed 100644
--- a/include/power/pfuze100_pmic.h
+++ b/include/power/pfuze100_pmic.h
@@ -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