tcccam: fix warnings

drivers/media/video/tcccam/camera_core.c: In function 'camera_core_do_ioctl':
drivers/media/video/tcccam/camera_core.c:841:4: warning: passing argument 1 of 'sensor_if_get_max_resolution' makes integer from pointer without a cast [enabled by default]
drivers/media/video/tcccam/sensor_if.h:247:12: note: expected 'int' but argument is of type 'int *'
drivers/media/video/tcccam/camera_core.c:847:4: warning: passing argument 1 of 'tcc_videobuf_get_zoom_support' makes integer from pointer without a cast [enabled by default]
drivers/media/video/tcccam/camera_core.c:647:5: note: expected 'int' but argument is of type 'int *'
drivers/media/video/tcccam/camera_core.c: In function 'tcc92xx_camera_early_suspend':
drivers/media/video/tcccam/camera_core.c:1321:2: warning: statement with no effect [-Wunused-value]
drivers/media/video/tcccam/camera_core.c: In function 'tcc92xx_camera_late_resume':
drivers/media/video/tcccam/camera_core.c:1326:2: warning: statement with no effect [-Wunused-value]
  CC      drivers/media/video/tcccam/tcc_cam.o
drivers/media/video/tcccam/tcc_cam.c: In function 'cif_cam_isr':
drivers/media/video/tcccam/tcc_cam.c:710:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/media/video/tcccam/tcc_cam.c: In function 'tccxxx_cif_cam_restart':
drivers/media/video/tcccam/tcc_cam.c:2304:41: warning: unused variable 'uv_offset' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c:2304:27: warning: unused variable 'y_offset' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c:2304:15: warning: unused variable 'stride' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c: In function 'tccxxx_cif_start_stream':
drivers/media/video/tcccam/tcc_cam.c:2384:41: warning: unused variable 'uv_offset' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c:2384:27: warning: unused variable 'y_offset' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c:2384:15: warning: unused variable 'stride' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c: In function 'tccxxx_cif_stop_stream':
drivers/media/video/tcccam/tcc_cam.c:2535:6: warning: unused variable 'nCnt' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c: In function 'tccxxx_cif_capture':
drivers/media/video/tcccam/tcc_cam.c:2684:22: warning: unused variable 'nCnt' [-Wunused-variable]
drivers/media/video/tcccam/tcc_cam.c: In function 'tccxxx_cif_buffer_set':
drivers/media/video/tcccam/tcc_cam.c:2131:22: warning: 'buff_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
  CC      drivers/media/video/tcccam/sensor_if.o
drivers/media/video/tcccam/sensor_if.c: In function 'sensor_if_init':
drivers/media/video/tcccam/sensor_if.c:612:12: warning: unused variable 'gpio_ret' [-Wunused-variable]
  CC      drivers/media/video/tcccam/tcc_cam_i2c.o
drivers/media/video/tcccam/tcc_cam_i2c.c:25:12: warning: 'debug' defined but not used [-Wunused-variable]
  CC      drivers/media/video/tcccam/ov7690_vga.o
drivers/media/video/tcccam/ov7690_vga.c: In function 'write_regs_ov7690':
drivers/media/video/tcccam/ov7690_vga.c:500:28: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]

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

CC      drivers/gps/gpio.o
drivers/gps/gpio.c:221:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/gps/gpio.c:221:5: warning: (near initialization for 'gps_gpio_fops.unlocked_ioctl') [enabled by default]

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

CC      drivers/char/hdmi/hdmi/hdmi.o
drivers/char/hdmi/hdmi/hdmi.c:368:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/char/hdmi/hdmi/hdmi.c:368:5: warning: (near initialization for 'hdmi_fops.unlocked_ioctl') [enabled by default]

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

  CC      drivers/char/tcc_intr.o
drivers/char/tcc_intr.c:156:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/char/tcc_intr.c:156:2: warning: (near initialization for 'intr_bc_fops.unlocked_ioctl') [enabled by default]

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
tcc_battery: fix *lots* of warnings

  CC      drivers/power/tcc_battery.o
drivers/power/tcc_battery.c:212:1: warning: data definition has no type or storage class [enabled by default]
drivers/power/tcc_battery.c:212:1: warning: type defaults to 'int' in declaration of 'tcc_battery_charging_status' [-Wimplicit-int]
drivers/power/tcc_battery.c:287:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/power/tcc_battery.c:287:2: warning: (near initialization for 'usb_status_notifier.notifier_call') [enabled by default]
drivers/power/tcc_battery.c: In function 'tcc_is_full_charge':
drivers/power/tcc_battery.c:550:9: warning: 'return' with a value, in function returning void [enabled by default]
drivers/power/tcc_battery.c: In function 'tcc_read_adc':
drivers/power/tcc_battery.c:640:18: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:643:18: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:646:18: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:575:6: warning: unused variable 'i' [-Wunused-variable]
drivers/power/tcc_battery.c: In function 'tcc_read_battery':
drivers/power/tcc_battery.c:789:2: warning: 'return' with a value, in function returning void [enabled by default]
drivers/power/tcc_battery.c: In function 'usb_status_notifier_func':
drivers/power/tcc_battery.c:922:2: warning: 'return' with a value, in function returning void [enabled by default]
drivers/power/tcc_battery.c: In function 'tcc_get_battery_info':
drivers/power/tcc_battery.c:928:6: warning: unused variable 'rc' [-Wunused-variable]
drivers/power/tcc_battery.c: In function 'tcc_battery_create_attrs':
drivers/power/tcc_battery.c:1083:9: warning: unused variable 'j' [-Wunused-variable]
drivers/power/tcc_battery.c: In function 'tcc_ac_charger_detect_process':
drivers/power/tcc_battery.c:1165:26: warning: unused variable 'client' [-Wunused-variable]
drivers/power/tcc_battery.c:1163:9: warning: unused variable 'i' [-Wunused-variable]
drivers/power/tcc_battery.c:1162:17: warning: unused variable 'adcValue' [-Wunused-variable]
drivers/power/tcc_battery.c: In function 'tcc_battery_process':
drivers/power/tcc_battery.c:1321:9: warning: type defaults to 'int' in declaration of 'old_batt_per' [-Wimplicit-int]
drivers/power/tcc_battery.c:1448:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:1451:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:1454:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
drivers/power/tcc_battery.c:1318:19: warning: unused variable 'pbattery_levels' [-Wunused-variable]
drivers/power/tcc_battery.c:1317:9: warning: unused variable 'battery_level_count' [-Wunused-variable]
drivers/power/tcc_battery.c:1314:24: warning: unused variable 'count' [-Wunused-variable]
drivers/power/tcc_battery.c:1314:17: warning: unused variable 'level' [-Wunused-variable]
drivers/power/tcc_battery.c: At top level:
drivers/power/tcc_battery.c:1761:8: warning: return type defaults to 'int' [-Wreturn-type]
drivers/power/tcc_battery.c: In function 'tcc_battery_late_resume':
drivers/power/tcc_battery.c:1802:6: warning: unused variable 'i' [-Wunused-variable]
drivers/power/tcc_battery.c: In function 'tcc_battery_probe':
drivers/power/tcc_battery.c:1915:2: warning: passing argument 3 of 'tcc_adc_register' from incompatible pointer type [enabled by default]
arch/arm/mach-tcc88xx/include/mach/tcc_adc.h:6:31: note: expected 'void (*)(unsigned int,  unsigned int)' but argument is of type 'void (*)(void)'
drivers/power/tcc_battery.c:1966:1: warning: label 'fail' defined but not used [-Wunused-label]
drivers/power/tcc_battery.c:1861:17: warning: unused variable 'adc_data' [-Wunused-variable]
drivers/power/tcc_battery.c: At top level:
drivers/power/tcc_battery.c:1987:8: warning: return type defaults to 'int' [-Wreturn-type]
drivers/power/tcc_battery.c: In function 'tcc_battery_init':
drivers/power/tcc_battery.c:2050:14: warning: unused variable 'clk' [-Wunused-variable]
drivers/power/tcc_battery.c: At top level:
drivers/power/tcc_battery.c:134:27: warning: 'batt_work' defined but not used [-Wunused-variable]
drivers/power/tcc_battery.c:548:13: warning: 'tcc_is_full_charge' defined but not used [-Wunused-function]
drivers/power/tcc_battery.c:764:12: warning: 'test' defined but not used [-Wunused-variable]
drivers/power/tcc_battery.c:1973:12: warning: 'tcc_battery_remove' defined but not used [-Wunused-function]
drivers/power/tcc_battery.c: In function 'tcc_battery_adc_channel':
drivers/power/tcc_battery.c:1786:1: warning: control reaches end of non-void function [-Wreturn-type]
drivers/power/tcc_battery.c: In function 'tcc_battery_port_init':
drivers/power/tcc_battery.c:2046:1: warning: control reaches end of non-void function [-Wreturn-type]
drivers/power/tcc_battery.c: In function 'tcc_battery_process':
drivers/power/tcc_battery.c:1394:24: warning: 'BattVoltage' may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
[tcc88xx] rtc: fix warnings

  CC      drivers/rtc/tcc/tca_rtc.o
drivers/rtc/tcc/tca_rtc.c:52:15: warning: function definition has qualified void return type [enabled by default]
drivers/rtc/tcc/tca_rtc.c:100:15: warning: function definition has qualified void return type [enabled by default]
drivers/rtc/tcc/tca_rtc.c: In function 'tca_rtc_checkvalidtime':
drivers/rtc/tcc/tca_rtc.c:140:17: warning: function with qualified void return type called [enabled by default]
  CC      drivers/rtc/tcc/tca_alarm.o
drivers/rtc/tcc/tca_alarm.c: In function 'tca_alarm_setint':
drivers/rtc/tcc/tca_alarm.c:270:17: warning: function with qualified void return type called [enabled by default]
drivers/rtc/tcc/tca_alarm.c: In function 'tca_alarm_setpmwkup':
drivers/rtc/tcc/tca_alarm.c:317:17: warning: function with qualified void return type called [enabled by default]
  LD      drivers/rtc/tcc/built-in.o
  CC      drivers/rtc/rtc-tcc8800.o
drivers/rtc/rtc-tcc8800.c: In function 'tcc_rtc_gettime':
drivers/rtc/rtc-tcc8800.c:158:20: warning: function with qualified void return type called [enabled by default]
drivers/rtc/rtc-tcc8800.c: In function 'tcc_rtc_settime':
drivers/rtc/rtc-tcc8800.c:196:20: warning: function with qualified void return type called [enabled by default]
drivers/rtc/rtc-tcc8800.c: In function 'tcc_rtc_probe':
drivers/rtc/rtc-tcc8800.c:468:18: warning: function with qualified void return type called [enabled by default]

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
[tcc88xx] tsif: fix warnings

  CC      drivers/spi/tsdemux/TSDEMUX_sys.o
drivers/spi/tsdemux/TSDEMUX_sys.c: In function 'TSDEMUX_MakeSTC':
drivers/spi/tsdemux/TSDEMUX_sys.c:241:15: warning: unused variable 'uiSTC' [-Wunused-variable]
  LD      drivers/spi/tsdemux/built-in.o
  CC      drivers/spi/tcc_gpsb_tsif.o
drivers/spi/tcc_gpsb_tsif.c:91:1: warning: no semicolon at end of struct or union [enabled by default]
drivers/spi/tcc_gpsb_tsif.c: In function 'tcc_tsif_ioctl':
drivers/spi/tcc_gpsb_tsif.c:529:3: warning: passing argument 2 of 'tcc_tsif_copy_from_user' discards 'const' qualifier from pointer target type [enabled by default]
drivers/spi/tcc_gpsb_tsif.c:425:16: note: expected 'void *' but argument is of type 'void const *'
drivers/spi/tcc_gpsb_tsif.c: At top level:
drivers/spi/tcc_gpsb_tsif.c:699:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/spi/tcc_gpsb_tsif.c:699:5: warning: (near initialization for 'tcc_tsif_fops.unlocked_ioctl') [enabled by default]
  CC      drivers/spi/tcc_tsif.o
drivers/spi/tcc_tsif.c:80:1: warning: no semicolon at end of struct or union [enabled by default]
drivers/spi/tcc_tsif.c: In function 'tcc_tsif_ioctl':
drivers/spi/tcc_tsif.c:534:74: warning: unused variable 'mpeg_ts' [-Wunused-variable]
drivers/spi/tcc_tsif.c:629:9: warning: passing argument 2 of 'tcc_tsif_copy_from_user' discards 'const' qualifier from pointer target type [enabled by default]
drivers/spi/tcc_tsif.c:503:16: note: expected 'void *' but argument is of type 'void const *'
drivers/spi/tcc_tsif.c: At top level:
drivers/spi/tcc_tsif.c:768:5: warning: initialization from incompatible pointer type [enabled by default]
drivers/spi/tcc_tsif.c:768:5: warning: (near initialization for 'tcc_tsif_ex_fops.unlocked_ioctl') [enabled by default]
drivers/spi/tcc_tsif.c:275:13: warning: 'debug_dump' defined but not used [-Wunused-function]

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

  CC      drivers/tty/serial/tcc_serial.o
drivers/tty/serial/tcc_serial.c:72:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/tcc_serial.c:72:8: warning: (near initialization for 'work_queue.func') [enabled by default]
drivers/tty/serial/tcc_serial.c: In function 'tcc_serial_stop_rx':
drivers/tty/serial/tcc_serial.c:486:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
drivers/tty/serial/tcc_serial.c: In function 'tcc_serial_startup':
drivers/tty/serial/tcc_serial.c:743:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

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