Commit 494d0d55 authored by Douglas Thompson's avatar Douglas Thompson Committed by Linus Torvalds

drivers/edac: mod edac_opt_state_to_string function

Refactored the function edac_op_state_toString() to be edac_op_state_to_string()
for consistent style, and its callers
Signed-off-by: default avatarDouglas Thompson <dougthompson@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7391c6dc
...@@ -845,6 +845,6 @@ extern void edac_pci_remove_sysfs(struct edac_pci_ctl_info *pci); ...@@ -845,6 +845,6 @@ extern void edac_pci_remove_sysfs(struct edac_pci_ctl_info *pci);
/* /*
* edac misc APIs * edac misc APIs
*/ */
extern char *edac_op_state_toString(int op_state); extern char *edac_op_state_to_string(int op_state);
#endif /* _EDAC_CORE_H_ */ #endif /* _EDAC_CORE_H_ */
...@@ -461,7 +461,7 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev, int edac_idx) ...@@ -461,7 +461,7 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev, int edac_idx)
edac_dev->mod_name, edac_dev->mod_name,
edac_dev->ctl_name, edac_dev->ctl_name,
dev_name(edac_dev), dev_name(edac_dev),
edac_op_state_toString(edac_dev->op_state)); edac_op_state_to_string(edac_dev->op_state));
up(&device_ctls_mutex); up(&device_ctls_mutex);
return 0; return 0;
......
...@@ -35,9 +35,9 @@ static struct sysdev_class edac_class = { ...@@ -35,9 +35,9 @@ static struct sysdev_class edac_class = {
static int edac_class_valid; static int edac_class_valid;
/* /*
* edac_op_state_toString() * edac_op_state_to_string()
*/ */
char *edac_op_state_toString(int opstate) char *edac_op_state_to_string(int opstate)
{ {
if (opstate == OP_RUNNING_POLL) if (opstate == OP_RUNNING_POLL)
return "POLLED"; return "POLLED";
......
...@@ -321,7 +321,7 @@ int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx) ...@@ -321,7 +321,7 @@ int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx)
" DEV '%s' (%s)\n", " DEV '%s' (%s)\n",
pci->mod_name, pci->mod_name,
pci->ctl_name, pci->ctl_name,
dev_name(pci), edac_op_state_toString(pci->op_state)); dev_name(pci), edac_op_state_to_string(pci->op_state));
edac_unlock_pci_list(); edac_unlock_pci_list();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment