iomap: constify ioreadX() iomem argument (as in generic implementation)
[sfrench/cifs-2.6.git] / arch / alpha / kernel / io.c
index 938de13adfbfe44233118d31613e5a293dde387d..838586abb1e02f8fbe5d8415d8f3730fdec5ad68 100644 (file)
@@ -14,7 +14,7 @@
    "generic", which bumps through the machine vector.  */
 
 unsigned int
-ioread8(void __iomem *addr)
+ioread8(const void __iomem *addr)
 {
        unsigned int ret;
        mb();
@@ -23,7 +23,7 @@ ioread8(void __iomem *addr)
        return ret;
 }
 
-unsigned int ioread16(void __iomem *addr)
+unsigned int ioread16(const void __iomem *addr)
 {
        unsigned int ret;
        mb();
@@ -32,7 +32,7 @@ unsigned int ioread16(void __iomem *addr)
        return ret;
 }
 
-unsigned int ioread32(void __iomem *addr)
+unsigned int ioread32(const void __iomem *addr)
 {
        unsigned int ret;
        mb();
@@ -257,7 +257,7 @@ EXPORT_SYMBOL(readq_relaxed);
 /*
  * Read COUNT 8-bit bytes from port PORT into memory starting at SRC.
  */
-void ioread8_rep(void __iomem *port, void *dst, unsigned long count)
+void ioread8_rep(const void __iomem *port, void *dst, unsigned long count)
 {
        while ((unsigned long)dst & 0x3) {
                if (!count)
@@ -300,7 +300,7 @@ EXPORT_SYMBOL(insb);
  * the interfaces seems to be slow: just using the inlined version
  * of the inw() breaks things.
  */
-void ioread16_rep(void __iomem *port, void *dst, unsigned long count)
+void ioread16_rep(const void __iomem *port, void *dst, unsigned long count)
 {
        if (unlikely((unsigned long)dst & 0x3)) {
                if (!count)
@@ -340,7 +340,7 @@ EXPORT_SYMBOL(insw);
  * but the interfaces seems to be slow: just using the inlined version
  * of the inl() breaks things.
  */
-void ioread32_rep(void __iomem *port, void *dst, unsigned long count)
+void ioread32_rep(const void __iomem *port, void *dst, unsigned long count)
 {
        if (unlikely((unsigned long)dst & 0x3)) {
                while (count--) {