diff options
author | Douglas Thompson <dougthompson@xmission.com> | 2007-07-19 01:50:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 10:04:56 -0700 |
commit | 494d0d55bcc7ef94c744a59779327e45a27f7801 (patch) | |
tree | aa1092577ed0e89b482a35ce39fb147e8f0c4517 /drivers/edac | |
parent | 7391c6dcab3094610cb99bbd559beaa282582eac (diff) | |
download | op-kernel-dev-494d0d55bcc7ef94c744a59779327e45a27f7801.zip op-kernel-dev-494d0d55bcc7ef94c744a59779327e45a27f7801.tar.gz |
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: Douglas Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_core.h | 2 | ||||
-rw-r--r-- | drivers/edac/edac_device.c | 2 | ||||
-rw-r--r-- | drivers/edac/edac_module.c | 4 | ||||
-rw-r--r-- | drivers/edac/edac_pci.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index d843529..e49dce0 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -845,6 +845,6 @@ extern void edac_pci_remove_sysfs(struct edac_pci_ctl_info *pci); /* * 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_ */ diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index d60f5df..1d2eb20 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c @@ -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->ctl_name, 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); return 0; diff --git a/drivers/edac/edac_module.c b/drivers/edac/edac_module.c index 9e7406f..07bd165 100644 --- a/drivers/edac/edac_module.c +++ b/drivers/edac/edac_module.c @@ -35,9 +35,9 @@ static struct sysdev_class edac_class = { 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) return "POLLED"; diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index fd0b122..d9cd5e0 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c @@ -321,7 +321,7 @@ int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx) " DEV '%s' (%s)\n", pci->mod_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(); return 0; |