[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150309093611.GH3427@x1>
Date: Mon, 9 Mar 2015 09:36:11 +0000
From: Lee Jones <lee.jones@...aro.org>
To: Jacek Anaszewski <j.anaszewski@...sung.com>
Cc: linux-leds@...r.kernel.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
kyungmin.park@...sung.com, pavel@....cz, cooloney@...il.com,
rpurdie@...ys.net, sakari.ailus@....fi, s.nawrocki@...sung.com,
Chanwoo Choi <cw00.choi@...sung.com>
Subject: Re: [PATCH/RFC v12 07/19] mfd: max77693: add TORCH_IOUT_MASK macro
On Wed, 04 Mar 2015, Jacek Anaszewski wrote:
> Add a macro for obtaining the mask of ITORCH register bit fields
> related either to FLED1 or FLED2 current output. The expected
> arguments are TORCH_IOUT1_SHIFT or TORCH_IOUT2_SHIFT.
>
> Signed-off-by: Jacek Anaszewski <j.anaszewski@...sung.com>
> Acked-by: Kyungmin Park <kyungmin.park@...sung.com>
> Cc: Chanwoo Choi <cw00.choi@...sung.com>
> Cc: Lee Jones <lee.jones@...aro.org>
> ---
> include/linux/mfd/max77693-private.h | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks.
> diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
> index 955dd99..8770ce1 100644
> --- a/include/linux/mfd/max77693-private.h
> +++ b/include/linux/mfd/max77693-private.h
> @@ -87,6 +87,7 @@ enum max77693_pmic_reg {
> /* MAX77693 ITORCH register */
> #define TORCH_IOUT1_SHIFT 0
> #define TORCH_IOUT2_SHIFT 4
> +#define TORCH_IOUT_MASK(x) (0xf << (x))
> #define TORCH_IOUT_MIN 15625
> #define TORCH_IOUT_MAX 250000
> #define TORCH_IOUT_STEP 15625
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists