nvmem: make the naming of arguments in nvmem_cell_get() consistent
The argument representing the cell name in the nvmem_cell_get() family of functions is not consistend between function prototypes and definitions. Name it 'id' in all those routines. This is in line with other frameworks and can represent both the DT cell name from the nvmem-cell-names property as well as the con_id field from cell lookup entries. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
b1c1db9883
commit
165589f0cb
@@ -55,8 +55,8 @@ enum {
|
||||
#if IS_ENABLED(CONFIG_NVMEM)
|
||||
|
||||
/* Cell based interface */
|
||||
struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name);
|
||||
struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name);
|
||||
struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *id);
|
||||
struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *id);
|
||||
void nvmem_cell_put(struct nvmem_cell *cell);
|
||||
void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
|
||||
void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len);
|
||||
@@ -91,13 +91,13 @@ int nvmem_unregister_notifier(struct notifier_block *nb);
|
||||
#else
|
||||
|
||||
static inline struct nvmem_cell *nvmem_cell_get(struct device *dev,
|
||||
const char *name)
|
||||
const char *id)
|
||||
{
|
||||
return ERR_PTR(-ENOSYS);
|
||||
}
|
||||
|
||||
static inline struct nvmem_cell *devm_nvmem_cell_get(struct device *dev,
|
||||
const char *name)
|
||||
const char *id)
|
||||
{
|
||||
return ERR_PTR(-ENOSYS);
|
||||
}
|
||||
@@ -201,12 +201,12 @@ static inline int nvmem_unregister_notifier(struct notifier_block *nb)
|
||||
|
||||
#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF)
|
||||
struct nvmem_cell *of_nvmem_cell_get(struct device_node *np,
|
||||
const char *name);
|
||||
const char *id);
|
||||
struct nvmem_device *of_nvmem_device_get(struct device_node *np,
|
||||
const char *name);
|
||||
#else
|
||||
static inline struct nvmem_cell *of_nvmem_cell_get(struct device_node *np,
|
||||
const char *name)
|
||||
const char *id)
|
||||
{
|
||||
return ERR_PTR(-ENOSYS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user