msm: footswitch: Specify footswitch device struct for clk_get()
Use the device names to distinguish between clocks of the same
type rather than the clock name alone.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/footswitch.h b/arch/arm/mach-msm/footswitch.h
index 0780ca4..06b7c79 100644
--- a/arch/arm/mach-msm/footswitch.h
+++ b/arch/arm/mach-msm/footswitch.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2010-2011 Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -16,21 +16,18 @@
#include <linux/regulator/machine.h>
-enum fs_ids {
- FS_GFX2D0 = 0,
- FS_GFX2D1,
- FS_GFX3D,
- FS_IJPEG,
- FS_MDP,
- FS_MFC,
- FS_ROT,
- FS_VED,
- FS_VFE,
- FS_VPE,
- MAX_FS
-};
-
-#endif
+/* Device IDs */
+#define FS_GFX2D0 0
+#define FS_GFX2D1 1
+#define FS_GFX3D 2
+#define FS_IJPEG 3
+#define FS_MDP 4
+#define FS_MFC 5
+#define FS_ROT 6
+#define FS_VED 7
+#define FS_VFE 8
+#define FS_VPE 9
+#define MAX_FS 10
#define FS_GENERIC(_drv_name, _id, _name) (&(struct platform_device){ \
.name = (_drv_name), \
@@ -48,5 +45,7 @@
} \
}, \
})
-#define FS_PCOM(_id, _name) FS_GENERIC("footswitch-pcom", (_id), (_name))
-#define FS_8X60(_id, _name) FS_GENERIC("footswitch-msm8x60", (_id), (_name))
+#define FS_PCOM(_id, _name) FS_GENERIC("footswitch-pcom", (_id), (_name))
+#define FS_8X60(_id, _name) FS_GENERIC("footswitch-8x60", (_id), (_name))
+
+#endif