Skip to content

Commit 6bec678

Browse files
Wolfram Sanglag-linaro
authored andcommitted
mfd: tmio: Remove obsolete io accessors
Since commit 568494d ("mtd: remove tmio_nand driver") and commit aceae78 ("fbdev: remove tmiofb driver"), these accessors have no users anymore. Remove them. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent ef6dfcb commit 6bec678

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

include/linux/mfd/tmio.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,6 @@
1010
#include <linux/platform_device.h>
1111
#include <linux/pm_runtime.h>
1212

13-
#define tmio_ioread8(addr) readb(addr)
14-
#define tmio_ioread16(addr) readw(addr)
15-
#define tmio_ioread16_rep(r, b, l) readsw(r, b, l)
16-
#define tmio_ioread32(addr) \
17-
(((u32)readw((addr))) | (((u32)readw((addr) + 2)) << 16))
18-
19-
#define tmio_iowrite8(val, addr) writeb((val), (addr))
20-
#define tmio_iowrite16(val, addr) writew((val), (addr))
21-
#define tmio_iowrite16_rep(r, b, l) writesw(r, b, l)
22-
#define tmio_iowrite32(val, addr) \
23-
do { \
24-
writew((val), (addr)); \
25-
writew((val) >> 16, (addr) + 2); \
26-
} while (0)
27-
28-
#define sd_config_write8(base, shift, reg, val) \
29-
tmio_iowrite8((val), (base) + ((reg) << (shift)))
30-
#define sd_config_write16(base, shift, reg, val) \
31-
tmio_iowrite16((val), (base) + ((reg) << (shift)))
32-
#define sd_config_write32(base, shift, reg, val) \
33-
do { \
34-
tmio_iowrite16((val), (base) + ((reg) << (shift))); \
35-
tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \
36-
} while (0)
37-
3813
/* tmio MMC platform flags */
3914
/*
4015
* Some controllers can support a 2-byte block size when the bus width

0 commit comments

Comments
 (0)