[media] ti-fpe: LLVMLinux: Remove nested function from ti-vpe
authorBehan Webster <behanw@converseincode.com>
Sat, 27 Sep 2014 01:11:45 +0000 (22:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Oct 2014 12:46:17 +0000 (10:46 -0200)
commit61110fbab1f083249ac0ac7090526798d8815210
treeb675a9cb672729965f36c7f9d2c2e72f5c0e2321
parent678fa12fb8e75c6dc1e781a02e3ddbbba7e1a904
[media] ti-fpe: LLVMLinux: Remove nested function from ti-vpe

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.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/ti-vpe/csc.c
drivers/media/platform/ti-vpe/sc.c