aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-09-18 09:55:23 +0200
committerArnd Bergmann <arnd@arndb.de>2022-05-07 22:55:48 +0200
commite217b085a1ac1c4108fe632bdaa08ea5b0ecd145 (patch)
tree51503b12319c003115480073d714399ab700a76c /include/sound
parentinput: touchscreen: mainstone: sync with zylonite driver (diff)
downloadlinux-dev-e217b085a1ac1c4108fe632bdaa08ea5b0ecd145.tar.xz
linux-dev-e217b085a1ac1c4108fe632bdaa08ea5b0ecd145.zip
Input: touchscreen: use wrapper for pxa2xx ac97 registers
To avoid a dependency on the pxa platform header files with hardcoded registers, change the driver to call a wrapper in the pxa2xx-ac97-lib that encapsulates all the other ac97 stuff. Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Cc: linux-input@vger.kernel.org Cc: alsa-devel@alsa-project.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/pxa2xx-lib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/pxa2xx-lib.h b/include/sound/pxa2xx-lib.h
index 95100cff25d1..0a6f8dabf8c4 100644
--- a/include/sound/pxa2xx-lib.h
+++ b/include/sound/pxa2xx-lib.h
@@ -52,4 +52,8 @@ extern int pxa2xx_ac97_hw_resume(void);
extern int pxa2xx_ac97_hw_probe(struct platform_device *dev);
extern void pxa2xx_ac97_hw_remove(struct platform_device *dev);
+/* modem registers, used by touchscreen driver */
+u32 pxa2xx_ac97_read_modr(void);
+u32 pxa2xx_ac97_read_misr(void);
+
#endif