diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-06-30 19:09:33 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-07-24 11:18:21 +0200 |
commit | eabc2a7c49c01fc97ff8c764ef7d74276b904af6 (patch) | |
tree | 9c877870f92d39079bb5900386ae7e3e0fab27cb /include/asm-generic/io.h | |
parent | x86/io: Remove mem*io() duplications (diff) | |
download | linux-eabc2a7c49c01fc97ff8c764ef7d74276b904af6.tar.xz linux-eabc2a7c49c01fc97ff8c764ef7d74276b904af6.zip |
x86/io: Remove xlate_dev_kmem_ptr() duplication
Generic header defines xlate_dev_kmem_ptr().
Reuse it from generic header and remove in x86 code.
Move a description to the generic header as well.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Baolin Wang <baolin.wang@spreadtrum.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: intel-gfx@lists.freedesktop.org
Cc: linux-i2c@vger.kernel.org
Cc: wsa@the-dreams.de
Link: http://lkml.kernel.org/r/20170630170934.83028-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic/io.h')
-rw-r--r-- | include/asm-generic/io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 395afc829409..b4531e3b2120 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -915,6 +915,9 @@ extern void ioport_unmap(void __iomem *p); #endif /* CONFIG_GENERIC_IOMAP */ #endif /* CONFIG_HAS_IOPORT_MAP */ +/* + * Convert a virtual cached pointer to an uncached pointer + */ #ifndef xlate_dev_kmem_ptr #define xlate_dev_kmem_ptr xlate_dev_kmem_ptr static inline void *xlate_dev_kmem_ptr(void *addr) |