summaryrefslogtreecommitdiffstats
path: root/cpukit/libdrvmgr
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-04-13 11:12:04 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:30 +0200
commit14d55debf1f0c63f591598d9c4df6fd901ce51fc (patch)
tree06c3fc3abd33520ea41eacdb4684ac9357b2fe10 /cpukit/libdrvmgr
parentDRVMGR: change name of freq_get to get_freq (diff)
downloadrtems-14d55debf1f0c63f591598d9c4df6fd901ce51fc.tar.bz2
DRVMGR: renamed info_dev to get_info_dev
Diffstat (limited to 'cpukit/libdrvmgr')
-rw-r--r--cpukit/libdrvmgr/drvmgr.h3
-rw-r--r--cpukit/libdrvmgr/drvmgr_print.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libdrvmgr/drvmgr.h b/cpukit/libdrvmgr/drvmgr.h
index 6780efe9fd..71a2850f64 100644
--- a/cpukit/libdrvmgr/drvmgr.h
+++ b/cpukit/libdrvmgr/drvmgr.h
@@ -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)))
diff --git a/cpukit/libdrvmgr/drvmgr_print.c b/cpukit/libdrvmgr/drvmgr_print.c
index 206b9fe2bc..9330867fe4 100644
--- a/cpukit/libdrvmgr/drvmgr_print.c
+++ b/cpukit/libdrvmgr/drvmgr_print.c
@@ -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) {