staging: unisys: get rid of typedef for VIRTPCI_DEV_TYPE
authorBenjamin Romer <benjamin.romer@unisys.com>
Mon, 27 Oct 2014 18:18:13 +0000 (14:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 09:42:07 +0000 (17:42 +0800)
Remove the typedef and use enum virtpc_dev_type instead. Update references.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/virtpci/virtpci.c
drivers/staging/unisys/virtpci/virtpci.h

index 1616109..430ad6c 100644 (file)
@@ -614,7 +614,8 @@ static void delete_all(void)
 /* deletes all vnics or vhbas
  * returns 0 failure, 1 success,
  */
-static int delete_all_virt(VIRTPCI_DEV_TYPE devtype, struct del_vbus_guestpart *delparams)
+static int delete_all_virt(enum virtpci_dev_type devtype,
+                          struct del_vbus_guestpart *delparams)
 {
        int i;
        unsigned char busid[BUS_ID_SIZE];
index de2182f..4902545 100644 (file)
@@ -45,14 +45,14 @@ struct net_adap_info {
        uuid_le zone_uuid;
 };
 
-typedef enum {
+enum virtpci_dev_type {
        VIRTHBA_TYPE = 0,
        VIRTNIC_TYPE = 1,
        VIRTBUS_TYPE = 6,
-} VIRTPCI_DEV_TYPE;
+};
 
 struct virtpci_dev {
-       VIRTPCI_DEV_TYPE devtype;       /* indicates type of the
+       enum virtpci_dev_type devtype;  /* indicates type of the
                                         * virtual pci device */
        struct virtpci_driver *mydriver;        /* which driver has allocated
                                                 * this device */