aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_core.h
diff options
context:
space:
mode:
authorDouglas Thompson <dougthompson@xmission.com>2007-07-19 04:50:20 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:55 -0400
commit52490c8d07680a7ecc3c1a70a16841455d37e96a (patch)
treeacebfdd53c8512bbda09fee32347828a0d0ed368 /drivers/edac/edac_core.h
parentb2ccaecad2b00bf7bc72d5b864425daf43a4080d (diff)
drivers/edac: edac_device code tidying
For the file edac_device.c perform some coding style enhancements Add some function header comments Made for better readability commands 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/edac_core.h')
-rw-r--r--drivers/edac/edac_core.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h
index 8c114572b722..fa3ff8c25b36 100644
--- a/drivers/edac/edac_core.h
+++ b/drivers/edac/edac_core.h
@@ -470,8 +470,6 @@ struct edac_device_counter {
470 u32 ce_count; 470 u32 ce_count;
471}; 471};
472 472
473#define INC_COUNTER(cnt) (cnt++)
474
475/* 473/*
476 * An array of these is passed to the alloc() function 474 * An array of these is passed to the alloc() function
477 * to specify attributes of the edac_block 475 * to specify attributes of the edac_block
@@ -632,15 +630,6 @@ struct edac_device_ctl_info {
632#define to_edac_device_ctl_work(w) \ 630#define to_edac_device_ctl_work(w) \
633 container_of(w,struct edac_device_ctl_info,work) 631 container_of(w,struct edac_device_ctl_info,work)
634 632
635/* Function to calc the number of delay jiffies from poll_msec */
636static inline void edac_device_calc_delay(struct edac_device_ctl_info *edac_dev)
637{
638 /* convert from msec to jiffies */
639 edac_dev->delay = edac_dev->poll_msec * HZ / 1000;
640}
641
642#define edac_calc_delay(dev) dev->delay = dev->poll_msec * HZ / 1000;
643
644/* 633/*
645 * The alloc() and free() functions for the 'edac_device' control info 634 * The alloc() and free() functions for the 'edac_device' control info
646 * structure. A MC driver will allocate one of these for each edac_device 635 * structure. A MC driver will allocate one of these for each edac_device