staging: unisys: visorbus: convert VMCALL_CONTROLVM_ADDR enum to #define
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Mon, 17 Jul 2017 20:16:55 +0000 (16:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:41 +0000 (08:48 +0200)
VMCALL_CONTROLVM_ADDR is the only element left in enum
vmcall_monitor_interface_method_tuple. Converting it to a #define.

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/vmcallinterface.h

index de6693f..541911b 100644 (file)
@@ -17,8 +17,7 @@
 #define __VMCALLINTERFACE_H__
 
 /*
- * enum vmcall_monitor_interface_method_tuple - VMCALL identification tuples.
- * @VMCALL_CONTROLVM_ADDR: Used by all guests, not just IO.
+ * VMCALL_CONTROLVM_ADDR: Used by all guests, not just IO.
  *
  * Note: When a new VMCALL is added:
  * - The 1st 2 hex digits correspond to one of the VMCALL_MONITOR_INTERFACE
@@ -29,9 +28,7 @@
  * - The 0x01 identifies it as the 1st instance of a VMCALL_VIRTPART type of
  *   VMCALL.
  */
-enum vmcall_monitor_interface_method_tuple {
-       VMCALL_CONTROLVM_ADDR = 0x0501,
-};
+#define VMCALL_CONTROLVM_ADDR 0x0501
 
 enum vmcall_result {
        VMCALL_RESULT_SUCCESS = 0,