fbdev: s3c2410fb: remove mach header dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 2 Sep 2019 20:33:24 +0000 (22:33 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 20 Aug 2020 15:48:12 +0000 (17:48 +0200)
commit81994e0ffc373e67ace4c98797c35f8213f07753
treea334fff5750b53b644ab9f96a8cdea8b0c4a4c14
parent704b18250f59094f444d2728acccf52c185ac290
fbdev: s3c2410fb: remove mach header dependency

The s3c2410fb driver is too deeply intertwined with the s3c24xx
platform code. Change it in a way that avoids the use of platform
header files but having all interface data in a platform_data
header, and the private register definitions next to the driver
itself.

One ugly bit here is that the driver pokes directly into gpio
registers, which are owned by another driver. Passing the
mapped addresses in platform_data is somewhat suboptimal, but
it is a small improvement over the previous version.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200806182059.2431-33-krzk@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
25 files changed:
arch/arm/mach-s3c24xx/include/mach/fb.h [deleted file]
arch/arm/mach-s3c24xx/include/mach/regs-lcd.h [deleted file]
arch/arm/mach-s3c24xx/mach-amlm5900.c
arch/arm/mach-s3c24xx/mach-anubis.c
arch/arm/mach-s3c24xx/mach-at2440evb.c
arch/arm/mach-s3c24xx/mach-bast.c
arch/arm/mach-s3c24xx/mach-gta02.c
arch/arm/mach-s3c24xx/mach-h1940.c
arch/arm/mach-s3c24xx/mach-jive.c
arch/arm/mach-s3c24xx/mach-mini2440.c
arch/arm/mach-s3c24xx/mach-n30.c
arch/arm/mach-s3c24xx/mach-osiris.c
arch/arm/mach-s3c24xx/mach-qt2410.c
arch/arm/mach-s3c24xx/mach-rx1950.c
arch/arm/mach-s3c24xx/mach-rx3715.c
arch/arm/mach-s3c24xx/mach-smdk2413.c
arch/arm/mach-s3c24xx/mach-smdk2416.c
arch/arm/mach-s3c24xx/mach-smdk2440.c
arch/arm/mach-s3c24xx/mach-smdk2443.c
arch/arm/mach-s3c24xx/mach-vstms.c
arch/arm/plat-samsung/devs.c
arch/arm/plat-samsung/include/plat/fb-s3c2410.h [deleted file]
drivers/video/fbdev/s3c2410fb-regs-lcd.h [new file with mode: 0644]
drivers/video/fbdev/s3c2410fb.c
include/linux/platform_data/fb-s3c2410.h [new file with mode: 0644]