1. 01 May, 2015 9 commits
    • Mauro Carvalho Chehab's avatar
      [media] dib0070: Fix indenting · f3f8ef22
      Mauro Carvalho Chehab authored
      The indentation on this driver were deadly broken. On lots
      of places, it was using 4 spaces instead of tab to indent.
      On other parts, it were using tabs.
      
      Also, on several places, it were not even being properly aligned,
      as reported by smatch:
      	drivers/media/dvb-frontends/dib0070.c:179 dib0070_set_bandwidth() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:198 dib0070_captrim() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:246 dib0070_set_ctrl_lo5() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:260 dib0070_ctrl_agc_filter() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:494 dib0070_tune_digital() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:498 dib0070_tune_digital() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:655 dib0070_reset() warn: inconsistent indenting
      	drivers/media/dvb-frontends/dib0070.c:711 dib0070_reset() warn: curly braces intended?
      	drivers/media/dvb-frontends/dib0070.c:713 dib0070_reset() warn: inconsistent indenting
      
      My first idea were to leave it as-is or to just touch the above.
      
      However, this won't be fixing anything. So, as painful as it
      is, let's fix indentation globally on the driver, and then
      address the inconsistencies.
      
      Hopefully, this driver doesn't have much patches, so it likely
      won't conflict to any other patch during this merge window.
      
      Besides the big size of this patch, no functional changes
      were done.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      f3f8ef22
    • Mauro Carvalho Chehab's avatar
      [media] dib3000mc: fix bad indenting · f9e2e0e8
      Mauro Carvalho Chehab authored
      drivers/media/dvb-frontends/dib3000mc.c:149 dib3000mc_setup_pwm_state() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      f9e2e0e8
    • Mauro Carvalho Chehab's avatar
      [media] cx231xx: fix bad indenting · 69626853
      Mauro Carvalho Chehab authored
      drivers/media/usb/cx231xx/cx231xx-avcore.c:1598 cx231xx_set_DIF_bandpass() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-core.c:656 cx231xx_demod_reset() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-core.c:659 cx231xx_demod_reset() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-core.c:664 cx231xx_demod_reset() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-core.c:669 cx231xx_demod_reset() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-core.c:673 cx231xx_demod_reset() warn: inconsistent indenting
      drivers/media/usb/cx231xx/cx231xx-417.c:1164 cx231xx_initialize_codec() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      69626853
    • Mauro Carvalho Chehab's avatar
      [media] ov7670: check read error also for REG_AECHH on ov7670_s_exp() · d487df9e
      Mauro Carvalho Chehab authored
      ov7670_s_exp() checks read error for 2 registers: REG_COM1
      and REG_COM8. But, although it uses the value latter, it
      doesn't check errors on REG_AECHH read. Yet, as it is doing
      a bitmask operation there, the read operation should succeed.
      
      So, fix the code to also check if this succeeded.
      
      This fixes this smatch report:
      	drivers/media/i2c/ov7670.c:1366 ov7670_s_exp() warn: inconsistent indenting
      
      Compile-tested only.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      d487df9e
    • Mauro Carvalho Chehab's avatar
      [media] stv0297: change typecast to u64 to avoid smatch warnings · 5e6b681b
      Mauro Carvalho Chehab authored
      drivers/media/dvb-frontends/stv0297.c:140 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 86) << 8' be a 64 bit type?
      drivers/media/dvb-frontends/stv0297.c:141 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 87) << 16' be a 64 bit type?
      drivers/media/dvb-frontends/stv0297.c:142 stv0297_get_symbolrate() warn: should 'stv0297_readreg(state, 88) << 24' be a 64 bit type?
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      5e6b681b
    • Mauro Carvalho Chehab's avatar
      [media] zl10353: fix indenting · 2267d2d7
      Mauro Carvalho Chehab authored
      drivers/media/dvb-frontends/zl10353.c:536 zl10353_read_ucblocks() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      2267d2d7
    • Mauro Carvalho Chehab's avatar
      [media] bttv: fix indenting · 57eedc31
      Mauro Carvalho Chehab authored
      drivers/media/pci/bt8xx/bttv-driver.c:2679 bttv_s_fbuf() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      57eedc31
    • Mauro Carvalho Chehab's avatar
      [media] r820t: fix identing · 2be20f74
      Mauro Carvalho Chehab authored
      drivers/media/tuners/r820t.c:945 r820t_sysfreq_sel() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      2be20f74
    • Mauro Carvalho Chehab's avatar
      [media] tda1004x: fix identation · 2b257d18
      Mauro Carvalho Chehab authored
      drivers/media/dvb-frontends/tda1004x.c:653 tda10046_init() warn: inconsistent indenting
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      2b257d18
  2. 30 Apr, 2015 31 commits