{
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)
{
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 */
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;
};
#include <linux/mod_devicetable.h>
-struct greybus_interface_block_id {
+struct greybus_interface_id {
__u16 match_flags;
__u16 vendor;
__u16 product;
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)
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))
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;
/* 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);