diff mbox

[1/2] usb: renesas_usbhs: Change the SoC types to enum values

Message ID 1431941665-3768-2-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
State Superseded
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Yoshihiro Shimoda May 18, 2015, 9:34 a.m. UTC
To add other SoC types easily, this patch changes USBHS_TYPE_R8A7790
and USBHS_TYPE_R8A7791 to enum values.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 include/linux/usb/renesas_usbhs.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h
index f06529c..e438e72 100644
--- a/include/linux/usb/renesas_usbhs.h
+++ b/include/linux/usb/renesas_usbhs.h
@@ -169,8 +169,10 @@  struct renesas_usbhs_driver_param {
 #define USBHS_USB_DMAC_XFER_SIZE	32	/* hardcode the xfer size */
 };
 
-#define USBHS_TYPE_R8A7790 1
-#define USBHS_TYPE_R8A7791 2
+enum {
+	USBHS_TYPE_R8A7790 = 1,
+	USBHS_TYPE_R8A7791,
+};
 
 /*
  * option: