summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2026-07-03 10:47:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-03 13:01:52 +0200
commite31bd02f19ddb01c1e1fb6d79b72ace8f014cb27 (patch)
treeba3004f65ba6969674741b4da4c37af544610f74 /include
parente2dcf364de2c5453d1f594712651a0275b0c1fe5 (diff)
downloadlinux-stable-e31bd02f19ddb01c1e1fb6d79b72ace8f014cb27.tar.gz
linux-stable-e31bd02f19ddb01c1e1fb6d79b72ace8f014cb27.zip
tty: goldfish: move gf_write_ptr() to tty/goldfish.c
tty/goldfish.c is the only user of gf_write_ptr(). Move it there, drop the unneeded casts, and name it appropriately. FTR, the last non-tty user was removed in 2018 by 4ae0fe70a097 ("Delete the goldfish_nand driver."). Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://patch.msgid.link/20260703084717.176442-3-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/goldfish.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/goldfish.h b/include/linux/goldfish.h
index 40a059e03d78..98a4719c6776 100644
--- a/include/linux/goldfish.h
+++ b/include/linux/goldfish.h
@@ -2,8 +2,6 @@
#ifndef __LINUX_GOLDFISH_H
#define __LINUX_GOLDFISH_H
-#include <linux/kernel.h>
-#include <linux/types.h>
#include <linux/io.h>
/* Helpers for Goldfish virtual platform */
@@ -15,15 +13,4 @@
#define gf_iowrite32 iowrite32
#endif
-static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
- void __iomem *porth)
-{
- const unsigned long addr = (unsigned long)ptr;
-
- gf_iowrite32(lower_32_bits(addr), portl);
-#ifdef CONFIG_64BIT
- gf_iowrite32(upper_32_bits(addr), porth);
-#endif
-}
-
#endif /* __LINUX_GOLDFISH_H */