1. 05 12月, 2014 6 次提交
    • F
      [media] arm: omap2: rx51-peripherals: fix build warning · 99d2fae9
      Felipe Balbi 提交于
      commit 68a3c043 ([media] ARM: OMAP2: RX-51: update
      si4713 platform data) updated board-rx51-peripherals.c
      so that si4713 could be easily used on DT boot, but
      it ended up introducing a build warning whenever
      si4713 isn't enabled.
      
      This patches fixes that warning:
      
      arch/arm/mach-omap2/board-rx51-peripherals.c:1000:36: warning: \
      	‘rx51_si4713_platform_data’ defined but not used [-Wunused-variable]
       static struct si4713_platform_data rx51_si4713_platform_data = {
      
      Cc: Sebastian Reichel <sre@kernel.org>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Hans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      99d2fae9
    • M
      [media] stv090x: add an extra protetion against buffer overflow · ffe30010
      Mauro Carvalho Chehab 提交于
      As pointed by smatch:
      	drivers/media/dvb-frontends/stv090x.c:2787 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
      	drivers/media/dvb-frontends/stv090x.c:2789 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
      	drivers/media/dvb-frontends/stv090x.c:2791 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
      	drivers/media/dvb-frontends/stv090x.c:2793 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
      	drivers/media/dvb-frontends/stv090x.c:2795 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
      
      The situation of a buffer overflow won't happen, in practice,
      with the current values of car_loop table. Yet, the entire logic
      that checks for those registration values is too complex. So,
      better to add an explicit check, just in case someone changes
      the car_loop tables causing a buffer overflow by mistake.
      
      This also helps to remove several smatch warnings, with is good.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      ffe30010
    • M
      [media] stv090x: Remove an unreachable code · b769ef69
      Mauro Carvalho Chehab 提交于
      if STV090x_RANGEOK is not returned, then STV090x_OUTOFRANGE
      is returned. However, that part of the code is never reached,
      as pointed by smatch:
      
      	drivers/media/dvb-frontends/stv090x.c:2673 stv090x_get_sig_params() info: ignoring unreachable code.
      
      So, remove the two uneeded elses, with makes the code a little bit
      cleaner.
      
      No functional changes, and one less smatch warning.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      b769ef69
    • M
      [media] stv090x: Some whitespace cleanups · 09e59098
      Mauro Carvalho Chehab 提交于
      While writing changeset fdf1bc9f, I noticed some checkpatch
      complains about the CodingStyle for function parameters. So,
      clean them.
      
      While here, also removes uneeded "extern" from function prototype.
      
      No functional changes.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      09e59098
    • M
      [media] em28xx: checkpatch cleanup: whitespaces/new lines cleanups · fdf1bc9f
      Mauro Carvalho Chehab 提交于
      This patch is basically produced while testing a tool that
      Joe Perches sent upstream sometime ago:
      	https://lkml.org/lkml/2014/7/11/794
      
      I used it with those arguments:
      	$ reformat_with_checkpatch.sh drivers/media/usb/em28xx/em28xx*.[ch]
      
      It actually produced 24 patches, with is too much, and showed
      interesting things: gcc produced different codes on most of the
      patches, even with just linespace changes. The total code data
      remained the same on all cases I checked though.
      
      Anyway, provided that we fold the resulting patches, this tool
      seems useful.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      fdf1bc9f
    • O
      [media] si2168: add support for firmware files in new format · 1b97dc98
      Olli Salonen 提交于
      This patch adds support for new type of firmware versions of Si2168 chip.
      
      Old type: n x 8 bytes (all data, first byte seems to be 04 or 05)
      New type: n x 17 bytes (1 byte indicates len and max 16 bytes data)
      
      New version of TechnoTrend CT2-4400 drivers
      (http://www.tt-downloads.de/bda-treiber_4.3.0.0.zip) contains newer
      firmware for Si2168-B40 that is in the new format. It can be extracted
      with the following command:
      
      dd if=ttTVStick4400_64.sys ibs=1 skip=323872 count=6919 of=dvb-demod-si2168-b40-01.fw
      Signed-off-by: NOlli Salonen <olli.salonen@iki.fi>
      Reviewed-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      1b97dc98
  2. 04 12月, 2014 17 次提交
  3. 02 12月, 2014 17 次提交