[PATCH] MMC: wbsd cleanups

This patch contains the following possible cleanups:
- make some needlessly global code static
- remove the unneeded global function DBG_REG

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Adrian Bunk and committed by Russell King 3eee0d03 6e6293dd

+7 -29
+7 -22
drivers/mmc/wbsd.c
··· 54 54 #define DBGF(x...) do { } while (0) 55 55 #endif 56 56 57 - #ifdef CONFIG_MMC_DEBUG 58 - void DBG_REG(int reg, u8 value) 59 - { 60 - int i; 61 - 62 - printk(KERN_DEBUG "wbsd: Register %d: 0x%02X %3d '%c' ", 63 - reg, (int)value, (int)value, (value < 0x20)?'.':value); 64 - 65 - for (i = 7;i >= 0;i--) 66 - { 67 - if (value & (1 << i)) 68 - printk("x"); 69 - else 70 - printk("."); 71 - } 72 - 73 - printk("\n"); 74 - } 75 - #else 76 - #define DBG_REG(r, v) do {} while (0) 77 - #endif 78 - 79 57 /* 80 58 * Device resources 81 59 */ ··· 69 91 MODULE_DEVICE_TABLE(pnp, pnp_dev_table); 70 92 71 93 #endif /* CONFIG_PNP */ 94 + 95 + static const int config_ports[] = { 0x2E, 0x4E }; 96 + static const int unlock_codes[] = { 0x83, 0x87 }; 97 + 98 + static const int valid_ids[] = { 99 + 0x7112, 100 + }; 72 101 73 102 #ifdef CONFIG_PNP 74 103 static unsigned int nopnp = 0;
-7
drivers/mmc/wbsd.h
··· 8 8 * published by the Free Software Foundation. 9 9 */ 10 10 11 - const int config_ports[] = { 0x2E, 0x4E }; 12 - const int unlock_codes[] = { 0x83, 0x87 }; 13 - 14 - const int valid_ids[] = { 15 - 0x7112, 16 - }; 17 - 18 11 #define LOCK_CODE 0xAA 19 12 20 13 #define WBSD_CONF_SWRST 0x02