summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_id.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2014-12-11 17:11:02 -0500
committerGreg Kroah-Hartman <greg@kroah.com>2014-12-11 19:53:59 -0500
commit2f0c8aa4e6710a939da64412da0bdd7bb9aa5557 (patch)
tree54404f1df143c3a180bcda88eabc5887b6aa6860 /drivers/staging/greybus/greybus_id.h
parent640f13ecc879163dd45c213fbbef8ffc825d95bb (diff)
greybus: driver matching: Greybus drivers bind to interface blocks, not modules
Because of this, rename greybus_module_id to greybus_interface_block_id. We still need to add a way for a "class" driver to be bound to an interface, but for now, all we really need is the vendor/product pair as the GP Bridge interface block is going to be our main user. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_id.h')
-rw-r--r--drivers/staging/greybus/greybus_id.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/greybus_id.h b/drivers/staging/greybus/greybus_id.h
index c6cd2e8fa7c1..da70aab54ab0 100644
--- a/drivers/staging/greybus/greybus_id.h
+++ b/drivers/staging/greybus/greybus_id.h
@@ -9,7 +9,7 @@
#include <linux/mod_devicetable.h>
-struct greybus_module_id {
+struct greybus_interface_block_id {
__u16 match_flags;
__u16 vendor;
__u16 product;
@@ -18,9 +18,9 @@ struct greybus_module_id {
kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t));
};
-/* Used to match the greybus_module_id */
-#define GREYBUS_DEVICE_ID_MATCH_VENDOR BIT(0)
-#define GREYBUS_DEVICE_ID_MATCH_PRODUCT BIT(1)
-#define GREYBUS_DEVICE_ID_MATCH_SERIAL BIT(2)
+/* Used to match the greybus_interface_block_id */
+#define GREYBUS_ID_MATCH_VENDOR BIT(0)
+#define GREYBUS_ID_MATCH_PRODUCT BIT(1)
+#define GREYBUS_ID_MATCH_SERIAL BIT(2)
#endif /* __LINUX_GREYBUS_H */