greybus: interface: rename greybus_interface_block_id to greybus_interface_id
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 19 Dec 2014 22:56:32 +0000 (14:56 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 19 Dec 2014 23:35:44 +0000 (15:35 -0800)
This moves the id structure name to not have "block" in it, as that
doesn't make sense anymore with the renaming of the gb_interface
structure.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/greybus_id.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h

index a0e0af5..96410cb 100644 (file)
@@ -35,7 +35,7 @@ static int greybus_module_match(struct device *dev, struct device_driver *drv)
 {
        struct greybus_driver *driver = to_greybus_driver(drv);
        struct gb_interface *intf = to_gb_interface(dev);
-       const struct greybus_interface_block_id *id;
+       const struct greybus_interface_id *id;
 
        id = gb_interface_match_id(intf, driver->id_table);
        if (id)
@@ -95,7 +95,7 @@ static int greybus_probe(struct device *dev)
 {
        struct greybus_driver *driver = to_greybus_driver(dev->driver);
        struct gb_interface *intf = to_gb_interface(dev);
-       const struct greybus_interface_block_id *id;
+       const struct greybus_interface_id *id;
        int retval;
 
        /* match id */
index bca0e66..4db5956 100644 (file)
@@ -120,13 +120,13 @@ struct greybus_driver {
        const char *name;
 
        int (*probe)(struct gb_interface *intf,
-                    const struct greybus_interface_block_id *id);
+                    const struct greybus_interface_id *id);
        void (*disconnect)(struct gb_interface *intf);
 
        int (*suspend)(struct gb_interface *intf, pm_message_t message);
        int (*resume)(struct gb_interface *intf);
 
-       const struct greybus_interface_block_id *id_table;
+       const struct greybus_interface_id *id_table;
 
        struct device_driver driver;
 };
index da70aab..53da8e7 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/mod_devicetable.h>
 
 
-struct greybus_interface_block_id {
+struct greybus_interface_id {
        __u16   match_flags;
        __u16   vendor;
        __u16   product;
@@ -18,7 +18,7 @@ struct greybus_interface_block_id {
        kernel_ulong_t  driver_info __aligned(sizeof(kernel_ulong_t));
 };
 
-/* Used to match the greybus_interface_block_id */
+/* Used to match the greybus_interface_id */
 #define GREYBUS_ID_MATCH_VENDOR                BIT(0)
 #define GREYBUS_ID_MATCH_PRODUCT               BIT(1)
 #define GREYBUS_ID_MATCH_SERIAL                BIT(2)
index f2c9354..d840ae6 100644 (file)
@@ -41,7 +41,7 @@ ATTRIBUTE_GROUPS(interface);
 static DEFINE_SPINLOCK(gb_modules_lock);
 
 static int gb_interface_match_one_id(struct gb_interface *intf,
-                                    const struct greybus_interface_block_id *id)
+                                    const struct greybus_interface_id *id)
 {
        if ((id->match_flags & GREYBUS_ID_MATCH_VENDOR) &&
            (id->vendor != intf->vendor))
@@ -58,9 +58,9 @@ static int gb_interface_match_one_id(struct gb_interface *intf,
        return 1;
 }
 
-const struct greybus_interface_block_id *
+const struct greybus_interface_id *
 gb_interface_match_id(struct gb_interface *intf,
-                     const struct greybus_interface_block_id *id)
+                     const struct greybus_interface_id *id)
 {
        if (id == NULL)
                return NULL;
index 52adc83..f6f16df 100644 (file)
@@ -47,9 +47,9 @@ static inline void * gb_interface__get_drvdata(struct gb_interface *intf)
 
 /* Greybus "private" definitions */
 
-const struct greybus_interface_block_id *
+const struct greybus_interface_id *
        gb_interface_match_id(struct gb_interface *intf,
-                             const struct greybus_interface_block_id *id);
+                             const struct greybus_interface_id *id);
 
 struct gb_interface *gb_interface_find(struct greybus_host_device *hd,
                                       u8 module_id);