Thread (14 messages) 14 messages, 5 authors, 2017-01-23

Re: [PATCH v11 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD

flat view

From: Marek Vasut <hidden>
Date: 2016-12-08 23:03:35
Also in: linux-iio, lkml

On 12/08/2016 11:27 PM, Ksenija Stanojevic wrote:
Add core files for low resolution analog-to-digital converter (mxs-lradc)
MFD driver.

Signed-off-by: Ksenija Stanojevic <redacted>
Just a nit below.
quoted hunk ↗ jump to hunk
+++ b/include/linux/mfd/mxs-lradc.h
@@ -0,0 +1,187 @@
+/*
[...]
quoted hunk ↗ jump to hunk
+#define LRADC_CTRL1_MX28_LRADC_IRQ_EN_MASK	(0x1fff << 16)
+#define LRADC_CTRL1_MX23_LRADC_IRQ_EN_MASK	(0x01ff << 16)
+#define LRADC_CTRL1_LRADC_IRQ_EN_OFFSET		16
+#define LRADC_CTRL1_TOUCH_DETECT_IRQ		BIT(8)
+#define LRADC_CTRL1_LRADC_IRQ(n)		(1 << (n))
This would turn into BIT(n) , no ?
quoted hunk ↗ jump to hunk
+#define LRADC_CTRL1_MX28_LRADC_IRQ_MASK		0x1fff
+#define LRADC_CTRL1_MX23_LRADC_IRQ_MASK		0x01ff
+#define LRADC_CTRL1_LRADC_IRQ_OFFSET		0
[...]

-- 
Best regards,
Marek Vasut
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help