]> git.karo-electronics.de Git - linux-beck.git/commit
arm, fbdev, omap2, LLVMLinux: Remove nested function from omap2 dss
authorBehan Webster <behanw@converseincode.com>
Sat, 27 Sep 2014 01:10:52 +0000 (18:10 -0700)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 30 Sep 2014 10:11:44 +0000 (13:11 +0300)
commit032e57f01b7524ad9aec39788b38f523583ab58e
tree87b80683219fd04b0a69e33eed6bc749ff5303f2
parent8251434bb489f4bf7fbc1825fb212051d0a030ea
arm, fbdev, omap2, LLVMLinux: Remove nested function from omap2 dss

Replace the use of nested functions where a normal function will suffice.

Nested functions are not liked by upstream kernel developers in general. Their
use breaks the use of clang as a compiler, and doesn't make the code any
better.

This code now works for both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/dispc-compat.c
drivers/video/fbdev/omap2/dss/manager-sysfs.c