summaryrefslogtreecommitdiff
path: root/include/linux/io.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2021-09-16 20:15:57 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2021-09-23 09:25:30 +0200
commit3229b906fb35b63515f0c703b917357c83e1ea22 (patch)
tree3298b13ffec3213c09f0d0dac094aca72f24e2e1 /include/linux/io.h
parent9c2fce137852e6434ca0c6fe3d75e00feb168c07 (diff)
lib: devres: Add managed arch_phys_wc_add()
Add devm_arch_phys_wc_add() as managed wrapper around arch_phys_wc_add(). Useful for several graphics drivers that set framebuffer memory to write combining. v2: * fix typo in commit description Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210916181601.9146-2-tzimmermann@suse.de
Diffstat (limited to 'include/linux/io.h')
-rw-r--r--include/linux/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h
index 9595151d800d..fcd8ea79c5df 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -132,6 +132,8 @@ static inline int arch_phys_wc_index(int handle)
#endif
#endif
+int devm_arch_phys_wc_add(struct device *dev, unsigned long base, unsigned long size);
+
enum {
/* See memremap() kernel-doc for usage description... */
MEMREMAP_WB = 1 << 0,