lkml.org 
[lkml]   [2022]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] sh: remove unnecessary __BUILD_IOPORT_PFX()
Date
From: Bjorn Helgaas <bhelgaas@google.com>

The only reason __BUILD_IOPORT_PFX() existed was to accept a "bus"
parameter, but nothing ever used that. Remove __BUILD_IOPORT_PFX() and
collapse it into BUILDIO_IOPORT().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
arch/sh/include/asm/io.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 193640bd9563..e29e8870dc3b 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -161,13 +161,10 @@ static inline type in##bwlq##p(unsigned long port) \
return __val; \
}

-#define __BUILD_IOPORT_PFX(bwlq, type) \
+#define BUILDIO_IOPORT(bwlq, type) \
__BUILD_IOPORT_SINGLE(bwlq, type,) \
__BUILD_IOPORT_SINGLE(bwlq, type, _p)

-#define BUILDIO_IOPORT(bwlq, type) \
- __BUILD_IOPORT_PFX(bwlq, type)
-
BUILDIO_IOPORT(b, u8)
BUILDIO_IOPORT(w, u16)
BUILDIO_IOPORT(l, u32)
--
2.25.1
\
 
 \ /
  Last update: 2022-10-21 22:25    [W:0.031 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site