From 52490c8d07680a7ecc3c1a70a16841455d37e96a Mon Sep 17 00:00:00 2001 From: Douglas Thompson Date: Thu, 19 Jul 2007 01:50:20 -0700 Subject: 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/edac/edac_core.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'drivers/edac/edac_core.h') diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 8c11457..fa3ff8c 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -470,8 +470,6 @@ struct edac_device_counter { u32 ce_count; }; -#define INC_COUNTER(cnt) (cnt++) - /* * An array of these is passed to the alloc() function * to specify attributes of the edac_block @@ -632,15 +630,6 @@ struct edac_device_ctl_info { #define to_edac_device_ctl_work(w) \ container_of(w,struct edac_device_ctl_info,work) -/* Function to calc the number of delay jiffies from poll_msec */ -static inline void edac_device_calc_delay(struct edac_device_ctl_info *edac_dev) -{ - /* convert from msec to jiffies */ - edac_dev->delay = edac_dev->poll_msec * HZ / 1000; -} - -#define edac_calc_delay(dev) dev->delay = dev->poll_msec * HZ / 1000; - /* * The alloc() and free() functions for the 'edac_device' control info * structure. A MC driver will allocate one of these for each edac_device -- cgit v1.1