DRVMGR: renamed info_dev to get_info_dev

This commit is contained in:
Daniel Hellstrom
2015-04-17 01:10:30 +02:00
parent 246fe225f1
commit 14d55debf1
4 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -145,7 +145,8 @@ struct drvmgr_bus_ops {
/*! Function called to request information about a device. The bus
* driver interpret the bus-specific information about the device.
*/
void (*info_dev)(struct drvmgr_dev *, void (*print)(void *p, char *str), void *p);
void (*get_info_dev)(struct drvmgr_dev *,
void (*print)(void *p, char *str), void *p);
};
#define BUS_OPS_NUM (sizeof(struct drvmgr_bus_ops)/sizeof(void (*)(void)))
+3 -3
View File
@@ -261,10 +261,10 @@ void drvmgr_info_dev(struct drvmgr_dev *dev, unsigned int options)
printf(" --- DEVICE INFO FROM BUS DRIVER ---\n");
if (!dev->parent)
printf(" !! device has no parent bus !!\n");
else if (dev->parent->ops->info_dev)
dev->parent->ops->info_dev(dev, print_info, NULL);
else if (dev->parent->ops->get_info_dev)
dev->parent->ops->get_info_dev(dev, print_info, NULL);
else
printf(" Bus doesn't implement info_dev func\n");
printf(" Bus doesn't implement get_info_dev func\n");
}
if (options & OPTION_DEV_DRVINFO) {