video/tcc: fix warnings

  CC      drivers/video/tcc/tcc_overlay.o
drivers/video/tcc/tcc_overlay.c: In function 'tccxxx_overlay_check_priority':
drivers/video/tcc/tcc_overlay.c:324:4: warning: too many arguments for format [-Wformat-extra-args]
drivers/video/tcc/tcc_overlay.c: At top level:
drivers/video/tcc/tcc_overlay.c:995:1: warning: parameter names (without types) in function declaration [enabled by default]
  CC      drivers/video/tcc/tcc_overlay1.o
drivers/video/tcc/tcc_overlay1.c:766:1: warning: parameter names (without types) in function declaration [enabled by default]
  CC      drivers/video/tcc/tccfb.o
drivers/video/tcc/tccfb.c: In function 'tcc92xxfb_hdmi_starter':
drivers/video/tcc/tccfb.c:443:16: warning: unused variable 'pLCDC1' [-Wunused-variable]
drivers/video/tcc/tccfb.c:443:8: warning: unused variable 'pLCDC0' [-Wunused-variable]
drivers/video/tcc/tccfb.c: In function 'tcc_vsync_get_timer_clock':
drivers/video/tcc/tccfb.c:1377:6: warning: unused variable 'add_count' [-Wunused-variable]
drivers/video/tcc/tccfb.c: In function 'tccfb_ioctl':
drivers/video/tcc/tccfb.c:1730:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/video/tcc/tccfb.c:1949:24: warning: unused variable 'fbi' [-Wunused-variable]
drivers/video/tcc/tccfb.c:2143:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/video/tcc/tccfb.c:2168:5: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [enabled by default]
/home/ithamar/src/telechips/linux-tcc/arch/arm/include/asm/uaccess.h:404:42: note: expected 'void const *' but argument is of type 'long unsigned int'
drivers/video/tcc/tccfb.c: At top level:
drivers/video/tcc/tccfb.c:652:12: warning: 'testToggleBit' defined but not used [-Wunused-variable]
  CC      drivers/video/tcc/tccfb_interface.o
drivers/video/tcc/tccfb_interface.c: In function 'tca_fb_early_suspend':
drivers/video/tcc/tccfb_interface.c:575:2: warning: passing argument 1 of 'tcc_LCDC_get_gamma' discards 'volatile' qualifier from pointer target type [enabled by default]
drivers/video/tcc/tccfb_interface.c:564:21: note: expected 'struct lcdc_gamma_params *' but argument is of type 'struct lcdc_gamma_params volatile *'
drivers/video/tcc/tccfb_interface.c: In function 'tca_fb_late_resume':
drivers/video/tcc/tccfb_interface.c:601:2: warning: passing argument 1 of 'tcc_LCDC_set_gamma' discards 'volatile' qualifier from pointer target type [enabled by default]
drivers/video/tcc/tccfb_interface.c:563:21: note: expected 'struct lcdc_gamma_params *' but argument is of type 'struct lcdc_gamma_params volatile *'
drivers/video/tcc/tccfb_interface.c: In function 'tca_fb_init':
drivers/video/tcc/tccfb_interface.c:747:20: warning: unused variable 'lcd_info' [-Wunused-variable]
  CC      drivers/video/tcc/tca_display_config.o
drivers/video/tcc/tca_display_config.c:35:14: warning: function declaration isn't a prototype [-Wstrict-prototypes]
drivers/video/tcc/tca_display_config.c:57:14: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  CC      drivers/video/tcc/ddi/tca_fb_hdmi.o
drivers/video/tcc/ddi/tca_fb_hdmi.c: In function 'TCC_HDMI_LCDC_Timing':
drivers/video/tcc/ddi/tca_fb_hdmi.c:101:14: warning: initialization from incompatible pointer type [enabled by default]
drivers/video/tcc/ddi/tca_fb_hdmi.c: In function 'TCC_HDMI_DISPLAY_UPDATE_OnTheFly':
drivers/video/tcc/ddi/tca_fb_hdmi.c:340:47: warning: unused variable 'scale_limit_total' [-Wunused-variable]
drivers/video/tcc/ddi/tca_fb_hdmi.c:340:31: warning: unused variable 'scale_limit_ht' [-Wunused-variable]
drivers/video/tcc/ddi/tca_fb_hdmi.c:340:15: warning: unused variable 'scale_limit_wd' [-Wunused-variable]
  CC      drivers/video/tcc/ddi/tca_fb_output.o
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_LCDC_OnOff':
drivers/video/tcc/ddi/tca_fb_output.c:519:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:520:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:525:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:526:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:533:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:534:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:539:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:540:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:544:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:580:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:585:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:586:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:589:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:595:5: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:607:4: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_LCDC_CtrlLayer':
drivers/video/tcc/ddi/tca_fb_output.c:646:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:649:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_FB_G2D_FmtConvert':
drivers/video/tcc/ddi/tca_fb_output.c:716:21: warning: passing argument 3 of 'g2d_ioctl' makes integer from pointer without a cast [enabled by default]
drivers/video/tcc/ddi/tca_fb_output.c:716:21: note: expected 'long unsigned int' but argument is of type 'struct G2D_BITBLIT_TYPE *'
drivers/video/tcc/ddi/tca_fb_output.c: In function 'tcc_disable_external_display':
drivers/video/tcc/ddi/tca_fb_output.c:725:3: warning: 'return' with a value, in function returning void [enabled by default]
drivers/video/tcc/ddi/tca_fb_output.c:734:3: warning: 'return' with a value, in function returning void [enabled by default]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_FB_Update':
drivers/video/tcc/ddi/tca_fb_output.c:861:3: warning: passing argument 1 of '__arm_ioremap' makes integer from pointer without a cast [enabled by default]
/home/ithamar/src/telechips/linux-tcc/arch/arm/include/asm/io.h:82:22: note: expected 'long unsigned int' but argument is of type 'char *'
drivers/video/tcc/ddi/tca_fb_output.c:1111:26: warning: passing argument 3 of 'scaler_ioctl' makes integer from pointer without a cast [enabled by default]
drivers/video/tcc/ddi/tca_fb_output.c:1111:26: note: expected 'long unsigned int' but argument is of type 'struct SCALER_TYPE *'
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_FB_BackupVideoImg':
drivers/video/tcc/ddi/tca_fb_output.c:1330:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1333:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1339:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1340:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1342:3: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_FB_RestoreVideoImg':
drivers/video/tcc/ddi/tca_fb_output.c:1359:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1362:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1363:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1365:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c:1370:2: warning: array subscript has type 'char' [-Wchar-subscripts]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_FB_MouseMove':
drivers/video/tcc/ddi/tca_fb_output.c:3117:3: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
drivers/video/tcc/ddi/tca_fb_output.c: At top level:
drivers/video/tcc/ddi/tca_fb_output.c:335:20: warning: 'TCC_OUTPUT_LCDC0_Handler' defined but not used [-Wunused-function]
drivers/video/tcc/ddi/tca_fb_output.c:354:20: warning: 'TCC_OUTPUT_LCDC1_Handler' defined but not used [-Wunused-function]
drivers/video/tcc/ddi/tca_fb_output.c: In function 'TCC_OUTPUT_SetOutputResizeMode':
drivers/video/tcc/ddi/tca_fb_output.c:1324:1: warning: control reaches end of non-void function [-Wreturn-type]
  CC      drivers/video/tcc/ddi/tca_lcdc.o
  CC      drivers/video/tcc/ddi/TCC_LCD_Interface.o
  CC      drivers/video/tcc/ddi/dev_gpsb.o
drivers/video/tcc/ddi/dev_gpsb.c: In function 'IO_GPSB_InitSWReset':
drivers/video/tcc/ddi/dev_gpsb.c:53:12: warning: unused variable 'pIOBUSCFG' [-Wunused-variable]
drivers/video/tcc/ddi/dev_gpsb.c: In function 'IO_CKC_EnableBUS':
drivers/video/tcc/ddi/dev_gpsb.c:435:12: warning: unused variable 'pHwIOBUSCFG' [-Wunused-variable]
drivers/video/tcc/ddi/dev_gpsb.c: In function 'IO_CKC_DisableBUS':
drivers/video/tcc/ddi/dev_gpsb.c:448:12: warning: unused variable 'pHwIOBUSCFG' [-Wunused-variable]
drivers/video/tcc/ddi/dev_gpsb.c: In function 'IO_GPSB_InitChannel':
drivers/video/tcc/ddi/dev_gpsb.c:466:12: warning: unused variable 'pIOBUSCFG' [-Wunused-variable]
  CC      drivers/video/tcc/ddi/tcc_composite.o
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_get_spec':
drivers/video/tcc/ddi/tcc_composite.c:392:2: warning: enumeration value 'COMPOSITE_MODE_MAX' not handled in switch [-Wswitch]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_change_formattype':
drivers/video/tcc/ddi/tcc_composite.c:570:2: warning: enumeration value 'GE_FMT_MAX' not handled in switch [-Wswitch]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_get_offset':
drivers/video/tcc/ddi/tcc_composite.c:680:2: warning: enumeration value 'COMPOSITE_LCDC_IMG_FMT_MAX' not handled in switch [-Wswitch]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_update':
drivers/video/tcc/ddi/tcc_composite.c:950:2: warning: passing argument 2 of 'memset' makes integer from pointer without a cast [enabled by default]
/home/ithamar/src/telechips/linux-tcc/arch/arm/include/asm/string.h:25:15: note: expected 'int' but argument is of type 'void *'
drivers/video/tcc/ddi/tcc_composite.c:964:17: warning: comparison between 'COMPOSITE_LCDC_IMG_FMT_TYPE' and 'enum <anonymous>' [-Wenum-compare]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_enabled':
drivers/video/tcc/ddi/tcc_composite.c:1232:21: warning: unused variable 'pHwTVE' [-Wunused-variable]
drivers/video/tcc/ddi/tcc_composite.c:1231:18: warning: unused variable 'pHwPMU' [-Wunused-variable]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_ioctl':
drivers/video/tcc/ddi/tcc_composite.c:1324:26: warning: unused variable 'type' [-Wunused-variable]
drivers/video/tcc/ddi/tcc_composite.c: At top level:
drivers/video/tcc/ddi/tcc_composite.c:1429:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/video/tcc/ddi/tcc_composite.c:1429:2: warning: (near initialization for 'tcc_composite_fops.unlocked_ioctl') [enabled by default]
drivers/video/tcc/ddi/tcc_composite.c:109:13: warning: 'composite_plugout_count' defined but not used [-Wunused-variable]
drivers/video/tcc/ddi/tcc_composite.c:110:13: warning: 'composite_ext_interrupt' defined but not used [-Wunused-variable]
drivers/video/tcc/ddi/tcc_composite.c:146:20: warning: 'tcc_composite_ext_handler' defined but not used [-Wunused-function]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_ioctl':
drivers/video/tcc/ddi/tcc_composite.c:1332:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/video/tcc/ddi/tcc_composite.c:1356:18: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
drivers/video/tcc/ddi/tcc_composite.c: In function 'tcc_composite_connect_lcdc':
drivers/video/tcc/ddi/tcc_composite.c:385:1: warning: control reaches end of non-void function [-Wreturn-type]
  CC      drivers/video/tcc/ddi/tcc_composite_internal.o
drivers/video/tcc/ddi/tcc_composite_internal.c:38:12: warning: 'debug' defined but not used [-Wunused-variable]
  LD      drivers/video/tcc/ddi/built-in.o
  CC      drivers/video/tcc/viqe/tcc_viqe.o
drivers/video/tcc/viqe/tcc_viqe.c: In function 'tcc_viqe_ctrl':
drivers/video/tcc/viqe/tcc_viqe.c:314:4: warning: passing argument 1 of 'viqe_set_deintl_bypass' makes integer from pointer without a cast [enabled by default]
drivers/video/tcc/viqe/viqe_lib.h:291:9: note: expected 'int' but argument is of type 'int *'
  CC      drivers/video/tcc/viqe/viqe_lib.o
drivers/video/tcc/viqe/viqe_lib.c: In function 'viqe_init':
drivers/video/tcc/viqe/viqe_lib.c:565:2: warning: passing argument 1 of 'viqe_set_state' from incompatible pointer type [enabled by default]
drivers/video/tcc/viqe/viqe_lib.c:200:6: note: expected 'int *' but argument is of type 'enum viqe_state_t *'
drivers/video/tcc/viqe/viqe_lib.c: In function 'viqe_set_deintl_default_conf':
drivers/video/tcc/viqe/viqe_lib.c:925:6: warning: unused variable 'region_idx_y_end' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c:924:6: warning: unused variable 'region_idx_y_start' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c:923:6: warning: unused variable 'region_enable' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c:922:6: warning: unused variable 'region_idx_x_end' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c:921:6: warning: unused variable 'region_idx_x_start' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c:906:6: warning: unused variable 'pd_user_checkout' [-Wunused-variable]
drivers/video/tcc/viqe/viqe_lib.c: In function 'cal_d2d_lpf_coeff_simple':
drivers/video/tcc/viqe/viqe_lib.c:1706:6: warning: value computed is not used [-Wunused-value]
drivers/video/tcc/viqe/viqe_lib.c:1707:6: warning: value computed is not used [-Wunused-value]
drivers/video/tcc/viqe/viqe_lib.c: In function 'cal_d2d_hpf_coeff_simple':
drivers/video/tcc/viqe/viqe_lib.c:1737:4: warning: value computed is not used [-Wunused-value]
drivers/video/tcc/viqe/viqe_lib.c:1748:4: warning: value computed is not used [-Wunused-value]
  CC      drivers/video/tcc/viqe/tcc_scaler.o
drivers/video/tcc/viqe/tcc_scaler.c: In function 'tcc_scaler_Disable':
drivers/video/tcc/viqe/tcc_scaler.c:144:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/video/tcc/viqe/tcc_scaler.c: In function 'tcc_scaler_SWReset':
drivers/video/tcc/viqe/tcc_scaler.c:198:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/video/tcc/viqe/tcc_scaler.c: At top level:
drivers/video/tcc/viqe/tcc_scaler.c:34:12: warning: 'debug' defined but not used [-Wunused-variable]
drivers/video/tcc/viqe/tcc_scaler.c:37:21: warning: 'scaler_ended' defined but not used [-Wunused-variable]
drivers/video/tcc/viqe/tcc_scaler.c: In function 'tcc_scaler_finalize':
drivers/video/tcc/viqe/tcc_scaler.c:554:21: warning: 'IFlag' may be used uninitialized in this function [-Wmaybe-uninitialized]
  CC      drivers/video/tcc/viqe/tcc_viqe_interface.o
drivers/video/tcc/viqe/tcc_viqe_interface.c: In function 'tcc_lcdc_SetConfig':
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_1BPP' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_2BPP' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_4BPP' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_8BPP' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_RGB332' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c:156:2: warning: enumeration value 'TCC_LCDC_IMG_FMT_MAX' not handled in switch [-Wswitch]
drivers/video/tcc/viqe/tcc_viqe_interface.c: In function 'TCC_InitalizeVIQE_60Hz':
drivers/video/tcc/viqe/tcc_viqe_interface.c:1515:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/video/tcc/viqe/tcc_viqe_interface.c: At top level:
arch/arm/mach-tcc88xx/include/mach/tcc_viqe_ioctl.h:32:13: warning: 'tcc_viqe_ioctl' declared 'static' but never defined [-Wunused-function]
drivers/video/tcc/viqe/tcc_viqe_interface.c: In function 'TCC_ConfigVIQEParamSet':
drivers/video/tcc/viqe/tcc_viqe_interface.c:1178:1: warning: control reaches end of non-void function [-Wreturn-type]

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>