diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-03-04 19:14:28 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-03-12 12:07:44 +0300 |
commit | 419d55bbb80370ed1e8a36d7884cfcf977e73e29 (patch) | |
tree | 6299db89be7be3391a0140e2aead1d1970a819a0 /include/linux/mfd | |
parent | a307de2aab5bcb96bae3d778b01ff815f027ad88 (diff) | |
download | linux-419d55bbb80370ed1e8a36d7884cfcf977e73e29.tar.xz |
mfd: max77693: Add TORCH_IOUT_MASK macro
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@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/max77693-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h index 5acd7104ad34..51633ea6f910 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 |