Skip to contentSkip to conversation

KS8695: Fix macro definition bug in regs-switch.c

PATCH New zealcook at gmail.com 2 participants 2 messages Nov 2, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KS8695: Fix macro definition bug in regs-switch.c

From: zeal <[email protected]>

NOTE:
1. Macro style is so strange.
2. The value 0xc0 is not match with KS8695 manual. It should be 0x0c.

---
 arch/arm/mach-ks8695/include/mach/regs-switch.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-ks8695/include/mach/regs-switch.h +1 -1
index 56d12e8..97e8acb 100644
@@ -25,7 +25,7 @@
 #define KS8695_SEC1		(0x04)		/* Switch Engine Control 1 */
 #define KS8695_SEC2		(0x08)		/* Switch Engine Control 2 */
 
-#define KS8695_P(x)_C(z)	(0xc0 + (((x)-1)*3 + ((z)-1))*4)	/* Port Configuration Registers */
+#define KS8695_SEPXCZ(x,z)	(0x0c + (((x)-1)*3 + ((z)-1))*4)	/* Port Configuration Registers */
 
 #define KS8695_SEP12AN		(0x48)		/* Port 1 & 2 Auto-Negotiation */
 #define KS8695_SEP34AN		(0x4c)		/* Port 3 & 4 Auto-Negotiation */
Signature · 1 line
1.4.4.4