Skip to content

Commit

Permalink
asm-generic: io: remove {read,write} string functions
Browse files Browse the repository at this point in the history
The {read,write}s{b,w,l} functions are not defined across all
architectures and therefore shouldn't be used by portable drivers. We
should encourage driver writers to use the io{read,write}{8,16,32}_rep
functions instead.

This patch removes the {read,write} string functions for the generic IO
header as they have no place in a new architecture port.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Will Deacon authored and Arnd Bergmann committed Oct 26, 2012
1 parent 9b04ebd commit b2656a1
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions include/asm-generic/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,36 +216,6 @@ static inline void outsl(unsigned long addr, const void *buffer, int count)
}
#endif

static inline void readsl(const void __iomem *addr, void *buf, int len)
{
insl(addr - PCI_IOBASE, buf, len);
}

static inline void readsw(const void __iomem *addr, void *buf, int len)
{
insw(addr - PCI_IOBASE, buf, len);
}

static inline void readsb(const void __iomem *addr, void *buf, int len)
{
insb(addr - PCI_IOBASE, buf, len);
}

static inline void writesl(const void __iomem *addr, const void *buf, int len)
{
outsl(addr - PCI_IOBASE, buf, len);
}

static inline void writesw(const void __iomem *addr, const void *buf, int len)
{
outsw(addr - PCI_IOBASE, buf, len);
}

static inline void writesb(const void __iomem *addr, const void *buf, int len)
{
outsb(addr - PCI_IOBASE, buf, len);
}

#ifndef CONFIG_GENERIC_IOMAP
#define ioread8(addr) readb(addr)
#define ioread16(addr) readw(addr)
Expand Down

0 comments on commit b2656a1

Please sign in to comment.