Thread (33 messages) 33 messages, 4 authors, 2015-03-10
STALE4157d REVIEWED: 3 (3M)
Revisions (8)
  1. v4 [diff vs current]
  2. v8 [diff vs current]
  3. v11 [diff vs current]
  4. v12 current
  5. v13 [diff vs current]
  6. v4 [diff vs current]
  7. v9 [diff vs current]
  8. v10 [diff vs current]

[PATCH/RFC v12 07/19] mfd: max77693: add TORCH_IOUT_MASK macro

From: Jacek Anaszewski <hidden>
Date: 2015-03-04 16:16:31
Also in: linux-leds, linux-media, lkml
Subsystem: maxim pmic and muic drivers for exynos based boards, multifunction devices (mfd), the rest · Maintainers: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Linus Torvalds

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 <redacted>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Lee Jones <redacted>
---
 include/linux/mfd/max77693-private.h |    1 +
 1 file changed, 1 insertion(+)
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
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help