* [U-Boot] [PATCH] power: pfuze100 correct macro definition
@ 2015-03-23 7:34 Peng Fan
2015-03-23 8:34 ` Przemyslaw Marczak
0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan @ 2015-03-23 7:34 UTC (permalink / raw)
To: u-boot
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
--
1.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] power: pfuze100 correct macro definition
2015-03-23 7:34 [U-Boot] [PATCH] power: pfuze100 correct macro definition Peng Fan
@ 2015-03-23 8:34 ` Przemyslaw Marczak
0 siblings, 0 replies; 2+ messages in thread
From: Przemyslaw Marczak @ 2015-03-23 8:34 UTC (permalink / raw)
To: u-boot
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,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-23 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 7:34 [U-Boot] [PATCH] power: pfuze100 correct macro definition Peng Fan
2015-03-23 8:34 ` Przemyslaw Marczak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox