Thread (16 messages) 16 messages, 2 authors, 2012-09-03

[PATCH v4 2/7] ARM: imx6q: add iomuxc gpr support into syscon

From: Dong Aisheng <hidden>
Date: 2012-09-03 03:08:15
Also in: linux-devicetree, lkml

On Fri, Aug 31, 2012 at 10:02:48AM +0800, Shawn Guo wrote:
On Wed, Aug 29, 2012 at 06:56:53PM +0800, Dong Aisheng wrote:
quoted
From: Dong Aisheng <redacted>

Include headfile for easy using.

Acked-by: Stephen Warren <redacted>
Signed-off-by: Dong Aisheng <redacted>
---
 arch/arm/boot/dts/imx6q.dtsi         |    5 +
 include/linux/fsl/imx6q-iomuxc-gpr.h |  319 ++++++++++++++++++++++++++++++++++
I assume that all the users of this header file are imx6q syscon
clients.  In that case, this header belongs to mfd/syscon subsystem.

I have been told by people that it was a mistake to create
include/linux/fsl.  Each header in include/linux should go to
respective subsystem sub-directory.  For this particular case,
it should be include/linux/mfd or include/linux/mfd/syscon even
better, IMO.
I like the later one if not put in include/linux/fsl. :)
quoted
+#define IMX6Q_GPR13_SATA_PHY_1_MED		(0x1 << 0)
+#define IMX6Q_GPR13_SATA_PHY_1_SLOW		(0x2 << 0)
+
+#endif /* !__LINUX_IMX6Q_IOMUXC_GPR_H */
Nit: why do we have a "!" there?
You're right.
We do not need a '!' for such macro.
Sorry for my mistake.

Regards
Dong Aisheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help