summaryrefslogtreecommitdiffstats
path: root/cpukit/libdrvmgr
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-04-13 11:07:54 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:29 +0200
commit246fe225f1af90781d64e4ba6aa2d3eecaef9204 (patch)
tree87ba43fa8c499ede02d7dcfb5eb5ae38dd1fbec4 /cpukit/libdrvmgr
parentDRVMGR: renamed private drv_mgr and its struct name (diff)
downloadrtems-246fe225f1af90781d64e4ba6aa2d3eecaef9204.tar.bz2
DRVMGR: change name of freq_get to get_freq
Diffstat (limited to 'cpukit/libdrvmgr')
-rw-r--r--cpukit/libdrvmgr/drvmgr.h2
-rw-r--r--cpukit/libdrvmgr/drvmgr_drvinf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libdrvmgr/drvmgr.h b/cpukit/libdrvmgr/drvmgr.h
index a08424523c..6780efe9fd 100644
--- a/cpukit/libdrvmgr/drvmgr.h
+++ b/cpukit/libdrvmgr/drvmgr.h
@@ -141,7 +141,7 @@ struct drvmgr_bus_ops {
/* Get Parameters */
int (*get_params)(struct drvmgr_dev *, struct drvmgr_bus_params *);
/* Get Frequency of Bus */
- int (*freq_get)(struct drvmgr_dev*, int, unsigned int*);
+ int (*get_freq)(struct drvmgr_dev*, int, unsigned int*);
/*! Function called to request information about a device. The bus
* driver interpret the bus-specific information about the device.
*/
diff --git a/cpukit/libdrvmgr/drvmgr_drvinf.c b/cpukit/libdrvmgr/drvmgr_drvinf.c
index 45926f1f12..e0cd50d33c 100644
--- a/cpukit/libdrvmgr/drvmgr_drvinf.c
+++ b/cpukit/libdrvmgr/drvmgr_drvinf.c
@@ -54,10 +54,10 @@ int drvmgr_freq_get(
int options,
unsigned int *freq_hz)
{
- if (!dev || !dev->parent || !dev->parent->ops->freq_get)
+ if (!dev || !dev->parent || !dev->parent->ops->get_freq)
return -1;
- return dev->parent->ops->freq_get(dev, options, freq_hz);
+ return dev->parent->ops->get_freq(dev, options, freq_hz);
}
/* Get driver prefix */