All of lore.kernel.org
 help / color / mirror / Atom feed
From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] power: pfuze100 correct macro definition
Date: Mon, 23 Mar 2015 09:34:14 +0100	[thread overview]
Message-ID: <550FD006.1000706@samsung.com> (raw)
In-Reply-To: <1427096050-3737-1-git-send-email-Peng.Fan@freescale.com>

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

      reply	other threads:[~2015-03-23  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23  7:34 [U-Boot] [PATCH] power: pfuze100 correct macro definition Peng Fan
2015-03-23  8:34 ` Przemyslaw Marczak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550FD006.1000706@samsung.com \
    --to=p.marczak@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.