DRVMGR: change name of freq_get to get_freq

This commit is contained in:
Daniel Hellstrom
2015-04-13 11:07:54 +02:00
parent bb2f2200aa
commit 246fe225f1
4 changed files with 7 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ struct drvmgr_bus_ops ambapp_bus_ops =
.int_mask = ambapp_int_mask,
.int_unmask = ambapp_int_unmask,
.get_params = ambapp_get_params,
.freq_get = ambapp_bus_freq_get,
.get_freq = ambapp_bus_freq_get,
#ifdef AMBAPPBUS_INFO_AVAIL
.info_dev = ambapp_dev_info,
#endif

View File

@@ -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.
*/

View File

@@ -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 */

View File

@@ -61,7 +61,7 @@ int pcibus_int_unregister(
int pcibus_int_clear(
struct drvmgr_dev *dev,
int index);
int pcibus_freq_get(
static int pcibus_get_freq(
struct drvmgr_dev *dev,
int options,
unsigned int *freq_hz);
@@ -92,7 +92,7 @@ struct drvmgr_bus_ops pcibus_ops = {
.int_mask = NULL,
.int_unmask = NULL,
.get_params = pcibus_get_params,
.freq_get = pcibus_freq_get,
.get_freq = pcibus_get_freq,
#ifdef PCIBUS_INFO
.info_dev = pcibus_dev_info,
#endif
@@ -255,7 +255,7 @@ int pcibus_int_clear(
return 0;
}
int pcibus_freq_get(
static int pcibus_get_freq(
struct drvmgr_dev *dev,
int options,
unsigned int *freq_hz)