don't break long lines on strings
Subsystems (35)
cover don't break long lines on strings
There are lots of drivers on media that breaks long line strings in order to fit into 80 columns. This was an usual practice to make checkpatch happy. However, it makes harder to detect where the strings are with grep.
As we're right now fixing other drivers due to KERN_CONT, we need to be able to identify what printk strings don't end with a "\n". It is a way easier to detect those if we don't break long lines.
So, this patch series re-group those strings, violating the 80 columns limit by purpose.
Later patches will rely on this series to identify the strings that require KERN_CONT (or that should be converted to hexadecimal dumps).
Originally, I coded this as a single patch, but I opted to split it per directory, as it makes easy for people to review.
I used the following perl script to merge the strings into a single line (I ran it 10 times for each file):
#!/usr/bin/perl
while (<>) {
if ($next ne "") {
$c=$_;
if ($c =~ /^\s+\"(.*)/) {
$c2=$1;
$next =~ s/\"\n$//;
print "$next$c2\n";
$next="";
next;
} else {
print $next;
}
$next="";
} else {
if (m/\"$/) {
if (!m/\\n\"$/) {
$next=$_;
next;
}
}
}
print $_;
}I did a few manual adjustments afterwards.
Mauro Carvalho Chehab (57):
[media] b2c2: don't break long lines
[media] dvb-frontends: don't break long lines
[media] firewire: don't break long lines
[media] cx25840: don't break long lines
[media] smiapp: don't break long lines
[media] soc_camera: don't break long lines
[media] b2c2: don't break long lines
[media] bt8xx: don't break long lines
[media] cx18: don't break long lines
[media] cx23885: don't break long lines
[media] cx88: don't break long lines
[media] ddbridge: don't break long lines
[media] dm1105: don't break long lines
[media] ivtv: don't break long lines
[media] meye: don't break long lines
[media] pt1: don't break long lines
[media] saa7134: don't break long lines
[media] saa7164: don't break long lines
[media] solo6x10: don't break long lines
[media] ttpci: don't break long lines
[media] tw68: don't break long lines
[media] davinci: don't break long lines
[media] exynos4-is: don't break long lines
[media] marvell-ccic: don't break long lines
[media] omap: don't break long lines
[media] omap3isp: don't break long lines
[media] s5p-mfc: don't break long lines
[media] c8sectpfe: don't break long lines
[media] ti-vpe: don't break long lines
[media] si470x: don't break long lines
[media] si4713: don't break long lines
[media] wl128x: don't break long lines
[media] au0828: don't break long lines
[media] b2c2: don't break long lines
[media] cpia2: don't break long lines
[media] cx231xx: don't break long lines
[media] dvb-usb: don't break long lines
[media] dvb-usb-v2: don't break long lines
[media] em28xx: don't break long lines
[media] hdpvr: don't break long lines
[media] pvrusb2: don't break long lines
[media] pwc: don't break long lines
[media] siano: don't break long lines
[media] stkwebcam: don't break long lines
[media] tm6000: don't break long lines
[media] ttusb-budget: don't break long lines
[media] ttusb-dec: don't break long lines
[media] usbvision: don't break long lines
[media] uvc: don't break long lines
[media] zr364xx: don't break long lines
[media] v4l2-core: don't break long lines
[media] common: don't break long lines
[media] i2c: don't break long lines
[media] platform: don't break long lines
[media] radio: don't break long lines
[media] rc: don't break long lines
[media] tuners: don't break long lines
drivers/media/common/b2c2/flexcop-eeprom.c | 3 +- drivers/media/common/b2c2/flexcop-i2c.c | 3 +- drivers/media/common/b2c2/flexcop-misc.c | 9 +- drivers/media/common/b2c2/flexcop.c | 3 +- drivers/media/common/tveeprom.c | 3 +- drivers/media/dvb-frontends/au8522_common.c | 4 +- drivers/media/dvb-frontends/cx24110.c | 4 +- drivers/media/dvb-frontends/cx24113.c | 4 +- drivers/media/dvb-frontends/cx24116.c | 10 +- drivers/media/dvb-frontends/cx24117.c | 4 +- drivers/media/dvb-frontends/cx24123.c | 4 +- drivers/media/dvb-frontends/ds3000.c | 15 +- drivers/media/dvb-frontends/lgdt330x.c | 3 +- drivers/media/dvb-frontends/m88rs2000.c | 11 +- drivers/media/dvb-frontends/mt312.c | 7 +- drivers/media/dvb-frontends/nxt200x.c | 11 +- drivers/media/dvb-frontends/or51132.c | 6 +- drivers/media/dvb-frontends/or51211.c | 3 +- drivers/media/dvb-frontends/s5h1409.c | 4 +- drivers/media/dvb-frontends/s5h1411.c | 4 +- drivers/media/dvb-frontends/s5h1432.c | 4 +- drivers/media/dvb-frontends/s921.c | 4 +- drivers/media/dvb-frontends/si21xx.c | 8 +- drivers/media/dvb-frontends/sp887x.c | 3 +- drivers/media/dvb-frontends/stv0288.c | 11 +- drivers/media/dvb-frontends/stv0297.c | 4 +- drivers/media/dvb-frontends/stv0299.c | 7 +- drivers/media/dvb-frontends/stv0900_sw.c | 3 +- drivers/media/dvb-frontends/tda10021.c | 3 +- drivers/media/dvb-frontends/tda10023.c | 6 +- drivers/media/dvb-frontends/tda10048.c | 12 +- drivers/media/dvb-frontends/ves1820.c | 8 +- drivers/media/dvb-frontends/zl10036.c | 4 +- drivers/media/dvb-frontends/zl10039.c | 3 +- drivers/media/firewire/firedtv-avc.c | 5 +- drivers/media/firewire/firedtv-rc.c | 5 +- drivers/media/i2c/as3645a.c | 9 +- drivers/media/i2c/cx25840/cx25840-core.c | 11 +- drivers/media/i2c/cx25840/cx25840-ir.c | 6 +- drivers/media/i2c/msp3400-kthreads.c | 3 +- drivers/media/i2c/mt9m032.c | 3 +- drivers/media/i2c/mt9p031.c | 3 +- drivers/media/i2c/saa7115.c | 3 +- drivers/media/i2c/saa717x.c | 3 +- drivers/media/i2c/smiapp/smiapp-regs.c | 3 +- drivers/media/i2c/soc_camera/ov772x.c | 3 +- drivers/media/i2c/soc_camera/ov9740.c | 3 +- drivers/media/i2c/soc_camera/tw9910.c | 3 +- drivers/media/i2c/ths8200.c | 4 +- drivers/media/i2c/tvp5150.c | 3 +- drivers/media/i2c/tvp7002.c | 3 +- drivers/media/i2c/upd64083.c | 3 +- drivers/media/pci/b2c2/flexcop-dma.c | 6 +- drivers/media/pci/b2c2/flexcop-pci.c | 6 +- drivers/media/pci/bt8xx/bttv-cards.c | 9 +- drivers/media/pci/bt8xx/bttv-driver.c | 6 +- drivers/media/pci/bt8xx/bttv-i2c.c | 6 +- drivers/media/pci/bt8xx/bttv-input.c | 3 +- drivers/media/pci/cx18/cx18-alsa-main.c | 6 +- drivers/media/pci/cx18/cx18-av-core.c | 14 +- drivers/media/pci/cx18/cx18-av-firmware.c | 3 +- drivers/media/pci/cx18/cx18-controls.c | 9 +- drivers/media/pci/cx18/cx18-driver.c | 30 ++-- drivers/media/pci/cx18/cx18-dvb.c | 6 +- drivers/media/pci/cx18/cx18-fileops.c | 6 +- drivers/media/pci/cx18/cx18-ioctl.c | 6 +- drivers/media/pci/cx18/cx18-irq.c | 3 +- drivers/media/pci/cx18/cx18-mailbox.c | 35 ++--- drivers/media/pci/cx18/cx18-queue.c | 7 +- drivers/media/pci/cx18/cx18-streams.c | 6 +- drivers/media/pci/cx23885/cimax2.c | 4 +- drivers/media/pci/cx23885/cx23885-417.c | 15 +- drivers/media/pci/cx23885/cx23885-alsa.c | 12 +- drivers/media/pci/cx23885/cx23885-cards.c | 7 +- drivers/media/pci/cx23885/cx23885-core.c | 12 +- drivers/media/pci/cx23885/cx23885-dvb.c | 3 +- drivers/media/pci/cx23885/cx23885-video.c | 3 +- drivers/media/pci/cx23885/cx23888-ir.c | 6 +- drivers/media/pci/cx88/cx88-alsa.c | 13 +- drivers/media/pci/cx88/cx88-cards.c | 12 +- drivers/media/pci/cx88/cx88-dsp.c | 9 +- drivers/media/pci/cx88/cx88-dvb.c | 6 +- drivers/media/pci/cx88/cx88-i2c.c | 3 +- drivers/media/pci/cx88/cx88-mpeg.c | 12 +- drivers/media/pci/cx88/cx88-tvaudio.c | 6 +- drivers/media/pci/cx88/cx88-video.c | 3 +- drivers/media/pci/ddbridge/ddbridge-core.c | 6 +- drivers/media/pci/dm1105/dm1105.c | 3 +- drivers/media/pci/ivtv/ivtv-alsa-main.c | 9 +- drivers/media/pci/ivtv/ivtv-driver.c | 36 ++--- drivers/media/pci/ivtv/ivtv-firmware.c | 3 +- drivers/media/pci/ivtv/ivtv-yuv.c | 6 +- drivers/media/pci/ivtv/ivtvfb.c | 3 +- drivers/media/pci/meye/meye.c | 12 +- drivers/media/pci/pt1/pt1.c | 6 +- drivers/media/pci/saa7134/saa7134-alsa.c | 3 +- drivers/media/pci/saa7134/saa7134-cards.c | 6 +- drivers/media/pci/saa7134/saa7134-core.c | 29 ++-- drivers/media/pci/saa7134/saa7134-dvb.c | 24 +-- drivers/media/pci/saa7134/saa7134-input.c | 12 +- drivers/media/pci/saa7164/saa7164-buffer.c | 3 +- drivers/media/pci/saa7164/saa7164-bus.c | 3 +- drivers/media/pci/saa7164/saa7164-cards.c | 3 +- drivers/media/pci/saa7164/saa7164-cmd.c | 10 +- drivers/media/pci/saa7164/saa7164-core.c | 56 +++---- drivers/media/pci/saa7164/saa7164-dvb.c | 27 ++-- drivers/media/pci/saa7164/saa7164-encoder.c | 15 +- drivers/media/pci/saa7164/saa7164-fw.c | 9 +- drivers/media/pci/saa7164/saa7164-vbi.c | 12 +- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 3 +- drivers/media/pci/ttpci/av7110.c | 27 ++-- drivers/media/pci/ttpci/av7110_hw.c | 12 +- drivers/media/pci/ttpci/budget-av.c | 3 +- drivers/media/pci/ttpci/budget-ci.c | 4 +- drivers/media/pci/ttpci/budget-patch.c | 3 +- drivers/media/pci/ttpci/budget.c | 3 +- drivers/media/pci/ttpci/ttpci-eeprom.c | 3 +- drivers/media/pci/tw68/tw68-video.c | 12 +- drivers/media/platform/davinci/dm355_ccdc.c | 3 +- drivers/media/platform/davinci/dm644x_ccdc.c | 3 +- drivers/media/platform/davinci/vpbe.c | 15 +- drivers/media/platform/davinci/vpfe_capture.c | 6 +- drivers/media/platform/davinci/vpif_capture.c | 9 +- drivers/media/platform/davinci/vpif_display.c | 9 +- drivers/media/platform/davinci/vpss.c | 6 +- drivers/media/platform/exynos4-is/media-dev.c | 3 +- drivers/media/platform/marvell-ccic/mcam-core.c | 26 +-- drivers/media/platform/mx2_emmaprp.c | 3 +- drivers/media/platform/omap/omap_vout.c | 12 +- drivers/media/platform/omap/omap_vout_vrfb.c | 3 +- drivers/media/platform/omap3isp/isp.c | 3 +- drivers/media/platform/omap3isp/ispccdc.c | 6 +- drivers/media/platform/omap3isp/ispcsi2.c | 11 +- drivers/media/platform/omap3isp/ispcsiphy.c | 3 +- drivers/media/platform/omap3isp/isph3a_aewb.c | 6 +- drivers/media/platform/omap3isp/isph3a_af.c | 6 +- drivers/media/platform/omap3isp/ispstat.c | 36 ++--- drivers/media/platform/pxa_camera.c | 6 +- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 6 +- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 7 +- .../media/platform/sti/c8sectpfe/c8sectpfe-core.c | 15 +- drivers/media/platform/ti-vpe/vpdma.c | 12 +- drivers/media/platform/ti-vpe/vpe.c | 3 +- drivers/media/platform/via-camera.c | 7 +- drivers/media/radio/radio-gemtek.c | 8 +- drivers/media/radio/radio-wl1273.c | 3 +- drivers/media/radio/si470x/radio-si470x-i2c.c | 6 +- drivers/media/radio/si470x/radio-si470x-usb.c | 12 +- drivers/media/radio/si4713/si4713.c | 7 +- drivers/media/radio/wl128x/fmdrv_common.c | 21 +-- drivers/media/radio/wl128x/fmdrv_rx.c | 6 +- drivers/media/rc/ati_remote.c | 3 +- drivers/media/rc/ene_ir.c | 3 +- drivers/media/rc/imon.c | 43 ++--- drivers/media/rc/ite-cir.c | 9 +- drivers/media/rc/mceusb.c | 4 +- drivers/media/rc/rc-main.c | 3 +- drivers/media/rc/redrat3.c | 18 +-- drivers/media/rc/streamzap.c | 9 +- drivers/media/rc/winbond-cir.c | 9 +- drivers/media/tuners/fc0011.c | 7 +- drivers/media/tuners/mc44s803.c | 3 +- drivers/media/tuners/tda18271-common.c | 3 +- drivers/media/tuners/tda18271-fe.c | 3 +- drivers/media/tuners/tda18271-maps.c | 6 +- drivers/media/tuners/tda8290.c | 3 +- drivers/media/tuners/tea5761.c | 6 +- drivers/media/tuners/tuner-simple.c | 39 ++--- drivers/media/tuners/xc4000.c | 25 +-- drivers/media/usb/au0828/au0828-video.c | 3 +- drivers/media/usb/b2c2/flexcop-usb.c | 9 +- drivers/media/usb/cpia2/cpia2_usb.c | 4 +- drivers/media/usb/cx231xx/cx231xx-core.c | 9 +- drivers/media/usb/cx231xx/cx231xx-dvb.c | 3 +- drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c | 10 +- drivers/media/usb/dvb-usb-v2/mxl111sf.c | 9 +- drivers/media/usb/dvb-usb/cinergyT2-core.c | 6 +- drivers/media/usb/dvb-usb/dib0700_core.c | 5 +- drivers/media/usb/dvb-usb/dib0700_devices.c | 3 +- drivers/media/usb/dvb-usb/dvb-usb-dvb.c | 3 +- drivers/media/usb/dvb-usb/dvb-usb-firmware.c | 6 +- drivers/media/usb/dvb-usb/dw2102.c | 10 +- drivers/media/usb/dvb-usb/friio.c | 3 +- drivers/media/usb/dvb-usb/gp8psk.c | 3 +- drivers/media/usb/dvb-usb/opera1.c | 3 +- drivers/media/usb/dvb-usb/technisat-usb2.c | 3 +- drivers/media/usb/em28xx/em28xx-cards.c | 3 +- drivers/media/usb/hdpvr/hdpvr-core.c | 9 +- drivers/media/usb/hdpvr/hdpvr-i2c.c | 6 +- drivers/media/usb/hdpvr/hdpvr-video.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-audio.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-debugifc.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-eeprom.c | 6 +- drivers/media/usb/pvrusb2/pvrusb2-encoder.c | 28 +--- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 175 +++++++-------------- drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 33 ++-- drivers/media/usb/pvrusb2/pvrusb2-io.c | 33 ++-- drivers/media/usb/pvrusb2/pvrusb2-ioread.c | 33 ++-- drivers/media/usb/pvrusb2/pvrusb2-std.c | 3 +- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 9 +- drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-wm8775.c | 3 +- drivers/media/usb/pwc/pwc-if.c | 3 +- drivers/media/usb/pwc/pwc-v4l.c | 6 +- drivers/media/usb/siano/smsusb.c | 3 +- drivers/media/usb/stkwebcam/stk-sensor.c | 3 +- drivers/media/usb/stkwebcam/stk-webcam.c | 3 +- drivers/media/usb/tm6000/tm6000-alsa.c | 4 +- drivers/media/usb/tm6000/tm6000-core.c | 11 +- drivers/media/usb/tm6000/tm6000-dvb.c | 16 +- drivers/media/usb/tm6000/tm6000-i2c.c | 3 +- drivers/media/usb/tm6000/tm6000-stds.c | 3 +- drivers/media/usb/tm6000/tm6000-video.c | 15 +- drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c | 3 +- drivers/media/usb/ttusb-dec/ttusb_dec.c | 18 +-- drivers/media/usb/usbvision/usbvision-core.c | 15 +- drivers/media/usb/usbvision/usbvision-video.c | 3 +- drivers/media/usb/uvc/uvc_ctrl.c | 24 +-- drivers/media/usb/uvc/uvc_debugfs.c | 3 +- drivers/media/usb/uvc/uvc_driver.c | 148 ++++++----------- drivers/media/usb/uvc/uvc_entity.c | 6 +- drivers/media/usb/uvc/uvc_isight.c | 9 +- drivers/media/usb/uvc/uvc_status.c | 15 +- drivers/media/usb/uvc/uvc_v4l2.c | 6 +- drivers/media/usb/uvc/uvc_video.c | 69 +++----- drivers/media/usb/zr364xx/zr364xx.c | 6 +- drivers/media/v4l2-core/v4l2-ioctl.c | 90 +++-------- drivers/media/v4l2-core/videobuf-core.c | 3 +- drivers/media/v4l2-core/videobuf2-core.c | 21 +-- drivers/media/v4l2-core/videobuf2-v4l2.c | 9 +- drivers/media/v4l2-core/videobuf2-vmalloc.c | 3 +- 233 files changed, 781 insertions(+), 1611 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/57 b2c2: don't break long lines
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/common/b2c2/flexcop-eeprom.c | 3 +-- drivers/media/common/b2c2/flexcop-i2c.c | 3 +-- drivers/media/common/b2c2/flexcop-misc.c | 9 +++------ drivers/media/common/b2c2/flexcop.c | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-)
drivers/media/common/b2c2/flexcop-eeprom.c +1 -2
@@ -136,8 +136,7 @@ int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended)if ((ret =flexcop_eeprom_lrc_read (fc,0x3f8 ,buf,8 ,4 )) ==0 ) {if (extended !=0 ) { -err ("TODO: extended (EUI64) MAC addresses aren't " -"completely supported yet" ); +err ("TODO: extended (EUI64) MAC addresses aren't completely supported yet" ); ret = -EINVAL ; }else memcpy (fc->dvb_adapter.proposed_mac,buf,6 );
drivers/media/common/b2c2/flexcop-i2c.c +1 -2
@@ -33,8 +33,7 @@ static int flexcop_i2c_operation(struct flexcop_device *fc,return -EREMOTEIO ; } } -deb_i2c ("tried %d times i2c operation, " -"never finished or too many ack errors.\n" , i); +deb_i2c ("tried %d times i2c operation, never finished or too many ack errors.\n" , i);return -EREMOTEIO ; }
drivers/media/common/b2c2/flexcop-misc.c +3 -6
@@ -23,18 +23,15 @@ void flexcop_determine_revision(struct flexcop_device *fc) fc->rev =FLEXCOP_III ;break ;default : -err ("unknown FlexCop Revision: %x. Please report this to " -"[email protected]." , +err ("unknown FlexCop Revision: %x. Please report this to [email protected]." , v.misc_204.Rev_N_sig_revision_hi);break ; }if ((fc->has_32_hw_pid_filter = v.misc_204.Rev_N_sig_caps)) -deb_info ("this FlexCop has " -"the additional 32 hardware pid filter.\n" ); +deb_info ("this FlexCop has the additional 32 hardware pid filter.\n" );else -deb_info ("this FlexCop has " -"the 6 basic main hardware pid filter.\n" ); +deb_info ("this FlexCop has the 6 basic main hardware pid filter.\n" );/* bus parts have to decide if hw pid filtering is used or not. */ }
drivers/media/common/b2c2/flexcop.c +1 -2
@@ -46,8 +46,7 @@ int b2c2_flexcop_debug;EXPORT_SYMBOL_GPL (b2c2_flexcop_debug);module_param_named (debug, b2c2_flexcop_debug, int,0644 );MODULE_PARM_DESC (debug, -"set debug level (1=info,2=tuner,4=i2c,8=ts," -"16=sram,32=reg (|-able))." +"set debug level (1=info,2=tuner,4=i2c,8=ts,16=sram,32=reg (|-able))." DEBSTATUS );#undef DEBSTATUS
Signature · 1 line
2.7.4
PATCH 2/57 dvb-frontends: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/dvb-frontends/au8522_common.c | 4 ++-- drivers/media/dvb-frontends/cx24110.c | 4 ++-- drivers/media/dvb-frontends/cx24113.c | 4 ++-- drivers/media/dvb-frontends/cx24116.c | 10 +++++----- drivers/media/dvb-frontends/cx24117.c | 4 ++-- drivers/media/dvb-frontends/cx24123.c | 4 ++-- drivers/media/dvb-frontends/ds3000.c | 15 +++++++-------- drivers/media/dvb-frontends/lgdt330x.c | 3 +-- drivers/media/dvb-frontends/m88rs2000.c | 11 +++++------ drivers/media/dvb-frontends/mt312.c | 7 +++---- drivers/media/dvb-frontends/nxt200x.c | 11 +++++------ drivers/media/dvb-frontends/or51132.c | 6 ++---- drivers/media/dvb-frontends/or51211.c | 3 +-- drivers/media/dvb-frontends/s5h1409.c | 4 ++-- drivers/media/dvb-frontends/s5h1411.c | 4 ++-- drivers/media/dvb-frontends/s5h1432.c | 4 ++-- drivers/media/dvb-frontends/s921.c | 4 ++-- drivers/media/dvb-frontends/si21xx.c | 8 ++++---- drivers/media/dvb-frontends/sp887x.c | 3 +-- drivers/media/dvb-frontends/stv0288.c | 11 +++++------ drivers/media/dvb-frontends/stv0297.c | 4 ++-- drivers/media/dvb-frontends/stv0299.c | 7 +++---- drivers/media/dvb-frontends/stv0900_sw.c | 3 +-- drivers/media/dvb-frontends/tda10021.c | 3 +-- drivers/media/dvb-frontends/tda10023.c | 6 ++---- drivers/media/dvb-frontends/tda10048.c | 12 ++++-------- drivers/media/dvb-frontends/ves1820.c | 8 ++++---- drivers/media/dvb-frontends/zl10036.c | 4 ++-- drivers/media/dvb-frontends/zl10039.c | 3 +-- 29 files changed, 77 insertions(+), 97 deletions(-)
drivers/media/dvb-frontends/au8522_common.c +2 -2
@@ -50,8 +50,8 @@ int au8522_writereg(struct au8522_state *state, u16 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk ("%s: writereg error (reg == 0x%02x, val == 0x%04x, " -"ret == %i)\n" , __func__, reg, data, ret); +printk ("%s: writereg error (reg == 0x%02x, val == 0x%04x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ?-1 :0 ; }
drivers/media/dvb-frontends/cx24110.c +2 -2
@@ -120,8 +120,8 @@ static int cx24110_writereg (struct cx24110_state* state, int reg, int data)int err;if ((err =i2c_transfer (state->i2c, &msg,1 )) !=1 ) { -dprintk ("%s: writereg error (err == %i, reg == 0x%02x," -" data == 0x%02x)\n" , __func__, err, reg, data); +dprintk ("%s: writereg error (err == %i, reg == 0x%02x, data == 0x%02x)\n" , + __func__, err, reg, data);return -EREMOTEIO ; }
drivers/media/dvb-frontends/cx24113.c +2 -2
@@ -108,8 +108,8 @@ static int cx24113_writereg(struct cx24113_state *state, int reg, int data) .flags = 0, .buf = buf, .len = 2 };int err =i2c_transfer (state->i2c, &msg,1 );if (err !=1 ) { -printk (KERN_DEBUG "%s: writereg error(err == %i, reg == 0x%02x," -" data == 0x%02x)\n" , __func__, err, reg, data); +printk (KERN_DEBUG "%s: writereg error(err == %i, reg == 0x%02x, data == 0x%02x)\n" , + __func__, err, reg, data);return err; }
drivers/media/dvb-frontends/cx24116.c +5 -5
@@ -209,8 +209,8 @@ static int cx24116_writereg(struct cx24116_state *state, int reg, int data) err =i2c_transfer (state->i2c, &msg,1 );if (err !=1 ) { -printk (KERN_ERR "%s: writereg error(err == %i, reg == 0x%02x," -" value == 0x%02x)\n" , __func__, err, reg, data); +printk (KERN_ERR "%s: writereg error(err == %i, reg == 0x%02x, value == 0x%02x)\n" , + __func__, err, reg, data);return -EREMOTEIO ; }
@@ -498,8 +498,8 @@ static int cx24116_firmware_ondemand(struct dvb_frontend *fe)printk (KERN_INFO "%s: Waiting for firmware upload(2)...\n" , __func__);if (ret) { -printk (KERN_ERR "%s: No firmware uploaded " -"(timeout or file not found?)\n" , __func__); +printk (KERN_ERR "%s: No firmware uploaded (timeout or file not found?)\n" , + __func__);return ret; }
@@ -967,7 +967,7 @@ static int cx24116_send_diseqc_msg(struct dvb_frontend *fe,/* Validate length */ if (d->msg_len >sizeof (d->msg)) -return -EINVAL ; +return -EINVAL ;/* Dump DiSEqC message */ if (debug) {
drivers/media/dvb-frontends/cx24117.c +2 -2
@@ -474,8 +474,8 @@ static int cx24117_firmware_ondemand(struct dvb_frontend *fe) "%s: Waiting for firmware upload(2)...\n", __func__);if (ret) {dev_err (&state->priv->i2c->dev, -"%s: No firmware uploaded " -"(timeout or file not found?)\n" , __func__); +"%s: No firmware uploaded (timeout or file not found?)\n" , + __func__);return ret; }
drivers/media/dvb-frontends/cx24123.c +2 -2
@@ -255,8 +255,8 @@ static int cx24123_i2c_writereg(struct cx24123_state *state, err =i2c_transfer (state->i2c, &msg,1 );if (err !=1 ) { -printk ("%s: writereg error(err == %i, reg == 0x%02x," -" data == 0x%02x)\n" , __func__, err, reg, data); +printk ("%s: writereg error(err == %i, reg == 0x%02x, data == 0x%02x)\n" , + __func__, err, reg, data);return err; }
drivers/media/dvb-frontends/ds3000.c +7 -8
@@ -248,8 +248,8 @@ static int ds3000_writereg(struct ds3000_state *state, int reg, int data) err =i2c_transfer (state->i2c, &msg,1 );if (err !=1 ) { -printk (KERN_ERR "%s: writereg error(err == %i, reg == 0x%02x," -" value == 0x%02x)\n" , __func__, err, reg, data); +printk (KERN_ERR "%s: writereg error(err == %i, reg == 0x%02x, value == 0x%02x)\n" , + __func__, err, reg, data);return -EREMOTEIO ; }
@@ -296,8 +296,8 @@ static int ds3000_writeFW(struct ds3000_state *state, int reg, ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) { -printk (KERN_ERR "%s: write error(err == %i, " -"reg == 0x%02x\n" , __func__, ret, reg); +printk (KERN_ERR "%s: write error(err == %i, reg == 0x%02x\n" , + __func__, ret, reg); ret = -EREMOTEIO ; goto error; }
@@ -364,8 +364,8 @@ static int ds3000_firmware_ondemand(struct dvb_frontend *fe) state->i2c->dev.parent);printk (KERN_INFO "%s: Waiting for firmware upload(2)...\n" , __func__);if (ret) { -printk (KERN_ERR "%s: No firmware uploaded (timeout or file not " -"found?)\n" , __func__); +printk (KERN_ERR "%s: No firmware uploaded (timeout or file not found?)\n" , + __func__);return ret; }
@@ -1144,8 +1144,7 @@ static struct dvb_frontend_ops ds3000_ops = {module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Activates frontend debugging (default:0)" ); -MODULE_DESCRIPTION ("DVB Frontend module for Montage Technology " -"DS3000 hardware" ); +MODULE_DESCRIPTION ("DVB Frontend module for Montage Technology DS3000 hardware" );MODULE_AUTHOR ("Konstantin Dimitrov <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_FIRMWARE (DS3000_DEFAULT_FIRMWARE );
drivers/media/dvb-frontends/lgdt330x.c +1 -2
@@ -405,8 +405,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend *fe)return -1 ; }if (err <0 ) -printk (KERN_WARNING "lgdt330x: %s: error blasting " -"bytes to lgdt3303 for modulation type(%d)\n" , +printk (KERN_WARNING "lgdt330x: %s: error blasting bytes to lgdt3303 for modulation type(%d)\n" , __func__, p->modulation);/*
drivers/media/dvb-frontends/m88rs2000.c +5 -6
@@ -75,8 +75,8 @@ static int m88rs2000_writereg(struct m88rs2000_state *state, ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -deb_info ("%s: writereg error (reg == 0x%02x, val == 0x%02x, " -"ret == %i)\n" , __func__, reg, data, ret); +deb_info ("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
@@ -618,10 +618,9 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe) state->no_lock_count =0 ;if (c->delivery_system !=SYS_DVBS ) { -deb_info ("%s: unsupported delivery " -"system selected (%d)\n" , - __func__, c->delivery_system); -return -EOPNOTSUPP ; +deb_info ("%s: unsupported delivery system selected (%d)\n" , + __func__, c->delivery_system); +return -EOPNOTSUPP ; }/* Set Tuner */
drivers/media/dvb-frontends/mt312.c +3 -4
@@ -457,8 +457,8 @@ static int mt312_read_status(struct dvb_frontend *fe, enum fe_status *s)if (ret <0 )return ret; -dprintk ("QPSK_STAT_H: 0x%02x, QPSK_STAT_L: 0x%02x," -" FEC_STATUS: 0x%02x\n" , status[0 ], status[1 ], status[2 ]); +dprintk ("QPSK_STAT_H: 0x%02x, QPSK_STAT_L: 0x%02x, FEC_STATUS: 0x%02x\n" , + status[0 ], status[1 ], status[2 ]);if (status[0 ] &0xc0 ) *s |=FE_HAS_SIGNAL ;/* signal noise ratio */
@@ -827,8 +827,7 @@ struct dvb_frontend *mt312_attach(const struct mt312_config *config, state->freq_mult =9 ;break ;default : -printk (KERN_WARNING "Only Zarlink VP310/MT312/ZL10313" -" are supported chips.\n" ); +printk (KERN_WARNING "Only Zarlink VP310/MT312/ZL10313 are supported chips.\n" ); goto error; }
drivers/media/dvb-frontends/nxt200x.c +5 -6
@@ -289,8 +289,7 @@ static void nxt200x_microcontroller_stop (struct nxt200x_state* state) counter++; } -pr_warn ("Timeout waiting for nxt200x to stop. This is ok after " -"firmware upload.\n" ); +pr_warn ("Timeout waiting for nxt200x to stop. This is ok after firmware upload.\n" );return ; }
@@ -893,8 +892,8 @@ static int nxt2002_init(struct dvb_frontend* fe) state->i2c->dev.parent);pr_debug ("%s: Waiting for firmware upload(2)...\n" , __func__);if (ret) { -pr_err ("%s: No firmware uploaded (timeout or file not found?)" -"\n" , __func__); +pr_err ("%s: No firmware uploaded (timeout or file not found?)\n" , + __func__);return ret; }
@@ -960,8 +959,8 @@ static int nxt2004_init(struct dvb_frontend* fe) state->i2c->dev.parent);pr_debug ("%s: Waiting for firmware upload(2)...\n" , __func__);if (ret) { -pr_err ("%s: No firmware uploaded (timeout or file not found?)" -"\n" , __func__); +pr_err ("%s: No firmware uploaded (timeout or file not found?)\n" , + __func__);return ret; }
drivers/media/dvb-frontends/or51132.c +2 -4
@@ -342,15 +342,13 @@ static int or51132_set_parameters(struct dvb_frontend *fe) fwname); ret =request_firmware (&fw, fwname, state->i2c->dev.parent);if (ret) { -printk (KERN_WARNING "or51132: No firmware up" -"loaded(timeout or file not found?)\n" ); +printk (KERN_WARNING "or51132: No firmware uploaded(timeout or file not found?)\n" );return ret; } ret =or51132_load_firmware (fe, fw);release_firmware (fw);if (ret) { -printk (KERN_WARNING "or51132: Writing firmware to " -"device failed!\n" ); +printk (KERN_WARNING "or51132: Writing firmware to device failed!\n" );return ret; }printk ("or51132: Firmware upload complete.\n" );
drivers/media/dvb-frontends/or51211.c +1 -2
@@ -377,8 +377,7 @@ static int or51211_init(struct dvb_frontend* fe) OR51211_DEFAULT_FIRMWARE);pr_info ("Got Hotplug firmware\n" );if (ret) { -pr_warn ("No firmware uploaded " -"(timeout or file not found?)\n" ); +pr_warn ("No firmware uploaded (timeout or file not found?)\n" );return ret; }
drivers/media/dvb-frontends/s5h1409.c +2 -2
@@ -321,8 +321,8 @@ static int s5h1409_writereg(struct s5h1409_state *state, u8 reg, u16 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk (KERN_ERR "%s: error (reg == 0x%02x, val == 0x%04x, " -"ret == %i)\n" , __func__, reg, data, ret); +printk (KERN_ERR "%s: error (reg == 0x%02x, val == 0x%04x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ?-1 :0 ; }
drivers/media/dvb-frontends/s5h1411.c +2 -2
@@ -350,8 +350,8 @@ static int s5h1411_writereg(struct s5h1411_state *state, ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk (KERN_ERR "%s: writereg error 0x%02x 0x%02x 0x%04x, " -"ret == %i)\n" , __func__, addr, reg, data, ret); +printk (KERN_ERR "%s: writereg error 0x%02x 0x%02x 0x%04x, ret == %i)\n" , + __func__, addr, reg, data, ret);return (ret !=1 ) ?-1 :0 ; }
drivers/media/dvb-frontends/s5h1432.c +2 -2
@@ -63,8 +63,8 @@ static int s5h1432_writereg(struct s5h1432_state *state, ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk (KERN_ERR "%s: writereg error 0x%02x 0x%02x 0x%04x, " -"ret == %i)\n" , __func__, addr, reg, data, ret); +printk (KERN_ERR "%s: writereg error 0x%02x 0x%02x 0x%04x, ret == %i)\n" , + __func__, addr, reg, data, ret);return (ret !=1 ) ?-1 :0 ; }
drivers/media/dvb-frontends/s921.c +2 -2
@@ -214,8 +214,8 @@ static int s921_i2c_writereg(struct s921_state *state, rc =i2c_transfer (state->i2c, &msg,1 );if (rc !=1 ) { -printk ("%s: writereg rcor(rc == %i, reg == 0x%02x," -" data == 0x%02x)\n" , __func__, rc, reg, data); +printk ("%s: writereg rcor(rc == %i, reg == 0x%02x, data == 0x%02x)\n" , + __func__, rc, reg, data);return rc; }
drivers/media/dvb-frontends/si21xx.c +4 -4
@@ -245,8 +245,8 @@ static int si21_writeregs(struct si21xx_state *state, u8 reg1, ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -dprintk ("%s: writereg error (reg1 == 0x%02x, data == 0x%02x, " -"ret == %i)\n" , __func__, reg1, data[0 ], ret); +dprintk ("%s: writereg error (reg1 == 0x%02x, data == 0x%02x, ret == %i)\n" , + __func__, reg1, data[0 ], ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
@@ -265,8 +265,8 @@ static int si21_writereg(struct si21xx_state *state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -dprintk ("%s: writereg error (reg == 0x%02x, data == 0x%02x, " -"ret == %i)\n" , __func__, reg, data, ret); +dprintk ("%s: writereg error (reg == 0x%02x, data == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
drivers/media/dvb-frontends/sp887x.c +1 -2
@@ -63,8 +63,7 @@ static int sp887x_writereg (struct sp887x_state* state, u16 reg, u16 data)if (!(reg ==0xf1a && data ==0x000 && (ret == -EREMOTEIO || ret == -EFAULT ))) { -printk ("%s: writereg error " -"(reg %03x, data %03x, ret == %i)\n" , +printk ("%s: writereg error (reg %03x, data %03x, ret == %i)\n" , __func__, reg &0xffff , data &0xffff , ret);return ret; }
drivers/media/dvb-frontends/stv0288.c +5 -6
@@ -74,8 +74,8 @@ static int stv0288_writeregI(struct stv0288_state *state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, " -"ret == %i)\n" , __func__, reg, data, ret); +dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
@@ -465,10 +465,9 @@ static int stv0288_set_frontend(struct dvb_frontend *fe)dprintk ("%s : FE_SET_FRONTEND\n" , __func__);if (c->delivery_system !=SYS_DVBS ) { -dprintk ("%s: unsupported delivery " -"system selected (%d)\n" , - __func__, c->delivery_system); -return -EOPNOTSUPP ; +dprintk ("%s: unsupported delivery system selected (%d)\n" , + __func__, c->delivery_system); +return -EOPNOTSUPP ; }if (state->config->set_ts_params)
drivers/media/dvb-frontends/stv0297.c +2 -2
@@ -57,8 +57,8 @@ static int stv0297_writereg(struct stv0297_state *state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, " -"ret == %i)\n" , __func__, reg, data, ret); +dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ?-1 :0 ; }
drivers/media/dvb-frontends/stv0299.c +3 -4
@@ -88,8 +88,8 @@ static int stv0299_writeregI (struct stv0299_state* state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, " -"ret == %i)\n" , __func__, reg, data, ret); +dprintk ("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
@@ -761,8 +761,7 @@ module_param(debug, int, 0644);MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );MODULE_DESCRIPTION ("ST STV0299 DVB Demodulator driver" ); -MODULE_AUTHOR ("Ralph Metzler, Holger Waechtler, Peter Schildmann, Felix Domke, " -"Andreas Oberritter, Andrew de Quincey, Kenneth Aafly" ); +MODULE_AUTHOR ("Ralph Metzler, Holger Waechtler, Peter Schildmann, Felix Domke, Andreas Oberritter, Andrew de Quincey, Kenneth Aafly" );MODULE_LICENSE ("GPL" );EXPORT_SYMBOL (stv0299_attach);
drivers/media/dvb-frontends/stv0900_sw.c +1 -2
@@ -1485,8 +1485,7 @@ static u32 stv0900_search_srate_coarse(struct dvb_frontend *fe) current_step++; direction *=-1 ; -dprintk ("lock: I2C_DEMOD_MODE_FIELD =0. Search started." -" tuner freq=%d agc2=0x%x srate_coarse=%d tmg_cpt=%d\n" , +dprintk ("lock: I2C_DEMOD_MODE_FIELD =0. Search started. tuner freq=%d agc2=0x%x srate_coarse=%d tmg_cpt=%d\n" , tuner_freq, agc2_integr, coarse_srate, timingcpt); if ((timingcpt >= 5) &&
drivers/media/dvb-frontends/tda10021.c +1 -2
@@ -77,8 +77,7 @@ static int _tda10021_writereg (struct tda10021_state* state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk ("DVB: TDA10021(%d): %s, writereg error " -"(reg == 0x%02x, val == 0x%02x, ret == %i)\n" , +printk ("DVB: TDA10021(%d): %s, writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , state->frontend.dvb->num, __func__, reg, data, ret);msleep (10 );
drivers/media/dvb-frontends/tda10023.c +2 -4
@@ -72,8 +72,7 @@ static u8 tda10023_readreg (struct tda10023_state* state, u8 reg) ret =i2c_transfer (state->i2c, msg,2 );if (ret !=2 ) {int num = state->frontend.dvb ? state->frontend.dvb->num :-1 ; -printk (KERN_ERR "DVB: TDA10023(%d): %s: readreg error " -"(reg == 0x%02x, ret == %i)\n" , +printk (KERN_ERR "DVB: TDA10023(%d): %s: readreg error (reg == 0x%02x, ret == %i)\n" , num, __func__, reg, ret); }return b1[0 ];
@@ -88,8 +87,7 @@ static int tda10023_writereg (struct tda10023_state* state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) {int num = state->frontend.dvb ? state->frontend.dvb->num :-1 ; -printk (KERN_ERR "DVB: TDA10023(%d): %s, writereg error " -"(reg == 0x%02x, val == 0x%02x, ret == %i)\n" , +printk (KERN_ERR "DVB: TDA10023(%d): %s, writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , num, __func__, reg, data, ret); }return (ret !=1 ) ? -EREMOTEIO :0 ;
drivers/media/dvb-frontends/tda10048.c +4 -8
@@ -1063,32 +1063,28 @@ static void tda10048_establish_defaults(struct dvb_frontend *fe)/* Validate/default the config */ if (config->dtv6_if_freq_khz ==0 ) { config->dtv6_if_freq_khz =TDA10048_IF_4300 ; -printk (KERN_WARNING "%s() tda10048_config.dtv6_if_freq_khz " -"is not set (defaulting to %d)\n" , +printk (KERN_WARNING "%s() tda10048_config.dtv6_if_freq_khz is not set (defaulting to %d)\n" , __func__, config->dtv6_if_freq_khz); }if (config->dtv7_if_freq_khz ==0 ) { config->dtv7_if_freq_khz =TDA10048_IF_4300 ; -printk (KERN_WARNING "%s() tda10048_config.dtv7_if_freq_khz " -"is not set (defaulting to %d)\n" , +printk (KERN_WARNING "%s() tda10048_config.dtv7_if_freq_khz is not set (defaulting to %d)\n" , __func__, config->dtv7_if_freq_khz); }if (config->dtv8_if_freq_khz ==0 ) { config->dtv8_if_freq_khz =TDA10048_IF_4300 ; -printk (KERN_WARNING "%s() tda10048_config.dtv8_if_freq_khz " -"is not set (defaulting to %d)\n" , +printk (KERN_WARNING "%s() tda10048_config.dtv8_if_freq_khz is not set (defaulting to %d)\n" , __func__, config->dtv8_if_freq_khz); }if (config->clk_freq_khz ==0 ) { config->clk_freq_khz =TDA10048_CLK_16000 ; -printk (KERN_WARNING "%s() tda10048_config.clk_freq_khz " -"is not set (defaulting to %d)\n" , +printk (KERN_WARNING "%s() tda10048_config.clk_freq_khz is not set (defaulting to %d)\n" , __func__, config->clk_freq_khz); }
drivers/media/dvb-frontends/ves1820.c +4 -4
@@ -65,8 +65,8 @@ static int ves1820_writereg(struct ves1820_state *state, u8 reg, u8 data) ret =i2c_transfer (state->i2c, &msg,1 );if (ret !=1 ) -printk ("ves1820: %s(): writereg error (reg == 0x%02x, " -"val == 0x%02x, ret == %i)\n" , __func__, reg, data, ret); +printk ("ves1820: %s(): writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n" , + __func__, reg, data, ret);return (ret !=1 ) ? -EREMOTEIO :0 ; }
@@ -84,8 +84,8 @@ static u8 ves1820_readreg(struct ves1820_state *state, u8 reg) ret =i2c_transfer (state->i2c, msg,2 );if (ret !=2 ) -printk ("ves1820: %s(): readreg error (reg == 0x%02x, " -"ret == %i)\n" , __func__, reg, ret); +printk ("ves1820: %s(): readreg error (reg == 0x%02x, ret == %i)\n" , + __func__, reg, ret);return b1[0 ]; }
drivers/media/dvb-frontends/zl10036.c +2 -2
@@ -85,8 +85,8 @@ static int zl10036_read_status_reg(struct zl10036_state *state)deb_i2c ("R(status): %02x [FL=%d]\n" , status, (status &STATUS_FL ) ?1 :0 );if (status &STATUS_POR ) -deb_info ("%s: Power-On-Reset bit enabled - " -"need to initialize the tuner\n" , __func__); +deb_info ("%s: Power-On-Reset bit enabled - need to initialize the tuner\n" , + __func__);return status; }
drivers/media/dvb-frontends/zl10039.c +1 -2
@@ -152,8 +152,7 @@ static int zl10039_init(struct dvb_frontend *fe)/* Reset logic */ ret =zl10039_writereg (state,GENERAL ,0x40 );if (ret <0 ) { -dprintk ("Note: i2c write error normal when resetting the " -"tuner\n" ); +dprintk ("Note: i2c write error normal when resetting the tuner\n" ); }/* Wake up */ ret =zl10039_writereg (state,GENERAL ,0x01 );
Signature · 1 line
2.7.4
PATCH 3/57 firewire: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/firewire/firedtv-avc.c | 5 +++-- drivers/media/firewire/firedtv-rc.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-)
drivers/media/firewire/firedtv-avc.c +3 -2
@@ -1181,8 +1181,9 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int length)if (es_info_length >0 ) { pmt_cmd_id = msg[read_pos++];if (pmt_cmd_id !=1 && pmt_cmd_id !=4 ) -dev_err (fdtv->device,"invalid pmt_cmd_id %d " -"at stream level\n" , pmt_cmd_id); +dev_err (fdtv->device, +"invalid pmt_cmd_id %d at stream level\n" , + pmt_cmd_id);if (es_info_length >sizeof (c->operand) -4 - write_pos) {
drivers/media/firewire/firedtv-rc.c +3 -2
@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)else if (code >=0x4540 && code <=0x4542 ) code = oldtable[code -0x4521 ];else { -printk (KERN_DEBUG "firedtv: invalid key code 0x%04x " -"from remote control\n" , code); +printk (KERN_DEBUG +"firedtv: invalid key code 0x%04x from remote control\n" , + code);return ; }
Signature · 1 line
2.7.4
Re: [PATCH 03/57] [media] firewire: don't break long lines
Hi,
Quoted 7 lines · Mauro Carvalho Chehab
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
I prefer this patch because of the same reason in patch comment.
Quoted 26 lines
--- drivers/media/firewire/firedtv-avc.c | 5 +++-- drivers/media/firewire/firedtv-rc.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/media/firewire/firedtv-avc.c +3
-2@@ -1181,8 +1181,9 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int length)if (es_info_length >0 ) { pmt_cmd_id = msg[read_pos++];if (pmt_cmd_id !=1 && pmt_cmd_id !=4 ) -dev_err (fdtv->device,"invalid pmt_cmd_id %d " -"at stream level\n" , pmt_cmd_id); +dev_err (fdtv->device, +"invalid pmt_cmd_id %d at stream level\n" , + pmt_cmd_id);if (es_info_length >sizeof (c->operand) -4 - write_pos) {drivers/media/firewire/firedtv-rc.c +0
-0
drivers/media/firewire/firedtv-rc.c void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) · line 191
Quoted 10 lines
drivers/media/firewire/firedtv-rc.c +3
-2@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)else if (code >=0x4540 && code <=0x4542 ) code = oldtable[code -0x4521 ];else { -printk (KERN_DEBUG "firedtv: invalid key code 0x%04x " -"from remote control\n" , code); +printk (KERN_DEBUG +"firedtv: invalid key code 0x%04x from remote control\n" , + code);return ; }
Regards
Takashi Sakamoto
Re: [PATCH 03/57] [media] firewire: don't break long lines
Quoted 7 lines · On Oct 15 Takashi Sakamoto wrote:
Quoted 6 lines · Mauro Carvalho Chehab
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Quoted 5 lines
Quoted 1 line
Signed-off-by Mauro Carvalho Chehab <[email protected]>I prefer this patch because of the same reason in patch comment.
Reviewed-by Takashi Sakamoto <[email protected]>
Quoted 45 lines
Quoted 26 lines
--- drivers/media/firewire/firedtv-avc.c | 5 +++-- drivers/media/firewire/firedtv-rc.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/media/firewire/firedtv-avc.c +3
-2@@ -1181,8 +1181,9 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int length)if (es_info_length >0 ) { pmt_cmd_id = msg[read_pos++];if (pmt_cmd_id !=1 && pmt_cmd_id !=4 ) -dev_err (fdtv->device,"invalid pmt_cmd_id %d " -"at stream level\n" , pmt_cmd_id); +dev_err (fdtv->device, +"invalid pmt_cmd_id %d at stream level\n" , + pmt_cmd_id);if (es_info_length >sizeof (c->operand) -4 - write_pos) {drivers/media/firewire/firedtv-rc.c +0
-0drivers/media/firewire/firedtv-rc.c void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) · line 191
Quoted 10 lines
drivers/media/firewire/firedtv-rc.c +3
-2@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)else if (code >=0x4540 && code <=0x4542 ) code = oldtable[code -0x4521 ];else { -printk (KERN_DEBUG "firedtv: invalid key code 0x%04x " -"from remote control\n" , code); +printk (KERN_DEBUG +"firedtv: invalid key code 0x%04x from remote control\n" , + code);return ; }Regards
Takashi Sakamoto
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
Stefan Richter -======----- =-=- -==== http://arcgraph.de/sr/
PATCH 4/57 cx25840: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/i2c/cx25840/cx25840-core.c | 11 +++-------- drivers/media/i2c/cx25840/cx25840-ir.c | 6 ++---- 2 files changed, 5 insertions(+), 12 deletions(-)
drivers/media/i2c/cx25840/cx25840-core.c +3 -8
@@ -873,10 +873,7 @@ void cx25840_std_setup(struct i2c_client *client)"Chroma sub-carrier freq = %d.%06d MHz\n" , fsc / 1000000, fsc % 1000000); -v4l_dbg (1 , cx25840_debug, client,"hblank %i, hactive %i, " -"vblank %i, vactive %i, vblank656 %i, src_dec %i, " -"burst 0x%02x, luma_lpf %i, uv_lpf %i, comb 0x%02x, " -"sc 0x%06x\n" , +v4l_dbg (1 , cx25840_debug, client,"hblank %i, hactive %i, vblank %i, vactive %i, vblank656 %i, src_dec %i, burst 0x%02x, luma_lpf %i, uv_lpf %i, comb 0x%02x, sc 0x%06x\n" , hblank, hactive, vblank, vactive, vblank656, src_decimation, burst, luma_lpf, uv_lpf, comb, sc); }
@@ -5169,11 +5166,9 @@ static int cx25840_probe(struct i2c_client *client, id =CX2310X_AV ; }else if ((device_id &0xff ) == (device_id >>8 )) {v4l_err (client, -"likely a confused/unresponsive cx2388[578] A/V decoder" -" found @ 0x%x (%s)\n" , +"likely a confused/unresponsive cx2388[578] A/V decoder found @ 0x%x (%s)\n" , client->addr <<1 , client->adapter->name); -v4l_err (client,"A method to reset it from the cx25840 driver" -" software is not known at this time\n" ); +v4l_err (client,"A method to reset it from the cx25840 driver software is not known at this time\n" );return -ENODEV ; }else {v4l_dbg (1 , cx25840_debug, client,"cx25840 not found\n" );
drivers/media/i2c/cx25840/cx25840-ir.c +2 -4
@@ -1113,8 +1113,7 @@ int cx25840_ir_log_status(struct v4l2_subdev *sd) j =0 ;break ; } -v4l2_info (sd,"\tNext carrier edge window: 16 clocks " -"-%1d/+%1d, %u to %u Hz\n" , i, j, +v4l2_info (sd,"\tNext carrier edge window: 16 clocks -%1d/+%1d, %u to %u Hz\n" , i, j,clock_divider_to_freq (rxclk,16 + j),clock_divider_to_freq (rxclk,16 - i)); }
@@ -1124,8 +1123,7 @@ int cx25840_ir_log_status(struct v4l2_subdev *sd)v4l2_info (sd,"\tLow pass filter: %s\n" , filtr ?"enabled" :"disabled" );if (filtr) -v4l2_info (sd,"\tMin acceptable pulse width (LPF): %u us, " -"%u ns\n" , +v4l2_info (sd,"\tMin acceptable pulse width (LPF): %u us, %u ns\n" ,lpf_count_to_us (filtr),lpf_count_to_ns (filtr)); v4l2_info(sd, "\tPulse width timer timed-out: %s\n",
Signature · 1 line
2.7.4
PATCH 5/57 smiapp: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/i2c/smiapp/smiapp-regs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/i2c/smiapp/smiapp-regs.c +1 -2
@@ -268,8 +268,7 @@ int smiapp_write_no_quirk(struct smiapp_sensor *sensor, u32 reg, u32 val)if (r ==1 ) {if (retries)dev_err (&client->dev, -"sensor i2c stall encountered. " -"retries: %d\n" , retries); +"sensor i2c stall encountered. retries: %d\n" , retries);return 0 ; }
Signature · 1 line
2.7.4
PATCH 6/57 soc_camera: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/i2c/soc_camera/ov772x.c | 3 +-- drivers/media/i2c/soc_camera/ov9740.c | 3 +-- drivers/media/i2c/soc_camera/tw9910.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-)
drivers/media/i2c/soc_camera/ov772x.c +1 -2
@@ -1064,8 +1064,7 @@ static int ov772x_probe(struct i2c_client *client,if (!i2c_check_functionality (adapter,I2C_FUNC_SMBUS_BYTE_DATA )) {dev_err (&adapter->dev, -"I2C-Adapter doesn't support " -"I2C_FUNC_SMBUS_BYTE_DATA\n" ); +"I2C-Adapter doesn't support I2C_FUNC_SMBUS_BYTE_DATA\n" );return -EIO ; }
drivers/media/i2c/soc_camera/ov9740.c +1 -2
@@ -881,8 +881,7 @@ static int ov9740_video_probe(struct i2c_client *client) goto done; } -dev_info (&client->dev,"ov9740 Model ID 0x%04x, Revision 0x%02x, " -"Manufacturer 0x%02x, SMIA Version 0x%02x\n" , +dev_info (&client->dev,"ov9740 Model ID 0x%04x, Revision 0x%02x, Manufacturer 0x%02x, SMIA Version 0x%02x\n" , priv->model, priv->revision, priv->manid, priv->smiaver); ret =v4l2_ctrl_handler_setup (&priv->hdl);
drivers/media/i2c/soc_camera/tw9910.c +1 -2
@@ -947,8 +947,7 @@ static int tw9910_probe(struct i2c_client *client,if (!i2c_check_functionality (adapter,I2C_FUNC_SMBUS_BYTE_DATA )) {dev_err (&client->dev, -"I2C-Adapter doesn't support " -"I2C_FUNC_SMBUS_BYTE_DATA\n" ); +"I2C-Adapter doesn't support I2C_FUNC_SMBUS_BYTE_DATA\n" );return -EIO ; }
Signature · 1 line
2.7.4
PATCH 7/57 b2c2: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/b2c2/flexcop-dma.c | 6 ++---- drivers/media/pci/b2c2/flexcop-pci.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-)
drivers/media/pci/b2c2/flexcop-dma.c +2 -4
@@ -57,8 +57,7 @@ int flexcop_dma_config(struct flexcop_device *fc, fc->write_ibi_reg (fc,dma2_014,v0x4); fc->write_ibi_reg (fc,dma2_01c,v0xc); }else { -err ("either DMA1 or DMA2 can be configured within one " -"flexcop_dma_config call." ); +err ("either DMA1 or DMA2 can be configured within one flexcop_dma_config call." );return -EINVAL ; }
@@ -82,8 +81,7 @@ int flexcop_dma_xfer_control(struct flexcop_device *fc, r0x0 = dma2_010; r0xc = dma2_01c; }else { -err ("either transfer DMA1 or DMA2 can be started within one " -"flexcop_dma_xfer_control call." ); +err ("either transfer DMA1 or DMA2 can be started within one flexcop_dma_xfer_control call." );return -EINVAL ; }
drivers/media/pci/b2c2/flexcop-pci.c +2 -4
@@ -185,8 +185,7 @@ static irqreturn_t flexcop_pci_isr(int irq, void *dev_id) fc->read_ibi_reg (fc,dma1_008).dma_0x8.dma_cur_addr <<2 ;u32 cur_pos = cur_addr - fc_pci->dma[0 ].dma_addr0; -deb_irq ("%u irq: %08x cur_addr: %llx: cur_pos: %08x, " -"last_cur_pos: %08x " , +deb_irq ("%u irq: %08x cur_addr: %llx: cur_pos: %08x, last_cur_pos: %08x " ,jiffies_to_usecs (jiffies - fc_pci->last_irq), v.raw, (unsigned long long )cur_addr, cur_pos, fc_pci->last_dma1_cur_pos);
@@ -220,8 +219,7 @@ static irqreturn_t flexcop_pci_isr(int irq, void *dev_id) fc_pci->last_dma1_cur_pos = cur_pos; fc_pci->count++; }else { -deb_irq ("isr for flexcop called, " -"apparently without reason (%08x)\n" , v.raw); +deb_irq ("isr for flexcop called, apparently without reason (%08x)\n" , v.raw); ret =IRQ_NONE ; }
Signature · 1 line
2.7.4
PATCH 8/57 bt8xx: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/bt8xx/bttv-cards.c | 9 +++------ drivers/media/pci/bt8xx/bttv-driver.c | 6 ++---- drivers/media/pci/bt8xx/bttv-i2c.c | 6 ++---- drivers/media/pci/bt8xx/bttv-input.c | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-)
drivers/media/pci/bt8xx/bttv-cards.c +3 -6
@@ -125,10 +125,8 @@ module_param_array(remote, int, NULL, 0444);module_param_array (audiodev, int,NULL ,0444 );module_param_array (audiomux, int,NULL ,0444 ); -MODULE_PARM_DESC (triton1,"set ETBF pci config bit " -"[enable bug compatibility for triton1 + others]" ); -MODULE_PARM_DESC (vsfx,"set VSFX pci config bit " -"[yet another chipset flaw workaround]" ); +MODULE_PARM_DESC (triton1,"set ETBF pci config bit [enable bug compatibility for triton1 + others]" ); +MODULE_PARM_DESC (vsfx,"set VSFX pci config bit [yet another chipset flaw workaround]" );MODULE_PARM_DESC (latency,"pci latency timer" );MODULE_PARM_DESC (card,"specify TV/grabber card model, see CARDLIST file for a list" );MODULE_PARM_DESC (pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz, 14=14 MHz)" );
@@ -141,8 +139,7 @@ MODULE_PARM_DESC(audiodev, "specify audio device:\n""\t\t 2 = tda7432\n" "\t\t 3 = tvaudio");MODULE_PARM_DESC (saa6588,"if 1, then load the saa6588 RDS module, default (0) is to use the card definition." ); -MODULE_PARM_DESC (no_overlay,"allow override overlay default (0 disables, 1 enables)" -" [some VIA/SIS chipsets are known to have problem with overlay]" ); +MODULE_PARM_DESC (no_overlay,"allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay]" );/* ----------------------------------------------------------------------- */ /* list of card IDs for bt878+ cards */
drivers/media/pci/bt8xx/bttv-driver.c +2 -4
@@ -148,8 +148,7 @@ MODULE_PARM_DESC(irq_debug, "irq handler debug messages, default is 0 (no)");MODULE_PARM_DESC (disable_ir,"disable infrared remote support" );MODULE_PARM_DESC (gbuffers,"number of capture buffers. range 2-32, default 8" );MODULE_PARM_DESC (gbufsize,"size of the capture buffers, default is 0x208000" ); -MODULE_PARM_DESC (reset_crop,"reset cropping parameters at open(), default " -"is 1 (yes) for compatibility with older applications" ); +MODULE_PARM_DESC (reset_crop,"reset cropping parameters at open(), default is 1 (yes) for compatibility with older applications" );MODULE_PARM_DESC (automute,"mute audio on bad/missing video signal, default is 1 (yes)" );MODULE_PARM_DESC (chroma_agc,"enables the AGC of chroma signal, default is 0 (no)" );MODULE_PARM_DESC (agc_crush,"enables the luminance AGC crush, default is 1 (yes)" );
@@ -3506,8 +3505,7 @@ static void bttv_irq_debug_low_latency(struct bttv *btv, u32 rc) (unsigned long)rc);if (0 == (btread (BT848_DSTATUS ) &BT848_DSTATUS_HLOC )) { -pr_notice ("%d: Oh, there (temporarily?) is no input signal. " -"Ok, then this is harmless, don't worry ;)\n" , +pr_notice ("%d: Oh, there (temporarily?) is no input signal. Ok, then this is harmless, don't worry ;)\n" , btv->c.nr);return ; }
drivers/media/pci/bt8xx/bttv-i2c.c +2 -4
@@ -44,15 +44,13 @@ static int i2c_scan;module_param (i2c_debug, int,0644 );MODULE_PARM_DESC (i2c_debug,"configure i2c debug level" );module_param (i2c_hw, int,0444 ); -MODULE_PARM_DESC (i2c_hw,"force use of hardware i2c support, " -"instead of software bitbang" ); +MODULE_PARM_DESC (i2c_hw,"force use of hardware i2c support, instead of software bitbang" );module_param (i2c_scan, int,0444 );MODULE_PARM_DESC (i2c_scan,"scan i2c bus at insmod time" );static unsigned int i2c_udelay =5 ;module_param (i2c_udelay, int,0444 ); -MODULE_PARM_DESC (i2c_udelay,"soft i2c delay at insmod time, in usecs " -"(should be 5 or higher). Lower value means higher bus speed." ); +MODULE_PARM_DESC (i2c_udelay,"soft i2c delay at insmod time, in usecs (should be 5 or higher). Lower value means higher bus speed." );/* ----------------------------------------------------------------------- */ /* I2C functions - bitbanging adapter (software i2c) */
drivers/media/pci/bt8xx/bttv-input.c +1 -2
@@ -185,8 +185,7 @@ static u32 bttv_rc5_decode(unsigned int code)return 0 ; } } -dprintk ("code=%x, rc5=%x, start=%x, toggle=%x, address=%x, " -"instr=%x\n" , rc5, org_code,RC5_START (rc5), +dprintk ("code=%x, rc5=%x, start=%x, toggle=%x, address=%x, instr=%x\n" , rc5, org_code,RC5_START (rc5),RC5_TOGGLE (rc5),RC5_ADDR (rc5),RC5_INSTR (rc5));return rc5; }
Signature · 1 line
2.7.4
PATCH 9/57 cx18: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/cx18/cx18-alsa-main.c | 6 ++---- drivers/media/pci/cx18/cx18-av-core.c | 14 ++++--------- drivers/media/pci/cx18/cx18-av-firmware.c | 3 +-- drivers/media/pci/cx18/cx18-controls.c | 9 +++----- drivers/media/pci/cx18/cx18-driver.c | 30 +++++++++----------------- drivers/media/pci/cx18/cx18-dvb.c | 6 ++---- drivers/media/pci/cx18/cx18-fileops.c | 6 ++---- drivers/media/pci/cx18/cx18-ioctl.c | 6 ++---- drivers/media/pci/cx18/cx18-irq.c | 3 +-- drivers/media/pci/cx18/cx18-mailbox.c | 35 +++++++++---------------------- drivers/media/pci/cx18/cx18-queue.c | 7 ++----- drivers/media/pci/cx18/cx18-streams.c | 6 ++---- 12 files changed, 41 insertions(+), 90 deletions(-)
drivers/media/pci/cx18/cx18-alsa-main.c +2 -4
@@ -217,8 +217,7 @@ static int cx18_alsa_load(struct cx18 *cx) s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM ];if (s->video_dev.v4l2_dev ==NULL ) { -CX18_DEBUG_ALSA_INFO ("%s: PCM stream for card is disabled - " -"skipping\n" , __func__); +CX18_DEBUG_ALSA_INFO ("%s: PCM stream for card is disabled - skipping\n" , __func__);return 0 ; }
@@ -232,8 +231,7 @@ static int cx18_alsa_load(struct cx18 *cx)CX18_ALSA_ERR ("%s: failed to create struct snd_cx18_card\n" , __func__); }else { -CX18_DEBUG_ALSA_INFO ("%s: created cx18 ALSA interface instance " -"\n" , __func__); +CX18_DEBUG_ALSA_INFO ("%s: created cx18 ALSA interface instance \n" , __func__); }return 0 ; }
drivers/media/pci/cx18/cx18-av-core.c +4 -10
@@ -468,21 +468,16 @@ void cx18_av_std_setup(struct cx18 *cx)CX18_DEBUG_INFO_DEV (sd,"Pixel rate = %d.%06d Mpixel/sec\n" , pll /8000000 , (pll /8 ) %1000000 ); -CX18_DEBUG_INFO_DEV (sd,"ADC XTAL/pixel clock decimation ratio " -"= %d.%03d\n" , src_decimation /256 , +CX18_DEBUG_INFO_DEV (sd,"ADC XTAL/pixel clock decimation ratio = %d.%03d\n" , src_decimation /256 , ((src_decimation %256 ) *1000 ) /256 ); tmp =28636360 * (u64 ) sc;do_div (tmp, src_decimation); fsc = tmp >>13 ;CX18_DEBUG_INFO_DEV (sd, -"Chroma sub-carrier initial freq = %d.%06d " -"MHz\n" , fsc /1000000 , fsc %1000000 ); +"Chroma sub-carrier initial freq = %d.%06d MHz\n" , fsc /1000000 , fsc %1000000 ); -CX18_DEBUG_INFO_DEV (sd,"hblank %i, hactive %i, vblank %i, " -"vactive %i, vblank656 %i, src_dec %i, " -"burst 0x%02x, luma_lpf %i, uv_lpf %i, " -"comb 0x%02x, sc 0x%06x\n" , +CX18_DEBUG_INFO_DEV (sd,"hblank %i, hactive %i, vblank %i, vactive %i, vblank656 %i, src_dec %i, burst 0x%02x, luma_lpf %i, uv_lpf %i, comb 0x%02x, sc 0x%06x\n" , hblank, hactive, vblank, vactive, vblank656, src_decimation, burst, luma_lpf, uv_lpf, comb, sc);
@@ -1069,8 +1064,7 @@ static void log_video_status(struct cx18 *cx)CX18_INFO_DEV (sd,"Specified video input: Composite %d\n" , vid_input -CX18_AV_COMPOSITE1 +1 ); }else { -CX18_INFO_DEV (sd,"Specified video input: " -"S-Video (Luma In%d, Chroma In%d)\n" , +CX18_INFO_DEV (sd,"Specified video input: S-Video (Luma In%d, Chroma In%d)\n" , (vid_input &0xf0 ) >>4 , (vid_input &0xf00 ) >>8 ); }
drivers/media/pci/cx18/cx18-av-firmware.c +1 -2
@@ -61,8 +61,7 @@ static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) dl_control &=0xffff3fff ;/* ignore top 2 bits of address */ expected =0x0f000000 | ((u32 )data[addr] <<16 ) | addr;if (expected != dl_control) { -CX18_ERR_DEV (sd,"verification of %s firmware load " -"failed: expected %#010x got %#010x\n" , +CX18_ERR_DEV (sd,"verification of %s firmware load failed: expected %#010x got %#010x\n" ,FWFILE , expected, dl_control); ret = -EIO ;break ;
drivers/media/pci/cx18/cx18-controls.c +3 -6
@@ -44,8 +44,7 @@ static int cx18_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) type == V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD)) {/* Only IVTV fmt VBI insertion & only MPEG-2 PS type streams */ cx->vbi.insert_mpeg =V4L2_MPEG_STREAM_VBI_FMT_NONE ; -CX18_DEBUG_INFO ("disabled insertion of sliced VBI data into " -"the MPEG stream\n" ); +CX18_DEBUG_INFO ("disabled insertion of sliced VBI data into the MPEG stream\n" );return 0 ; }
@@ -63,16 +62,14 @@ static int cx18_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) } cx->vbi.insert_mpeg =V4L2_MPEG_STREAM_VBI_FMT_NONE ; -CX18_WARN ("Unable to allocate buffers for " -"sliced VBI data insertion\n" ); +CX18_WARN ("Unable to allocate buffers for sliced VBI data insertion\n" );return -ENOMEM ; } } } cx->vbi.insert_mpeg = fmt; -CX18_DEBUG_INFO ("enabled insertion of sliced VBI data into the MPEG PS," -"when sliced VBI is enabled\n" ); +CX18_DEBUG_INFO ("enabled insertion of sliced VBI data into the MPEG PS,when sliced VBI is enabled\n" );/* * If our current settings have no lines set for capture, store a valid,
drivers/media/pci/cx18/cx18-driver.c +10 -20
@@ -405,8 +405,7 @@ static void cx18_process_eeprom(struct cx18 *cx)CX18_ERR ("Invalid EEPROM\n" );return ;default : -CX18_ERR ("Unknown model %d, defaulting to original HVR-1600 " -"(cardtype=1)\n" , tv.model); +CX18_ERR ("Unknown model %d, defaulting to original HVR-1600 (cardtype=1)\n" , tv.model); cx->card =cx18_get_card (CX18_CARD_HVR_1600_ESMT );break ; }
@@ -635,8 +634,7 @@ static void cx18_process_options(struct cx18 *cx)/* convert from kB to bytes */ cx->stream_buf_size[i] *=1024 ; } -CX18_DEBUG_INFO ("Stream type %d options: %d MB, %d buffers, " -"%d bytes\n" , i, cx->options.megabytes[i], +CX18_DEBUG_INFO ("Stream type %d options: %d MB, %d buffers, %d bytes\n" , i, cx->options.megabytes[i], cx->stream_buffers[i], cx->stream_buf_size[i]); }
@@ -838,14 +836,12 @@ static int cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev,pci_read_config_byte (pci_dev,PCI_LATENCY_TIMER , &pci_latency);if (pci_latency <64 && cx18_pci_latency) { -CX18_INFO ("Unreasonably low latency timer, " -"setting to 64 (was %d)\n" , pci_latency); +CX18_INFO ("Unreasonably low latency timer, setting to 64 (was %d)\n" , pci_latency);pci_write_config_byte (pci_dev,PCI_LATENCY_TIMER ,64 );pci_read_config_byte (pci_dev,PCI_LATENCY_TIMER , &pci_latency); } -CX18_DEBUG_INFO ("cx%d (rev %d) at %02x:%02x.%x, " -"irq: %d, latency: %d, memory: 0x%llx\n" , +CX18_DEBUG_INFO ("cx%d (rev %d) at %02x:%02x.%x, irq: %d, latency: %d, memory: 0x%llx\n" , cx->pci_dev->device, cx->card_rev, pci_dev->bus->number,PCI_SLOT (pci_dev->devfn),PCI_FUNC (pci_dev->devfn), cx->pci_dev->irq, pci_latency, (u64 )cx->base_addr);
@@ -910,8 +906,7 @@ static int cx18_probe(struct pci_dev *pci_dev,/* FIXME - module parameter arrays constrain max instances */ i =atomic_inc_return (&cx18_instance) -1 ;if (i >=CX18_MAX_CARDS ) { -printk (KERN_ERR "cx18: cannot manage card %d, driver has a " -"limit of 0 - %d\n" , i,CX18_MAX_CARDS -1 ); +printk (KERN_ERR "cx18: cannot manage card %d, driver has a limit of 0 - %d\n" , i,CX18_MAX_CARDS -1 );return -ENOMEM ; }
@@ -926,8 +921,7 @@ static int cx18_probe(struct pci_dev *pci_dev, retval =v4l2_device_register (&pci_dev->dev, &cx->v4l2_dev);if (retval) { -printk (KERN_ERR "cx18: v4l2_device_register of card %d failed" -"\n" , cx->instance); +printk (KERN_ERR "cx18: v4l2_device_register of card %d failed\n" , cx->instance);kfree (cx);return retval; }
@@ -958,13 +952,10 @@ static int cx18_probe(struct pci_dev *pci_dev, cx->enc_mem =ioremap_nocache (cx->base_addr +CX18_MEM_OFFSET ,CX18_MEM_SIZE );if (!cx->enc_mem) { -CX18_ERR ("ioremap failed. Can't get a window into CX23418 " -"memory and register space\n" ); -CX18_ERR ("Each capture card with a CX23418 needs 64 MB of " -"vmalloc address space for the window\n" ); +CX18_ERR ("ioremap failed. Can't get a window into CX23418 memory and register space\n" ); +CX18_ERR ("Each capture card with a CX23418 needs 64 MB of vmalloc address space for the window\n" );CX18_ERR ("Check the output of 'grep Vmalloc /proc/meminfo'\n" ); -CX18_ERR ("Use the vmalloc= kernel command line option to set " -"VmallocTotal to a larger value\n" ); +CX18_ERR ("Use the vmalloc= kernel command line option to set VmallocTotal to a larger value\n" ); retval = -ENOMEM ; goto free_mem; }
@@ -1000,8 +991,7 @@ static int cx18_probe(struct pci_dev *pci_dev,/* Initialize GPIO Reset Controller to do chip resets during i2c init */ if (cx->card->hw_all &CX18_HW_GPIO_RESET_CTRL ) {if (cx18_gpio_register (cx,CX18_HW_GPIO_RESET_CTRL ) !=0 ) -CX18_WARN ("Could not register GPIO reset controller" -"subdevice; proceeding anyway.\n" ); +CX18_WARN ("Could not register GPIO reset controllersubdevice; proceeding anyway.\n" );else cx->hw_flags |=CX18_HW_GPIO_RESET_CTRL ; }
drivers/media/pci/cx18/cx18-dvb.c +2 -4
@@ -155,10 +155,8 @@ static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream, }if (ret) { -CX18_ERR ("The MPC718 board variant with the MT352 DVB-T" -"demodualtor will not work without it\n" ); -CX18_ERR ("Run 'linux/Documentation/dvb/get_dvb_firmware " -"mpc718' if you need the firmware\n" ); +CX18_ERR ("The MPC718 board variant with the MT352 DVB-Tdemodualtor will not work without it\n" ); +CX18_ERR ("Run 'linux/Documentation/dvb/get_dvb_firmware mpc718' if you need the firmware\n" ); }return ret; }
drivers/media/pci/cx18/cx18-fileops.c +2 -4
@@ -49,8 +49,7 @@ int cx18_claim_stream(struct cx18_open_id *id, int type)/* Nothing should ever try to directly claim the IDX stream */ if (type ==CX18_ENC_STREAM_TYPE_IDX ) { -CX18_WARN ("MPEG Index stream cannot be claimed " -"directly, but something tried.\n" ); +CX18_WARN ("MPEG Index stream cannot be claimed directly, but something tried.\n" );return -EINVAL ; }
@@ -728,8 +727,7 @@ void cx18_stop_capture(struct cx18_open_id *id, int gop_end)/* Stop internal use associated VBI and IDX streams */ if (test_bit (CX18_F_S_STREAMING , &s_vbi->s_flags) && !test_bit (CX18_F_S_APPL_IO , &s_vbi->s_flags)) { -CX18_DEBUG_INFO ("close stopping embedded VBI " -"capture\n" ); +CX18_DEBUG_INFO ("close stopping embedded VBI capture\n" );cx18_stop_v4l2_encode_stream (s_vbi,0 ); }if (test_bit (CX18_F_S_STREAMING , &s_idx->s_flags)) {
drivers/media/pci/cx18/cx18-ioctl.c +2 -4
@@ -951,8 +951,7 @@ static int cx18_encoder_cmd(struct file *file, void *fh,return 0 ; h =cx18_find_handle (cx);if (h ==CX18_INVALID_TASK_HANDLE ) { -CX18_ERR ("Can't find valid task handle for " -"V4L2_ENC_CMD_PAUSE\n" ); +CX18_ERR ("Can't find valid task handle for V4L2_ENC_CMD_PAUSE\n" );return -EBADFD ; }cx18_mute (cx);
@@ -968,8 +967,7 @@ static int cx18_encoder_cmd(struct file *file, void *fh,return 0 ; h =cx18_find_handle (cx);if (h ==CX18_INVALID_TASK_HANDLE ) { -CX18_ERR ("Can't find valid task handle for " -"V4L2_ENC_CMD_RESUME\n" ); +CX18_ERR ("Can't find valid task handle for V4L2_ENC_CMD_RESUME\n" );return -EBADFD ; }cx18_vapi (cx,CX18_CPU_CAPTURE_RESUME ,1 , h);
drivers/media/pci/cx18/cx18-irq.c +1 -2
@@ -59,8 +59,7 @@ irqreturn_t cx18_irq_handler(int irq, void *dev_id)cx18_write_reg_expect (cx, hw2,HW2_INT_CLR_STATUS , ~hw2, hw2);if (sw1 || sw2 || hw2) -CX18_DEBUG_HI_IRQ ("received interrupts " -"SW1: %x SW2: %x HW2: %x\n" , sw1, sw2, hw2); +CX18_DEBUG_HI_IRQ ("received interrupts SW1: %x SW2: %x HW2: %x\n" , sw1, sw2, hw2);/* * SW1 responses have to happen first. The sending XPU times out the
drivers/media/pci/cx18/cx18-mailbox.c +10 -25
@@ -123,8 +123,7 @@ static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name)if (!(cx18_debug &CX18_DBGFLG_API ))return ; -CX18_DEBUG_API ("%s: req %#010x ack %#010x cmd %#010x err %#010x args%s" -"\n" , name, mb->request, mb->ack, mb->cmd, mb->error, +CX18_DEBUG_API ("%s: req %#010x ack %#010x cmd %#010x err %#010x args%s\n" , name, mb->request, mb->ack, mb->cmd, mb->error,u32arr2hex (mb->args,MAX_MB_ARGUMENTS , argstr)); }
@@ -255,8 +254,7 @@ static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) s =cx18_handle_to_stream (cx, handle);if (s ==NULL ) { -CX18_WARN ("Got DMA done notification for unknown/inactive" -" handle %d, %s mailbox seq no %d\n" , handle, +CX18_WARN ("Got DMA done notification for unknown/inactive handle %d, %s mailbox seq no %d\n" , handle, (order->flags &CX18_F_EWO_MB_STALE_UPON_RECEIPT ) ?"stale" :"good" , mb->request);return ;
@@ -290,9 +288,7 @@ static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order)if ((order->flags &CX18_F_EWO_MB_STALE_UPON_RECEIPT ) && !(id >= s->mdl_base_idx && id < (s->mdl_base_idx + s->buffers))) { -CX18_WARN ("Fell behind! Ignoring stale mailbox with " -" inconsistent data. Lost MDL for mailbox " -"seq no %d\n" , mb->request); +CX18_WARN ("Fell behind! Ignoring stale mailbox with inconsistent data. Lost MDL for mailbox seq no %d\n" , mb->request);break ; } mdl =cx18_queue_get_mdl (s, id, mdl_ack->data_used);
@@ -418,9 +414,7 @@ static void mb_ack_irq(struct cx18 *cx, struct cx18_in_work_order *order)/* Don't ack if the RPU has gotten impatient and timed us out */ if (req !=cx18_readl (cx, &ack_mb->request) || req ==cx18_readl (cx, &ack_mb->ack)) { -CX18_DEBUG_WARN ("Possibly falling behind: %s self-ack'ed our " -"incoming %s to EPU mailbox (sequence no. %u) " -"while processing\n" , +CX18_DEBUG_WARN ("Possibly falling behind: %s self-ack'ed our incoming %s to EPU mailbox (sequence no. %u) while processing\n" , rpu_str[order->rpu], rpu_str[order->rpu], req); order->flags |=CX18_F_EWO_MB_STALE_WHILE_PROC ;return ;
@@ -555,8 +549,7 @@ void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu) order =alloc_in_work_order_irq (cx);if (order ==NULL ) { -CX18_WARN ("Unable to find blank work order form to schedule " -"incoming mailbox command processing\n" ); +CX18_WARN ("Unable to find blank work order form to schedule incoming mailbox command processing\n" );return ; }
@@ -573,9 +566,7 @@ void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu) (&order_mb->request)[i] =cx18_readl (cx, &mb->request + i);if (order_mb->request == order_mb->ack) { -CX18_DEBUG_WARN ("Possibly falling behind: %s self-ack'ed our " -"incoming %s to EPU mailbox (sequence no. %u)" -"\n" , +CX18_DEBUG_WARN ("Possibly falling behind: %s self-ack'ed our incoming %s to EPU mailbox (sequence no. %u)\n" , rpu_str[rpu], rpu_str[rpu], order_mb->request);if (cx18_debug &CX18_DBGFLG_WARN )dump_mb (cx, order_mb,"incoming" );
@@ -663,8 +654,7 @@ static int cx18_api_call(struct cx18 *cx, u32 cmd, int args, u32 data[])if (req != ack) {/* waited long enough, make the mbox "not busy" from our end */ cx18_writel (cx, req, &mb->ack); -CX18_ERR ("mbox was found stuck busy when setting up for %s; " -"clearing busy and trying to proceed\n" , info->name); +CX18_ERR ("mbox was found stuck busy when setting up for %s; clearing busy and trying to proceed\n" , info->name); }else if (ret != timeout)CX18_DEBUG_API ("waited %u msecs for busy mbox to be acked\n" ,jiffies_to_msecs (timeout-ret));
@@ -707,14 +697,10 @@ static int cx18_api_call(struct cx18 *cx, u32 cmd, int args, u32 data[])mutex_unlock (mb_lock);if (ret >= timeout) {/* Timed out */ -CX18_DEBUG_WARN ("sending %s timed out waiting %d msecs " -"for RPU acknowledgement\n" , +CX18_DEBUG_WARN ("sending %s timed out waiting %d msecs for RPU acknowledgement\n" , info->name,jiffies_to_msecs (ret)); }else { -CX18_DEBUG_WARN ("woken up before mailbox ack was ready " -"after submitting %s to RPU. only " -"waited %d msecs on req %u but awakened" -" with unmatched ack %u\n" , +CX18_DEBUG_WARN ("woken up before mailbox ack was ready after submitting %s to RPU. only waited %d msecs on req %u but awakened with unmatched ack %u\n" , info->name,jiffies_to_msecs (ret), req, ack);
@@ -723,8 +709,7 @@ static int cx18_api_call(struct cx18 *cx, u32 cmd, int args, u32 data[]) }if (ret >= timeout) -CX18_DEBUG_WARN ("failed to be awakened upon RPU acknowledgment " -"sending %s; timed out waiting %d msecs\n" , +CX18_DEBUG_WARN ("failed to be awakened upon RPU acknowledgment sending %s; timed out waiting %d msecs\n" , info->name,jiffies_to_msecs (ret));else CX18_DEBUG_HI_API("waited %u msecs for %s to be acked\n",
drivers/media/pci/cx18/cx18-queue.c +2 -5
@@ -164,9 +164,7 @@ struct cx18_mdl *cx18_queue_get_mdl(struct cx18_stream *s, u32 id, mdl->skipped++;if (mdl->skipped >=atomic_read (&s->q_busy.depth)-1 ) {/* mdl must have fallen out of rotation */ -CX18_WARN ("Skipped %s, MDL %d, %d " -"times - it must have dropped out of " -"rotation\n" , s->name, mdl->id, +CX18_WARN ("Skipped %s, MDL %d, %d times - it must have dropped out of rotation\n" , s->name, mdl->id, mdl->skipped);/* Sweep it up to put it back into rotation */ list_move_tail (&mdl->list, &sweep_up);
@@ -352,8 +350,7 @@ int cx18_stream_alloc(struct cx18_stream *s)if (s->buffers ==0 )return 0 ; -CX18_DEBUG_INFO ("Allocate %s stream: %d x %d buffers " -"(%d.%02d kB total)\n" , +CX18_DEBUG_INFO ("Allocate %s stream: %d x %d buffers (%d.%02d kB total)\n" , s->name, s->buffers, s->buf_size, s->buffers * s->buf_size /1024 , (s->buffers * s->buf_size *100 /1024 ) %100 );
drivers/media/pci/cx18/cx18-streams.c +2 -4
@@ -353,8 +353,7 @@ static int cx18_prep_dev(struct cx18 *cx, int type)if (cx->card->hw_all &CX18_HW_DVB ) { s->dvb =kzalloc (sizeof (struct cx18_dvb ),GFP_KERNEL );if (s->dvb ==NULL ) { -CX18_ERR ("Couldn't allocate cx18_dvb structure" -" for %s\n" , s->name); +CX18_ERR ("Couldn't allocate cx18_dvb structure for %s\n" , s->name);return -ENOMEM ; } }else {
@@ -462,8 +461,7 @@ static int cx18_reg_dev(struct cx18 *cx, int type)case VFL_TYPE_VBI :if (cx->stream_buffers[type]) -CX18_INFO ("Registered device %s for %s " -"(%d x %d bytes)\n" , +CX18_INFO ("Registered device %s for %s (%d x %d bytes)\n" , name, s->name, cx->stream_buffers[type], cx->stream_buf_size[type]);else
Signature · 1 line
2.7.4
PATCH 10/57 cx23885: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/cx23885/cimax2.c | 4 +--- drivers/media/pci/cx23885/cx23885-417.c | 15 +++++---------- drivers/media/pci/cx23885/cx23885-alsa.c | 12 ++++-------- drivers/media/pci/cx23885/cx23885-cards.c | 7 ++----- drivers/media/pci/cx23885/cx23885-core.c | 12 ++++-------- drivers/media/pci/cx23885/cx23885-dvb.c | 3 +-- drivers/media/pci/cx23885/cx23885-video.c | 3 +-- drivers/media/pci/cx23885/cx23888-ir.c | 6 ++---- 8 files changed, 20 insertions(+), 42 deletions(-)
drivers/media/pci/cx23885/cimax2.c +1 -3
@@ -365,9 +365,7 @@ static void netup_read_ci_status(struct work_struct *work)if (ret !=0 )return ; -ci_dbg_print ("%s: Slot Status Addr=[0x%04x], " -"Reg=[0x%02x], data=%02x, " -"TS config = %02x\n" , __func__, +ci_dbg_print ("%s: Slot Status Addr=[0x%04x], Reg=[0x%02x], data=%02x, TS config = %02x\n" , __func__, state->ci_i2c_addr,0 , buf[0 ], buf[0 ]);
drivers/media/pci/cx23885/cx23885-417.c +5 -10
@@ -770,8 +770,7 @@ static int cx23885_mbox_func(void *priv,mc417_memory_read (dev, dev->cx23417_mailbox -4 , &value);if (value !=0x12345678 ) {printk (KERN_ERR -"Firmware and/or mailbox pointer not initialized " -"or corrupted, signature = 0x%x, cmd = %s\n" , value, +"Firmware and/or mailbox pointer not initialized or corrupted, signature = 0x%x, cmd = %s\n" , value,cmd_to_str (command));return -1 ; }
@@ -781,8 +780,7 @@ static int cx23885_mbox_func(void *priv,*/ mc417_memory_read (dev, dev->cx23417_mailbox, &flag);if (flag) { -printk (KERN_ERR "ERROR: Mailbox appears to be in use " -"(%x), cmd = %s\n" , flag,cmd_to_str (command)); +printk (KERN_ERR "ERROR: Mailbox appears to be in use (%x), cmd = %s\n" , flag,cmd_to_str (command));return -1 ; }
@@ -935,14 +933,12 @@ static int cx23885_load_firmware(struct cx23885_dev *dev)printk (KERN_ERR "ERROR: Hotplug firmware request failed (%s).\n" ,CX23885_FIRM_IMAGE_NAME ); -printk (KERN_ERR "Please fix your hotplug setup, the board will " -"not work without firmware loaded!\n" ); +printk (KERN_ERR "Please fix your hotplug setup, the board will not work without firmware loaded!\n" );return -1 ; }if (firmware->size !=CX23885_FIRM_IMAGE_SIZE ) { -printk (KERN_ERR "ERROR: Firmware size mismatch " -"(have %zu, expected %d)\n" , +printk (KERN_ERR "ERROR: Firmware size mismatch (have %zu, expected %d)\n" , firmware->size,CX23885_FIRM_IMAGE_SIZE );release_firmware (firmware);return -1 ;
@@ -1077,8 +1073,7 @@ static int cx23885_initialize_codec(struct cx23885_dev *dev, int startencoder) retval =cx23885_api_cmd (dev,CX2341X_ENC_GET_VERSION ,0 ,1 , &version);if (retval <0 ) { -printk (KERN_ERR "ERROR: cx23417 firmware get encoder :" -"version failed!\n" ); +printk (KERN_ERR "ERROR: cx23417 firmware get encoder :version failed!\n" );return -1 ; }dprintk (1 ,"cx23417 firmware version is 0x%08x\n" , version);
drivers/media/pci/cx23885/cx23885-alsa.c +4 -8
@@ -186,8 +186,7 @@ static int cx23885_start_audio_dma(struct cx23885_audio_dev *chip)cx_write (AUD_INT_A_GPCNT_CTL ,GP_COUNT_CONTROL_RESET );atomic_set (&chip->count,0 ); -dprintk (1 ,"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d " -"byte buffer\n" , buf->bpl,cx_read (audio_ch->cmds_start+12 )>>1 , +dprintk (1 ,"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d byte buffer\n" , buf->bpl,cx_read (audio_ch->cmds_start+12 )>>1 , chip->num_periods, buf->bpl * chip->num_periods);/* Enables corresponding bits at AUD_INT_STAT */
@@ -327,8 +326,7 @@ static int snd_cx23885_pcm_open(struct snd_pcm_substream *substream)int err;if (!chip) { -printk (KERN_ERR "BUG: cx23885 can't find device struct." -" Can't proceed with open\n" ); +printk (KERN_ERR "BUG: cx23885 can't find device struct. Can't proceed with open\n" );return -ENODEV ; }
@@ -555,8 +553,7 @@ struct cx23885_audio_dev *cx23885_audio_register(struct cx23885_dev *dev)return NULL ;if (dev->sram_channels[AUDIO_SRAM_CHANNEL ].cmds_start ==0 ) { -printk (KERN_WARNING "%s(): Missing SRAM channel configuration " -"for analog TV Audio\n" , __func__); +printk (KERN_WARNING "%s(): Missing SRAM channel configuration for analog TV Audio\n" , __func__);return NULL ; }
@@ -590,8 +587,7 @@ struct cx23885_audio_dev *cx23885_audio_register(struct cx23885_dev *dev) error:snd_card_free (card); -printk (KERN_ERR "%s(): Failed to register analog " -"audio adapter\n" , __func__); +printk (KERN_ERR "%s(): Failed to register analog audio adapter\n" , __func__);return NULL ; }
drivers/media/pci/cx23885/cx23885-cards.c +2 -5
@@ -1304,8 +1304,7 @@ static void hauppauge_eeprom(struct cx23885_dev *dev, u8 *eeprom_data)*/ break ;default : -printk (KERN_WARNING "%s: warning: " -"unknown hauppauge model #%d\n" , +printk (KERN_WARNING "%s: warning: unknown hauppauge model #%d\n" , dev->name, tv.model);break ; }
@@ -2342,9 +2341,7 @@ void cx23885_card_setup(struct cx23885_dev *dev) ret =request_firmware (&fw, filename, &dev->pci->dev);if (ret !=0 ) -printk (KERN_ERR "did not find the firmware file. (%s) " -"Please see linux/Documentation/dvb/ for more details " -"on firmware-problems." , filename); +printk (KERN_ERR "did not find the firmware file. (%s) Please see linux/Documentation/dvb/ for more details on firmware-problems." , filename);else altera_init (&netup_config, fw);
drivers/media/pci/cx23885/cx23885-core.c +4 -8
@@ -915,8 +915,7 @@ static int cx23885_dev_setup(struct cx23885_dev *dev)cx23885_init_tsport (dev, &dev->ts2,2 );if (get_resources (dev) <0 ) { -printk (KERN_ERR "CORE %s No more PCIe resources for " -"subsystem: %04x:%04x\n" , +printk (KERN_ERR "CORE %s No more PCIe resources for subsystem: %04x:%04x\n" , dev->name, dev->pci->subsystem_vendor, dev->pci->subsystem_device);
@@ -980,8 +979,7 @@ static int cx23885_dev_setup(struct cx23885_dev *dev)if (cx23885_boards[dev->board].porta ==CX23885_ANALOG_VIDEO ) {if (cx23885_video_register (dev) <0 ) { -printk (KERN_ERR "%s() Failed to register analog " -"video adapters on VID_A\n" , __func__); +printk (KERN_ERR "%s() Failed to register analog video adapters on VID_A\n" , __func__); } }
@@ -1579,8 +1577,7 @@ int cx23885_irq_417(struct cx23885_dev *dev, u32 status) (status & VID_B_MSK_VBI_SYNC) || (status & VID_B_MSK_OF) || (status & VID_B_MSK_VBI_OF)) { -printk (KERN_ERR "%s: V4L mpeg risc op code error, status " -"= 0x%x\n" , dev->name, status); +printk (KERN_ERR "%s: V4L mpeg risc op code error, status = 0x%x\n" , dev->name, status);if (status &VID_B_MSK_BAD_PKT )dprintk (1 ," VID_B_MSK_BAD_PKT\n" );if (status &VID_B_MSK_OPC_ERR )
@@ -1995,8 +1992,7 @@ static int cx23885_initdev(struct pci_dev *pci_dev,/* print pci info */ dev->pci_rev = pci_dev->revision;pci_read_config_byte (pci_dev,PCI_LATENCY_TIMER , &dev->pci_lat); -printk (KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, " -"latency: %d, mmio: 0x%llx\n" , dev->name, +printk (KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n" , dev->name,pci_name (pci_dev), dev->pci_rev, pci_dev->irq, dev->pci_lat, (unsigned long long )pci_resource_start (pci_dev,0 ));
drivers/media/pci/cx23885/cx23885-dvb.c +1 -2
@@ -2482,8 +2482,7 @@ static int dvb_register(struct cx23885_tsport *port)break ;default : -printk (KERN_INFO "%s: The frontend of your DVB/ATSC card " -" isn't supported yet\n" , +printk (KERN_INFO "%s: The frontend of your DVB/ATSC card isn't supported yet\n" , dev->name);break ; }
drivers/media/pci/cx23885/cx23885-video.c +1 -2
@@ -1065,8 +1065,7 @@ int cx23885_video_irq(struct cx23885_dev *dev, u32 status) }if (status &VID_BC_MSK_SYNC ) -dprintk (7 ," (VID_BC_MSK_SYNC 0x%08x) " -"video lines miss-match\n" , +dprintk (7 ," (VID_BC_MSK_SYNC 0x%08x) video lines miss-match\n" ,VID_BC_MSK_SYNC );if (status &VID_BC_MSK_OF )
drivers/media/pci/cx23885/cx23888-ir.c +2 -4
@@ -1015,8 +1015,7 @@ static int cx23888_ir_log_status(struct v4l2_subdev *sd) j =0 ;break ; } -v4l2_info (sd,"\tNext carrier edge window: 16 clocks " -"-%1d/+%1d, %u to %u Hz\n" , i, j, +v4l2_info (sd,"\tNext carrier edge window: 16 clocks -%1d/+%1d, %u to %u Hz\n" , i, j,clock_divider_to_freq (rxclk,16 + j),clock_divider_to_freq (rxclk,16 - i)); }
@@ -1026,8 +1025,7 @@ static int cx23888_ir_log_status(struct v4l2_subdev *sd)v4l2_info (sd,"\tLow pass filter: %s\n" , filtr ?"enabled" :"disabled" );if (filtr) -v4l2_info (sd,"\tMin acceptable pulse width (LPF): %u us, " -"%u ns\n" , +v4l2_info (sd,"\tMin acceptable pulse width (LPF): %u us, %u ns\n" ,lpf_count_to_us (filtr),lpf_count_to_ns (filtr)); v4l2_info(sd, "\tPulse width timer timed-out: %s\n",
Signature · 1 line
2.7.4
PATCH 11/57 cx88: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/cx88/cx88-alsa.c | 13 ++++--------- drivers/media/pci/cx88/cx88-cards.c | 12 ++++-------- drivers/media/pci/cx88/cx88-dsp.c | 9 +++------ drivers/media/pci/cx88/cx88-dvb.c | 6 ++---- drivers/media/pci/cx88/cx88-i2c.c | 3 +-- drivers/media/pci/cx88/cx88-mpeg.c | 12 ++++-------- drivers/media/pci/cx88/cx88-tvaudio.c | 6 ++---- drivers/media/pci/cx88/cx88-video.c | 3 +-- 8 files changed, 21 insertions(+), 43 deletions(-)
drivers/media/pci/cx88/cx88-alsa.c +4 -9
@@ -120,9 +120,7 @@ MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");MODULE_LICENSE ("GPL" );MODULE_VERSION (CX88_VERSION ); -MODULE_SUPPORTED_DEVICE ("{{Conexant,23881}," -"{{Conexant,23882}," -"{{Conexant,23883}" ); +MODULE_SUPPORTED_DEVICE ("{{Conexant,23881},{{Conexant,23882},{{Conexant,23883}" );static unsigned int debug;module_param (debug,int,0644 );MODULE_PARM_DESC (debug,"enable debug messages" );
@@ -154,8 +152,7 @@ static int _cx88_start_audio_dma(snd_cx88_card_t *chip)cx_write (MO_AUDD_GPCNTRL ,GP_COUNT_CONTROL_RESET );atomic_set (&chip->count,0 ); -dprintk (1 ,"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d " -"byte buffer\n" , buf->bpl,cx_read (audio_ch->cmds_start +8 )>>1 , +dprintk (1 ,"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d byte buffer\n" , buf->bpl,cx_read (audio_ch->cmds_start +8 )>>1 , chip->num_periods, buf->bpl * chip->num_periods);/* Enables corresponding bits at AUD_INT_STAT */
@@ -425,8 +422,7 @@ static int snd_cx88_pcm_open(struct snd_pcm_substream *substream)int err;if (!chip) { -printk (KERN_ERR "BUG: cx88 can't find device struct." -" Can't proceed with open\n" ); +printk (KERN_ERR "BUG: cx88 can't find device struct. Can't proceed with open\n" );return -ENODEV ; }
@@ -914,8 +910,7 @@ static int snd_cx88_create(struct snd_card *card, struct pci_dev *pci,/* print pci info */ pci_read_config_byte (pci,PCI_LATENCY_TIMER , &pci_lat); -dprintk (1 ,"ALSA %s/%i: found at %s, rev: %d, irq: %d, " -"latency: %d, mmio: 0x%llx\n" , core->name, devno, +dprintk (1 ,"ALSA %s/%i: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n" , core->name, devno,pci_name (pci), pci->revision, pci->irq, pci_lat, (unsigned long long )pci_resource_start (pci,0 ));
drivers/media/pci/cx88/cx88-cards.c +4 -8
@@ -2847,8 +2847,7 @@ static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)break ; } -info_printk (core,"Leadtek Winfast 2000XP Expert config: " -"tuner=%d, eeprom[0]=0x%02x\n" , +info_printk (core,"Leadtek Winfast 2000XP Expert config: tuner=%d, eeprom[0]=0x%02x\n" , core->board.tuner_type, eeprom_data[0 ]); }
@@ -3107,8 +3106,7 @@ static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core) msg.len = (i !=12 ?5 :2 ); err =i2c_transfer (&core->i2c_adap, &msg,1 );if (err !=1 ) { -warn_printk (core,"dvico_fusionhdtv_hybrid_init buf %d " -"failed (err = %d)!\n" , i, err); +warn_printk (core,"dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n" , i, err);return ; } }
@@ -3284,8 +3282,7 @@ static void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)"%s: version might help as well.\n" , core->name,core->name,core->name,core->name); } -err_printk (core,"Here is a list of valid choices for the card=<n> " -"insmod option:\n" ); +err_printk (core,"Here is a list of valid choices for the card=<n> insmod option:\n" );for (i =0 ; i <ARRAY_SIZE (cx88_boards); i++)printk (KERN_ERR "%s: card=%d -> %s\n" , core->name, i, cx88_boards[i].name);
@@ -3510,8 +3507,7 @@ static void cx88_card_setup(struct cx88_core *core)for (i =0 ; i <ARRAY_SIZE (buffer); i++)if (2 !=i2c_master_send (&core->i2c_client, buffer[i],2 )) -warn_printk (core,"Unable to enable " -"tuner(%i).\n" , i); +warn_printk (core,"Unable to enable tuner(%i).\n" , i); }break ;case CX88_BOARD_MSI_TVANYWHERE_MASTER :
drivers/media/pci/cx88/cx88-dsp.c +3 -6
@@ -186,8 +186,7 @@ static s32 detect_a2_a2m_eiaj(struct cx88_core *core, s16 x[], u32 N) dual =freq_magnitude (x,N , dual_freq); noise =noise_magnitude (x,N ,FREQ_NOISE_START ,FREQ_NOISE_END ); -dprintk (1 ,"detect a2/a2m/eiaj: carrier=%d, stereo=%d, dual=%d, " -"noise=%d\n" , carrier, stereo, dual, noise); +dprintk (1 ,"detect a2/a2m/eiaj: carrier=%d, stereo=%d, dual=%d, noise=%d\n" , carrier, stereo, dual, noise);if (stereo > dual) ret =V4L2_TUNER_SUB_STEREO ;
@@ -222,8 +221,7 @@ static s32 detect_btsc(struct cx88_core *core, s16 x[], u32 N)s32 sap =freq_magnitude (x,N ,FREQ_BTSC_SAP );s32 dual_ref =freq_magnitude (x,N ,FREQ_BTSC_DUAL_REF );s32 dual =freq_magnitude (x,N ,FREQ_BTSC_DUAL ); -dprintk (1 ,"detect btsc: dual_ref=%d, dual=%d, sap_ref=%d, sap=%d" -"\n" , dual_ref, dual, sap_ref, sap); +dprintk (1 ,"detect btsc: dual_ref=%d, dual=%d, sap_ref=%d, sap=%d\n" , dual_ref, dual, sap_ref, sap);/* FIXME: Currently not supported */ return UNSET ; }
@@ -241,8 +239,7 @@ static s16 *read_rds_samples(struct cx88_core *core, u32 *N)u32 current_address =cx_read (srch->ptr1_reg);u32 offset = (current_address - srch->fifo_start + bpl); -dprintk (1 ,"read RDS samples: current_address=%08x (offset=%08x), " -"sample_count=%d, aud_intstat=%08x\n" , current_address, +dprintk (1 ,"read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n" , current_address, current_address - srch->fifo_start, sample_count,cx_read (MO_AUD_INTSTAT ));
drivers/media/pci/cx88/cx88-dvb.c +2 -4
@@ -625,8 +625,7 @@ static int attach_xc3028(u8 addr, struct cx8802_dev *dev)return -EINVAL ;if (!fe0->dvb.frontend) { -printk (KERN_ERR "%s/2: dvb frontend not attached. " -"Can't attach xc3028\n" , +printk (KERN_ERR "%s/2: dvb frontend not attached. Can't attach xc3028\n" , dev->core->name);return -EINVAL ; }
@@ -665,8 +664,7 @@ static int attach_xc4000(struct cx8802_dev *dev, struct xc4000_config *cfg)return -EINVAL ;if (!fe0->dvb.frontend) { -printk (KERN_ERR "%s/2: dvb frontend not attached. " -"Can't attach xc4000\n" , +printk (KERN_ERR "%s/2: dvb frontend not attached. Can't attach xc4000\n" , dev->core->name);return -EINVAL ; }
drivers/media/pci/cx88/cx88-i2c.c +1 -2
@@ -45,8 +45,7 @@ MODULE_PARM_DESC(i2c_scan,"scan i2c bus at insmod time");static unsigned int i2c_udelay =5 ;module_param (i2c_udelay, int,0644 ); -MODULE_PARM_DESC (i2c_udelay,"i2c delay at insmod time, in usecs " -"(should be 5 or higher). Lower value means higher bus speed." ); +MODULE_PARM_DESC (i2c_udelay,"i2c delay at insmod time, in usecs (should be 5 or higher). Lower value means higher bus speed." ); #define dprintk(level,fmt, arg...) if (i2c_debug >= level) \ printk(KERN_DEBUG "%s: " fmt, core->name , ## arg)
drivers/media/pci/cx88/cx88-mpeg.c +4 -8
@@ -401,8 +401,7 @@ static int cx8802_init_common(struct cx8802_dev *dev) dev->pci_rev = dev->pci->revision;pci_read_config_byte (dev->pci,PCI_LATENCY_TIMER , &dev->pci_lat); -printk (KERN_INFO "%s/2: found at %s, rev: %d, irq: %d, " -"latency: %d, mmio: 0x%llx\n" , dev->core->name, +printk (KERN_INFO "%s/2: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n" , dev->core->name,pci_name (dev->pci), dev->pci_rev, dev->pci->irq, dev->pci_lat,(unsigned long long )pci_resource_start (dev->pci,0 ));
@@ -690,8 +689,7 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)list_del (&d->drvlist);kfree (d); }else -printk (KERN_ERR "%s/2: cx8802 driver remove " -"failed (%d)\n" , dev->core->name, err); +printk (KERN_ERR "%s/2: cx8802 driver remove failed (%d)\n" , dev->core->name, err); }mutex_unlock (&dev->core->lock);
@@ -768,8 +766,7 @@ static void cx8802_remove(struct pci_dev *pci_dev)struct cx8802_driver *drv, *tmp;int err; -printk (KERN_WARNING "%s/2: Trying to remove cx8802 driver " -"while cx8802 sub-drivers still loaded?!\n" , +printk (KERN_WARNING "%s/2: Trying to remove cx8802 driver while cx8802 sub-drivers still loaded?!\n" , dev->core->name);list_for_each_entry_safe (drv, tmp, &dev->drvlist, drvlist) {
@@ -777,8 +774,7 @@ static void cx8802_remove(struct pci_dev *pci_dev)if (err ==0 ) {list_del (&drv->drvlist); }else -printk (KERN_ERR "%s/2: cx8802 driver remove " -"failed (%d)\n" , dev->core->name, err); +printk (KERN_ERR "%s/2: cx8802 driver remove failed (%d)\n" , dev->core->name, err);kfree (drv); } }
drivers/media/pci/cx88/cx88-tvaudio.c +2 -4
@@ -62,8 +62,7 @@ MODULE_PARM_DESC(always_analog,"force analog audio out");static unsigned int radio_deemphasis;module_param (radio_deemphasis,int,0644 ); -MODULE_PARM_DESC (radio_deemphasis,"Radio deemphasis time constant, " -"0=None, 1=50us (elsewhere), 2=75us (USA)" ); +MODULE_PARM_DESC (radio_deemphasis,"Radio deemphasis time constant, 0=None, 1=50us (elsewhere), 2=75us (USA)" ); #define dprintk(fmt, arg...) if (audio_debug) \ printk(KERN_DEBUG "%s/0: " fmt, core->name , ## arg)
@@ -976,8 +975,7 @@ void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual) }if (UNSET != ctl) { -dprintk ("cx88_set_stereo: mask 0x%x, ctl 0x%x " -"[status=0x%x,ctl=0x%x,vol=0x%x]\n" , +dprintk ("cx88_set_stereo: mask 0x%x, ctl 0x%x [status=0x%x,ctl=0x%x,vol=0x%x]\n" , mask, ctl,cx_read (AUD_STATUS ),cx_read (AUD_CTL ),cx_sread (SHADOW_AUD_VOL_CTL ));cx_andor (AUD_CTL , mask, ctl);
drivers/media/pci/cx88/cx88-video.c +1 -2
@@ -1307,8 +1307,7 @@ static int cx8800_initdev(struct pci_dev *pci_dev,/* print pci info */ dev->pci_rev = pci_dev->revision;pci_read_config_byte (pci_dev,PCI_LATENCY_TIMER , &dev->pci_lat); -printk (KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, " -"latency: %d, mmio: 0x%llx\n" , core->name, +printk (KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n" , core->name,pci_name (pci_dev), dev->pci_rev, pci_dev->irq, dev->pci_lat,(unsigned long long )pci_resource_start (pci_dev,0 ));
Signature · 1 line
2.7.4
PATCH 12/57 ddbridge: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/ddbridge/ddbridge-core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/media/pci/ddbridge/ddbridge-core.c +2 -4
@@ -824,8 +824,7 @@ static int dvb_input_attach(struct ddb_input *input) &input->port->dev->pdev->dev, adapter_nr);if (ret <0 ) { -printk (KERN_ERR "ddbridge: Could not register adapter." -"Check if you enabled enough adapters in dvb-core!\n" ); +printk (KERN_ERR "ddbridge: Could not register adapter.Check if you enabled enough adapters in dvb-core!\n" );return ret; } input->attached =1 ;
@@ -1730,8 +1729,7 @@ static __init int module_init_ddbridge(void) {int ret; -printk (KERN_INFO "Digital Devices PCIE bridge driver, " -"Copyright (C) 2010-11 Digital Devices GmbH\n" ); +printk (KERN_INFO "Digital Devices PCIE bridge driver, Copyright (C) 2010-11 Digital Devices GmbH\n" ); ret =ddb_class_create ();if (ret <0 )
Signature · 1 line
2.7.4
PATCH 13/57 dm1105: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/dm1105/dm1105.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/pci/dm1105/dm1105.c +1 -2
@@ -315,8 +315,7 @@ static void dm1105_card_list(struct pci_dev *pci)"dm1105: Updating to the latest version might help\n" "dm1105: as well.\n"); } -printk (KERN_ERR "Here is a list of valid choices for the card=<n> " -"insmod option:\n" ); +printk (KERN_ERR "Here is a list of valid choices for the card=<n> insmod option:\n" );for (i =0 ; i <ARRAY_SIZE (dm1105_boards); i++)printk (KERN_ERR "dm1105: card=%d -> %s\n" , i, dm1105_boards[i].name);
Signature · 1 line
2.7.4
PATCH 14/57 ivtv: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/ivtv/ivtv-alsa-main.c | 9 +++------ drivers/media/pci/ivtv/ivtv-driver.c | 36 +++++++++++---------------------- drivers/media/pci/ivtv/ivtv-firmware.c | 3 +-- drivers/media/pci/ivtv/ivtv-yuv.c | 6 ++---- drivers/media/pci/ivtv/ivtvfb.c | 3 +-- 5 files changed, 19 insertions(+), 38 deletions(-)
drivers/media/pci/ivtv/ivtv-alsa-main.c +3 -6
@@ -177,8 +177,7 @@ static int snd_ivtv_init(struct v4l2_device *v4l2_dev)#if 0 ret =snd_ivtv_mixer_create (itvsc);if (ret) { -IVTV_ALSA_WARN ("%s: snd_ivtv_mixer_create() failed with err %d:" -" proceeding anyway\n" , __func__, ret); +IVTV_ALSA_WARN ("%s: snd_ivtv_mixer_create() failed with err %d: proceeding anyway\n" , __func__, ret); }#endif
@@ -235,8 +234,7 @@ static int ivtv_alsa_load(struct ivtv *itv) s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM ];if (s->vdev.v4l2_dev ==NULL ) { -IVTV_DEBUG_ALSA_INFO ("%s: PCM stream for card is disabled - " -"skipping\n" , __func__); +IVTV_DEBUG_ALSA_INFO ("%s: PCM stream for card is disabled - skipping\n" , __func__);return 0 ; }
@@ -250,8 +248,7 @@ static int ivtv_alsa_load(struct ivtv *itv)IVTV_ALSA_ERR ("%s: failed to create struct snd_ivtv_card\n" , __func__); }else { -IVTV_DEBUG_ALSA_INFO ("%s: created ivtv ALSA interface instance " -"\n" , __func__); +IVTV_DEBUG_ALSA_INFO ("%s: created ivtv ALSA interface instance \n" , __func__); }return 0 ; }
drivers/media/pci/ivtv/ivtv-driver.c +12 -24
@@ -885,8 +885,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev,pci_read_config_byte (pdev,PCI_LATENCY_TIMER , &pci_latency);if (pci_latency <64 && ivtv_pci_latency) { -IVTV_INFO ("Unreasonably low latency timer, " -"setting to 64 (was %d)\n" , pci_latency); +IVTV_INFO ("Unreasonably low latency timer, setting to 64 (was %d)\n" , pci_latency);pci_write_config_byte (pdev,PCI_LATENCY_TIMER ,64 );pci_read_config_byte (pdev,PCI_LATENCY_TIMER , &pci_latency); }
@@ -896,8 +895,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev,these problems. */ pci_write_config_dword (pdev,0x40 ,0xffff ); -IVTV_DEBUG_INFO ("%d (rev %d) at %02x:%02x.%x, " -"irq: %d, latency: %d, memory: 0x%llx\n" , +IVTV_DEBUG_INFO ("%d (rev %d) at %02x:%02x.%x, irq: %d, latency: %d, memory: 0x%llx\n" , pdev->device, pdev->revision, pdev->bus->number,PCI_SLOT (pdev->devfn),PCI_FUNC (pdev->devfn), pdev->irq, pci_latency, (u64 )itv->base_addr);
@@ -1047,13 +1045,10 @@ static int ivtv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) itv->enc_mem =ioremap_nocache (itv->base_addr +IVTV_ENCODER_OFFSET ,IVTV_ENCODER_SIZE );if (!itv->enc_mem) { -IVTV_ERR ("ioremap failed. Can't get a window into CX23415/6 " -"encoder memory\n" ); -IVTV_ERR ("Each capture card with a CX23415/6 needs 8 MB of " -"vmalloc address space for this window\n" ); +IVTV_ERR ("ioremap failed. Can't get a window into CX23415/6 encoder memory\n" ); +IVTV_ERR ("Each capture card with a CX23415/6 needs 8 MB of vmalloc address space for this window\n" );IVTV_ERR ("Check the output of 'grep Vmalloc /proc/meminfo'\n" ); -IVTV_ERR ("Use the vmalloc= kernel command line option to set " -"VmallocTotal to a larger value\n" ); +IVTV_ERR ("Use the vmalloc= kernel command line option to set VmallocTotal to a larger value\n" ); retval = -ENOMEM ; goto free_mem; }
@@ -1064,14 +1059,10 @@ static int ivtv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) itv->dec_mem =ioremap_nocache (itv->base_addr +IVTV_DECODER_OFFSET ,IVTV_DECODER_SIZE );if (!itv->dec_mem) { -IVTV_ERR ("ioremap failed. Can't get a window into " -"CX23415 decoder memory\n" ); -IVTV_ERR ("Each capture card with a CX23415 needs 8 MB " -"of vmalloc address space for this window\n" ); -IVTV_ERR ("Check the output of 'grep Vmalloc " -"/proc/meminfo'\n" ); -IVTV_ERR ("Use the vmalloc= kernel command line option " -"to set VmallocTotal to a larger value\n" ); +IVTV_ERR ("ioremap failed. Can't get a window into CX23415 decoder memory\n" ); +IVTV_ERR ("Each capture card with a CX23415 needs 8 MB of vmalloc address space for this window\n" ); +IVTV_ERR ("Check the output of 'grep Vmalloc /proc/meminfo'\n" ); +IVTV_ERR ("Use the vmalloc= kernel command line option to set VmallocTotal to a larger value\n" ); retval = -ENOMEM ; goto free_mem; }
@@ -1086,13 +1077,10 @@ static int ivtv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) itv->reg_mem =ioremap_nocache (itv->base_addr +IVTV_REG_OFFSET ,IVTV_REG_SIZE );if (!itv->reg_mem) { -IVTV_ERR ("ioremap failed. Can't get a window into CX23415/6 " -"register space\n" ); -IVTV_ERR ("Each capture card with a CX23415/6 needs 64 kB of " -"vmalloc address space for this window\n" ); +IVTV_ERR ("ioremap failed. Can't get a window into CX23415/6 register space\n" ); +IVTV_ERR ("Each capture card with a CX23415/6 needs 64 kB of vmalloc address space for this window\n" );IVTV_ERR ("Check the output of 'grep Vmalloc /proc/meminfo'\n" ); -IVTV_ERR ("Use the vmalloc= kernel command line option to set " -"VmallocTotal to a larger value\n" ); +IVTV_ERR ("Use the vmalloc= kernel command line option to set VmallocTotal to a larger value\n" ); retval = -ENOMEM ; goto free_io; }
drivers/media/pci/ivtv/ivtv-firmware.c +1 -2
@@ -376,8 +376,7 @@ int ivtv_firmware_check(struct ivtv *itv, char *where)/* If something failed & currently idle, try to reload */ if (res && !atomic_read (&itv->capturing) && !atomic_read (&itv->decoding)) { -IVTV_INFO ("Detected in %s that firmware had failed - " -"Reloading\n" , where); +IVTV_INFO ("Detected in %s that firmware had failed - Reloading\n" , where); res =ivtv_firmware_restart (itv);/* * Even if restarted ok, still signal a problem had occurred.
drivers/media/pci/ivtv/ivtv-yuv.c +2 -4
@@ -88,8 +88,7 @@ static int ivtv_yuv_prep_user_dma(struct ivtv *itv, struct ivtv_user_dma *dma,if (y_pages == y_dma.page_count) {IVTV_DEBUG_WARN - ("failed to map uv user pages, returned %d " -"expecting %d\n" , uv_pages, uv_dma.page_count); + ("failed to map uv user pages, returned %d expecting %d\n" , uv_pages, uv_dma.page_count);if (uv_pages >=0 ) {for (i =0 ; i < uv_pages; i++)
@@ -100,8 +99,7 @@ static int ivtv_yuv_prep_user_dma(struct ivtv *itv, struct ivtv_user_dma *dma, } }else {IVTV_DEBUG_WARN - ("failed to map y user pages, returned %d " -"expecting %d\n" , y_pages, y_dma.page_count); + ("failed to map y user pages, returned %d expecting %d\n" , y_pages, y_dma.page_count); }if (y_pages >=0 ) {for (i =0 ; i < y_pages; i++)
drivers/media/pci/ivtv/ivtvfb.c +1 -2
@@ -293,8 +293,7 @@ static int ivtvfb_prep_dec_dma_to_device(struct ivtv *itv,/* Map User DMA */ if (ivtv_udma_setup (itv, ivtv_dest_addr, userbuf, size_in_bytes) <=0 ) {mutex_unlock (&itv->udma.lock); -IVTVFB_WARN ("ivtvfb_prep_dec_dma_to_device, " -"Error with get_user_pages: %d bytes, %d pages returned\n" , +IVTVFB_WARN ("ivtvfb_prep_dec_dma_to_device, Error with get_user_pages: %d bytes, %d pages returned\n" , size_in_bytes, itv->udma.page_count);/* get_user_pages must have failed completely */
Signature · 1 line
2.7.4
PATCH 15/57 meye: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/meye/meye.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/media/pci/meye/meye.c +4 -8
@@ -60,8 +60,7 @@ MODULE_PARM_DESC(gbuffers, "number of capture buffers, default is 2 (32 max)");/* size of a grab buffer */ static unsigned int gbufsize =MEYE_MAX_BUFSIZE ;module_param (gbufsize, int,0444 ); -MODULE_PARM_DESC (gbufsize,"size of the capture buffers, default is 614400" -" (will be rounded up to a page multiple)" ); +MODULE_PARM_DESC (gbufsize,"size of the capture buffers, default is 614400 (will be rounded up to a page multiple)" );/* /dev/videoX registration number */ static int video_nr =-1 ;
@@ -1261,8 +1260,7 @@ static int vidioc_reqbufs(struct file *file, void *fh, meye.grab_fbuffer =rvmalloc (gbuffers * gbufsize);if (!meye.grab_fbuffer) { -printk (KERN_ERR "meye: v4l framebuffer allocation" -" failed\n" ); +printk (KERN_ERR "meye: v4l framebuffer allocation failed\n" );mutex_unlock (&meye.lock);return -ENOMEM ; }
@@ -1659,8 +1657,7 @@ static int meye_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) ret = -EIO ;if ((ret =sony_pic_camera_command (SONY_PIC_COMMAND_SETCAMERA ,1 ))) {v4l2_err (v4l2_dev,"meye: unable to power on the camera\n" ); -v4l2_err (v4l2_dev,"meye: did you enable the camera in " -"sonypi using the module options ?\n" ); +v4l2_err (v4l2_dev,"meye: did you enable the camera in sonypi using the module options ?\n" ); goto outsonypienable; }
@@ -1834,8 +1831,7 @@ static int __init meye_init(void)if (gbufsize >MEYE_MAX_BUFSIZE ) gbufsize =MEYE_MAX_BUFSIZE ; gbufsize =PAGE_ALIGN (gbufsize); -printk (KERN_INFO "meye: using %d buffers with %dk (%dk total) " -"for capture\n" , +printk (KERN_INFO "meye: using %d buffers with %dk (%dk total) for capture\n" , gbuffers, gbufsize /1024 , gbuffers * gbufsize /1024 );return pci_register_driver (&meye_driver);
Signature · 1 line
2.7.4
PATCH 16/57 pt1: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/pt1/pt1.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/media/pci/pt1/pt1.c +2 -4
@@ -282,13 +282,11 @@ static int pt1_filter(struct pt1 *pt1, struct pt1_buffer_page *page)continue ;if (upacket >>24 &1 ) -printk_ratelimited (KERN_INFO "earth-pt1: device " -"buffer overflowing. table[%d] buf[%d]\n" , +printk_ratelimited (KERN_INFO "earth-pt1: device buffer overflowing. table[%d] buf[%d]\n" , pt1->table_index, pt1->buf_index); sc = upacket >>26 &0x7 ;if (adap->st_count !=-1 && sc != ((adap->st_count +1 ) &0x7 )) -printk_ratelimited (KERN_INFO "earth-pt1: data loss" -" in streamID(adapter)[%d]\n" , index); +printk_ratelimited (KERN_INFO "earth-pt1: data loss in streamID(adapter)[%d]\n" , index); adap->st_count = sc; buf = adap->buf;
Signature · 1 line
2.7.4
PATCH 17/57 saa7134: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/saa7134/saa7134-alsa.c | 3 +-- drivers/media/pci/saa7134/saa7134-cards.c | 6 ++---- drivers/media/pci/saa7134/saa7134-core.c | 29 +++++++++-------------------- drivers/media/pci/saa7134/saa7134-dvb.c | 24 ++++++++---------------- drivers/media/pci/saa7134/saa7134-input.c | 12 ++++-------- 5 files changed, 24 insertions(+), 50 deletions(-)
drivers/media/pci/saa7134/saa7134-alsa.c +1 -2
@@ -813,8 +813,7 @@ static int snd_card_saa7134_capture_open(struct snd_pcm_substream * substream)int amux, err;if (!saa7134) { -pr_err ("BUG: saa7134 can't find device struct." -" Can't proceed with open\n" ); +pr_err ("BUG: saa7134 can't find device struct. Can't proceed with open\n" );return -ENODEV ; } dev = saa7134->dev;
drivers/media/pci/saa7134/saa7134-cards.c +2 -4
@@ -7341,8 +7341,7 @@ static void hauppauge_eeprom(struct saa7134_dev *dev, u8 *eeprom_data)case 67659 :/* WinTV-HVR1110 (OEM, no IR, hybrid, FM, SVid/Comp, RCA aud) */ break ;default : -pr_warn ("%s: warning: " -"unknown hauppauge model #%d\n" , dev->name, tv.model); +pr_warn ("%s: warning: unknown hauppauge model #%d\n" , dev->name, tv.model);break ; }
@@ -7920,8 +7919,7 @@ int saa7134_board_init2(struct saa7134_dev *dev) msg.addr =0x0b ; msg.len =1 ;if (1 !=i2c_transfer (&dev->i2c_adap, &msg,1 )) { -pr_warn ("%s: send wake up byte to pic16C505" -"(IR chip) failed\n" , dev->name); +pr_warn ("%s: send wake up byte to pic16C505(IR chip) failed\n" , dev->name); }else { msg.flags =I2C_M_RD ; rc =i2c_transfer (&dev->i2c_adap, &msg,1 );
drivers/media/pci/saa7134/saa7134-core.c +9 -20
@@ -66,8 +66,7 @@ MODULE_PARM_DESC(latency,"pci latency timer");int saa7134_no_overlay=-1 ;module_param_named (no_overlay, saa7134_no_overlay, int,0444 ); -MODULE_PARM_DESC (no_overlay,"allow override overlay default (0 disables, 1 enables)" -" [some VIA/SIS chipsets are known to have problem with overlay]" ); +MODULE_PARM_DESC (no_overlay,"allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay]" );bool saa7134_userptr;module_param (saa7134_userptr, bool,0644 );
@@ -619,25 +618,21 @@ static irqreturn_t saa7134_irq(int irq, void *dev_id)print_irqstatus (dev,loop,report,status);if (report &SAA7134_IRQ_REPORT_PE ) {/* disable all parity error */ -pr_warn ("%s/irq: looping -- " -"clearing PE (parity error!) enable bit\n" ,dev->name); +pr_warn ("%s/irq: looping -- clearing PE (parity error!) enable bit\n" ,dev->name);saa_clearl (SAA7134_IRQ2 ,SAA7134_IRQ2_INTE_PE ); }else if (report &SAA7134_IRQ_REPORT_GPIO16 ) {/* disable gpio16 IRQ */ -pr_warn ("%s/irq: looping -- " -"clearing GPIO16 enable bit\n" ,dev->name); +pr_warn ("%s/irq: looping -- clearing GPIO16 enable bit\n" ,dev->name);saa_clearl (SAA7134_IRQ2 ,SAA7134_IRQ2_INTE_GPIO16_P );saa_clearl (SAA7134_IRQ2 ,SAA7134_IRQ2_INTE_GPIO16_N ); }else if (report &SAA7134_IRQ_REPORT_GPIO18 ) {/* disable gpio18 IRQs */ -pr_warn ("%s/irq: looping -- " -"clearing GPIO18 enable bit\n" ,dev->name); +pr_warn ("%s/irq: looping -- clearing GPIO18 enable bit\n" ,dev->name);saa_clearl (SAA7134_IRQ2 ,SAA7134_IRQ2_INTE_GPIO18_P );saa_clearl (SAA7134_IRQ2 ,SAA7134_IRQ2_INTE_GPIO18_N ); }else {/* disable all irqs */ -pr_warn ("%s/irq: looping -- " -"clearing all enable bits\n" ,dev->name); +pr_warn ("%s/irq: looping -- clearing all enable bits\n" ,dev->name);saa_writel (SAA7134_IRQ1 ,0 );saa_writel (SAA7134_IRQ2 ,0 ); }
@@ -1081,18 +1076,13 @@ static int saa7134_initdev(struct pci_dev *pci_dev, }#endif if (pci_pci_problems & (PCIPCI_FAIL |PCIAGP_FAIL )) { -pr_info ("%s: quirk: this driver and your " -"chipset may not work together" -" in overlay mode.\n" ,dev->name); +pr_info ("%s: quirk: this driver and your chipset may not work together in overlay mode.\n" ,dev->name);if (!saa7134_no_overlay) { -pr_info ("%s: quirk: overlay " -"mode will be disabled.\n" , +pr_info ("%s: quirk: overlay mode will be disabled.\n" , dev->name); saa7134_no_overlay =1 ; }else { -pr_info ("%s: quirk: overlay " -"mode will be forced. Use this" -" option at your own risk.\n" , +pr_info ("%s: quirk: overlay mode will be forced. Use this option at your own risk.\n" , dev->name); } }
@@ -1106,8 +1096,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,/* print pci info */ dev->pci_rev = pci_dev->revision;pci_read_config_byte (pci_dev,PCI_LATENCY_TIMER , &dev->pci_lat); -pr_info ("%s: found at %s, rev: %d, irq: %d, " -"latency: %d, mmio: 0x%llx\n" , dev->name, +pr_info ("%s: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n" , dev->name,pci_name (pci_dev), dev->pci_rev, pci_dev->irq, dev->pci_lat,(unsigned long long )pci_resource_start (pci_dev,0 ));pci_set_master (pci_dev);
drivers/media/pci/saa7134/saa7134-dvb.c +8 -16
@@ -1449,8 +1449,7 @@ static int dvb_init(struct saa7134_dev *dev)if (dvb_attach (tda826x_attach, fe0->dvb.frontend,0x60 , &dev->i2c_adap,0 ) ==NULL ) { -pr_warn ("%s: Medion Quadro, no tda826x " -"found !\n" , __func__); +pr_warn ("%s: Medion Quadro, no tda826x found !\n" , __func__); goto detach_frontend; }if (dev_id !=0x08 ) {
@@ -1458,8 +1457,7 @@ static int dvb_init(struct saa7134_dev *dev) fe->ops.i2c_gate_ctrl (fe,1 );if (dvb_attach (isl6405_attach, fe, &dev->i2c_adap,0x08 ,0 ,0 ) ==NULL ) { -pr_warn ("%s: Medion Quadro, no ISL6405 " -"found !\n" , __func__); +pr_warn ("%s: Medion Quadro, no ISL6405 found !\n" , __func__); goto detach_frontend; }if (dev_id ==0x07 ) {
@@ -1629,8 +1627,7 @@ static int dvb_init(struct saa7134_dev *dev)struct dvb_frontend *fe;if (dvb_attach (dvb_pll_attach, fe0->dvb.frontend,0x60 , &dev->i2c_adap,DVB_PLL_PHILIPS_SD1878_TDA8261 ) ==NULL ) { -pr_warn ("%s: MD7134 DVB-S, no SD1878 " -"found !\n" , __func__); +pr_warn ("%s: MD7134 DVB-S, no SD1878 found !\n" , __func__); goto detach_frontend; }/* we need to open the i2c gate (we know it exists) */
@@ -1638,8 +1635,7 @@ static int dvb_init(struct saa7134_dev *dev) fe->ops.i2c_gate_ctrl (fe,1 );if (dvb_attach (isl6405_attach, fe, &dev->i2c_adap,0x08 ,0 ,0 ) ==NULL ) { -pr_warn ("%s: MD7134 DVB-S, no ISL6405 " -"found !\n" , __func__); +pr_warn ("%s: MD7134 DVB-S, no ISL6405 found !\n" , __func__); goto detach_frontend; } fe->ops.i2c_gate_ctrl (fe,0 );
@@ -1670,14 +1666,12 @@ static int dvb_init(struct saa7134_dev *dev)if (dvb_attach (tda826x_attach, fe0->dvb.frontend,0x60 , &dev->i2c_adap,0 ) ==NULL ) { -pr_warn ("%s: Asus Tiger 3in1, no " -"tda826x found!\n" , __func__); +pr_warn ("%s: Asus Tiger 3in1, no tda826x found!\n" , __func__); goto detach_frontend; }if (dvb_attach (lnbp21_attach, fe0->dvb.frontend, &dev->i2c_adap,0 ,0 ) ==NULL ) { -pr_warn ("%s: Asus Tiger 3in1, no lnbp21" -" found!\n" , __func__); +pr_warn ("%s: Asus Tiger 3in1, no lnbp21 found!\n" , __func__); goto detach_frontend; } }
@@ -1695,14 +1689,12 @@ static int dvb_init(struct saa7134_dev *dev)if (dvb_attach (tda826x_attach, fe0->dvb.frontend,0x60 , &dev->i2c_adap,0 ) ==NULL ) { -pr_warn ("%s: Asus My Cinema PS3-100, no " -"tda826x found!\n" , __func__); +pr_warn ("%s: Asus My Cinema PS3-100, no tda826x found!\n" , __func__); goto detach_frontend; }if (dvb_attach (lnbp21_attach, fe0->dvb.frontend, &dev->i2c_adap,0 ,0 ) ==NULL ) { -pr_warn ("%s: Asus My Cinema PS3-100, no lnbp21" -" found!\n" , __func__); +pr_warn ("%s: Asus My Cinema PS3-100, no lnbp21 found!\n" , __func__); goto detach_frontend; } }
drivers/media/pci/saa7134/saa7134-input.c +4 -8
@@ -123,8 +123,7 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol,struct saa7134_dev *dev = ir->c->adapter->algo_data;if (dev ==NULL ) { -ir_dbg (ir,"get_key_flydvb_trio: " -"ir->c->adapter->algo_data is NULL!\n" ); +ir_dbg (ir,"get_key_flydvb_trio: ir->c->adapter->algo_data is NULL!\n" );return -EIO ; }
@@ -150,8 +149,7 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol,msleep (10 );continue ; } -ir_dbg (ir,"send wake up byte to pic16C505 (IR chip)" -"failed %dx\n" , attempt); +ir_dbg (ir,"send wake up byte to pic16C505 (IR chip)failed %dx\n" , attempt);return -EIO ; }if (1 !=i2c_master_recv (ir->c, &b,1 )) {
@@ -174,8 +172,7 @@ static int get_key_msi_tvanywhere_plus(struct IR_i2c *ir, enum rc_type *protocol/* <dev> is needed to access GPIO. Used by the saa_readl macro. */ struct saa7134_dev *dev = ir->c->adapter->algo_data;if (dev ==NULL ) { -ir_dbg (ir,"get_key_msi_tvanywhere_plus: " -"ir->c->adapter->algo_data is NULL!\n" ); +ir_dbg (ir,"get_key_msi_tvanywhere_plus: ir->c->adapter->algo_data is NULL!\n" );return -EIO ; }
@@ -223,8 +220,7 @@ static int get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_type *protocol,/* <dev> is needed to access GPIO. Used by the saa_readl macro. */ struct saa7134_dev *dev = ir->c->adapter->algo_data;if (dev ==NULL ) { -ir_dbg (ir,"get_key_kworld_pc150u: " -"ir->c->adapter->algo_data is NULL!\n" ); +ir_dbg (ir,"get_key_kworld_pc150u: ir->c->adapter->algo_data is NULL!\n" );return -EIO ; }
Signature · 1 line
2.7.4
PATCH 18/57 saa7164: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/saa7164/saa7164-buffer.c | 3 +- drivers/media/pci/saa7164/saa7164-bus.c | 3 +- drivers/media/pci/saa7164/saa7164-cards.c | 3 +- drivers/media/pci/saa7164/saa7164-cmd.c | 10 ++---- drivers/media/pci/saa7164/saa7164-core.c | 56 ++++++++++------------------- drivers/media/pci/saa7164/saa7164-dvb.c | 27 +++++--------- drivers/media/pci/saa7164/saa7164-encoder.c | 15 +++----- drivers/media/pci/saa7164/saa7164-fw.c | 9 ++--- drivers/media/pci/saa7164/saa7164-vbi.c | 12 +++---- 9 files changed, 45 insertions(+), 93 deletions(-)
drivers/media/pci/saa7164/saa7164-buffer.c +1 -2
@@ -218,8 +218,7 @@ int saa7164_buffer_activate(struct saa7164_buffer *buf, int i)saa7164_writel (port->bufptr32h + ((sizeof (u32) *2 ) * i), buf->pt_dma);saa7164_writel (port->bufptr32l + ((sizeof (u32) *2 ) * i),0 ); - dprintk(DBGLVL_BUF, " buf[%d] offset 0x%llx (0x%x) " - "buf 0x%llx/%llx (0x%x/%x) nr=%d\n", + dprintk(DBGLVL_BUF, " buf[%d] offset 0x%llx (0x%x) buf 0x%llx/%llx (0x%x/%x) nr=%d\n", buf->idx, (u64)port->bufoffset + (i * sizeof(u32)), saa7164_readl(port->bufoffset + (sizeof(u32) * i)),
drivers/media/pci/saa7164/saa7164-bus.c +1 -2
@@ -427,8 +427,7 @@ int saa7164_bus_get(struct saa7164_dev *dev, struct tmComResInfo* msg, write_distance = curr_gwp + bus->m_dwSizeGetRing - curr_grp;if (bytes_to_read > write_distance) { -printk (KERN_ERR "%s() Invalid bus state, missing msg " -"or mangled ring, faulty H/W / bad code?\n" , __func__); +printk (KERN_ERR "%s() Invalid bus state, missing msg or mangled ring, faulty H/W / bad code?\n" , __func__); ret =SAA_ERR_INVALID_COMMAND ; goto out; }
drivers/media/pci/saa7164/saa7164-cards.c +1 -2
@@ -726,8 +726,7 @@ void saa7164_card_list(struct saa7164_dev *dev) dev->name, dev->name, dev->name, dev->name); } -printk (KERN_ERR "%s: Here are valid choices for the card=<n> insmod " -"option:\n" , dev->name); +printk (KERN_ERR "%s: Here are valid choices for the card=<n> insmod option:\n" , dev->name);for (i =0 ; i < saa7164_bcount; i++) printk(KERN_ERR "%s: card=%d -> %s\n",
drivers/media/pci/saa7164/saa7164-cmd.c +3 -7
@@ -301,8 +301,7 @@ static int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno)else saa7164_cmd_timeout_seqno (dev, seqno); -dprintk (DBGLVL_CMD ,"%s(seqno=%d) Waiting res = %d " -"(signalled=%d)\n" , __func__, seqno, r, +dprintk (DBGLVL_CMD ,"%s(seqno=%d) Waiting res = %d (signalled=%d)\n" , __func__, seqno, r, dev->cmds[seqno].signalled); }else ret =SAA_OK ;
@@ -353,8 +352,7 @@ int saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command,int ret;int safety =0 ; -dprintk (DBGLVL_CMD ,"%s(unitid = %s (%d) , command = 0x%x, " -"sel = 0x%x)\n" , __func__,saa7164_unitid_name (dev, id), id, +dprintk (DBGLVL_CMD ,"%s(unitid = %s (%d) , command = 0x%x, sel = 0x%x)\n" , __func__,saa7164_unitid_name (dev, id), id, command, controlselector);if ((size ==0 ) || (buf ==NULL )) {
@@ -452,9 +450,7 @@ int saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command,if (presponse_t->seqno != pcommand_t->seqno) {dprintk (DBGLVL_CMD , -"wrong event: seqno = %d, " -"expected seqno = %d, " -"will dequeue regardless\n" , +"wrong event: seqno = %d, expected seqno = %d, will dequeue regardless\n" , presponse_t->seqno, pcommand_t->seqno); ret =saa7164_cmd_dequeue (dev);
drivers/media/pci/saa7164/saa7164-core.c +18 -38
156 lines not on this page · raw message
drivers/media/pci/saa7164/saa7164-dvb.c +9 -18
@@ -244,8 +244,7 @@ static int saa7164_dvb_start_port(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() acquire/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() acquire/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ; goto out;
@@ -261,8 +260,7 @@ static int saa7164_dvb_start_port(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() pause/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() pause/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -279,8 +277,7 @@ static int saa7164_dvb_start_port(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() run/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() run/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -357,8 +354,7 @@ static int dvb_register(struct saa7164_port *port)/* Sanity check that the PCI configuration space is active */ if (port->hwcfg.BARLocation ==0 ) { result = -ENOMEM ; -printk (KERN_ERR "%s: dvb_register_adapter failed " -"(errno = %d), NO PCI configuration\n" , +printk (KERN_ERR "%s: dvb_register_adapter failed (errno = %d), NO PCI configuration\n" ,DRIVER_NAME , result); goto fail_adapter; }
@@ -386,8 +382,7 @@ static int dvb_register(struct saa7164_port *port)if (!buf) { result = -ENOMEM ; -printk (KERN_ERR "%s: dvb_register_adapter failed " -"(errno = %d), unable to allocate buffers\n" , +printk (KERN_ERR "%s: dvb_register_adapter failed (errno = %d), unable to allocate buffers\n" ,DRIVER_NAME , result); goto fail_adapter; }
@@ -401,8 +396,7 @@ static int dvb_register(struct saa7164_port *port) result =dvb_register_adapter (&dvb->adapter,DRIVER_NAME ,THIS_MODULE , &dev->pci->dev, adapter_nr);if (result <0 ) { -printk (KERN_ERR "%s: dvb_register_adapter failed " -"(errno = %d)\n" ,DRIVER_NAME , result); +printk (KERN_ERR "%s: dvb_register_adapter failed (errno = %d)\n" ,DRIVER_NAME , result); goto fail_adapter; } dvb->adapter.priv = port;
@@ -410,8 +404,7 @@ static int dvb_register(struct saa7164_port *port)/* register frontend */ result =dvb_register_frontend (&dvb->adapter, dvb->frontend);if (result <0 ) { -printk (KERN_ERR "%s: dvb_register_frontend failed " -"(errno = %d)\n" ,DRIVER_NAME , result); +printk (KERN_ERR "%s: dvb_register_frontend failed (errno = %d)\n" ,DRIVER_NAME , result); goto fail_frontend; }
@@ -444,16 +437,14 @@ static int dvb_register(struct saa7164_port *port) dvb->fe_hw.source =DMX_FRONTEND_0 ; result = dvb->demux.dmx.add_frontend (&dvb->demux.dmx, &dvb->fe_hw);if (result <0 ) { -printk (KERN_ERR "%s: add_frontend failed " -"(DMX_FRONTEND_0, errno = %d)\n" ,DRIVER_NAME , result); +printk (KERN_ERR "%s: add_frontend failed (DMX_FRONTEND_0, errno = %d)\n" ,DRIVER_NAME , result); goto fail_fe_hw; } dvb->fe_mem.source =DMX_MEMORY_FE ; result = dvb->demux.dmx.add_frontend (&dvb->demux.dmx, &dvb->fe_mem);if (result <0 ) { -printk (KERN_ERR "%s: add_frontend failed " -"(DMX_MEMORY_FE, errno = %d)\n" ,DRIVER_NAME , result); +printk (KERN_ERR "%s: add_frontend failed (DMX_MEMORY_FE, errno = %d)\n" ,DRIVER_NAME , result); goto fail_fe_mem; }
drivers/media/pci/saa7164/saa7164-encoder.c +5 -10
@@ -157,8 +157,7 @@ static int saa7164_encoder_buffers_alloc(struct saa7164_port *port) params->pitch);if (!buf) { -printk (KERN_ERR "%s() failed " -"(errno = %d), unable to allocate buffer\n" , +printk (KERN_ERR "%s() failed (errno = %d), unable to allocate buffer\n" , __func__, result); result = -ENOMEM ; goto failed;
@@ -681,8 +680,7 @@ static int saa7164_encoder_start_streaming(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() acquire/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() acquire/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ; goto out;
@@ -698,8 +696,7 @@ static int saa7164_encoder_start_streaming(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() pause/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() pause/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -716,8 +713,7 @@ static int saa7164_encoder_start_streaming(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_api_transition_port (port,SAA_DMASTATE_STOP );if ((result !=SAA_OK ) && (result !=SAA_ERR_ALREADY_STOPPED )) { -printk (KERN_ERR "%s() run/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() run/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -1026,8 +1022,7 @@ int saa7164_encoder_register(struct saa7164_port *port)/* Sanity check that the PCI configuration space is active */ if (port->hwcfg.BARLocation ==0 ) { -printk (KERN_ERR "%s() failed " -"(errno = %d), NO PCI configuration\n" , +printk (KERN_ERR "%s() failed (errno = %d), NO PCI configuration\n" , __func__, result); result = -ENOMEM ; goto failed;
drivers/media/pci/saa7164/saa7164-fw.c +3 -6
@@ -421,8 +421,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) ret =request_firmware (&fw, fwname, &dev->pci->dev);if (ret) { -printk (KERN_ERR "%s() Upload failed. " -"(file not found?)\n" , __func__); +printk (KERN_ERR "%s() Upload failed. (file not found?)\n" , __func__);return -ENOMEM ; }
@@ -478,15 +477,13 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) 0x03) && (saa7164_readl(SAA_DATAREADY_FLAG_ACK) == 0x00) && (version == 0x00)) { -dprintk (DBGLVL_FW ,"BootLoader version in " -"rom %d.%d.%d.%d\n" , +dprintk (DBGLVL_FW ,"BootLoader version in rom %d.%d.%d.%d\n" , (bootloaderversion &0x0000fc00 ) >>10 , (bootloaderversion &0x000003e0 ) >>5 , (bootloaderversion &0x0000001f ), (bootloaderversion &0xffff0000 ) >>16 ); - dprintk(DBGLVL_FW, "BootLoader version " - "in file %d.%d.%d.%d\n", + dprintk(DBGLVL_FW, "BootLoader version in file %d.%d.%d.%d\n", (boothdr->version & 0x0000fc00) >> 10, (boothdr->version & 0x000003e0) >> 5, (boothdr->version & 0x0000001f),
drivers/media/pci/saa7164/saa7164-vbi.c +4 -8
@@ -110,8 +110,7 @@ static int saa7164_vbi_buffers_alloc(struct saa7164_port *port) params->pitch);if (!buf) { -printk (KERN_ERR "%s() failed " -"(errno = %d), unable to allocate buffer\n" , +printk (KERN_ERR "%s() failed (errno = %d), unable to allocate buffer\n" , __func__, result); result = -ENOMEM ; goto failed;
@@ -384,8 +383,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)/* Stop the hardware, regardless */ result =saa7164_vbi_stop_port (port);if (result !=SAA_OK ) { -printk (KERN_ERR "%s() pause/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() pause/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -403,8 +401,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port) result =saa7164_vbi_acquire_port (port); result =saa7164_vbi_stop_port (port);if (result !=SAA_OK ) { -printk (KERN_ERR "%s() run/forced stop transition " -"failed, res = 0x%x\n" , __func__, result); +printk (KERN_ERR "%s() run/forced stop transition failed, res = 0x%x\n" , __func__, result); } ret = -EIO ;
@@ -728,8 +725,7 @@ int saa7164_vbi_register(struct saa7164_port *port)/* Sanity check that the PCI configuration space is active */ if (port->hwcfg.BARLocation ==0 ) { -printk (KERN_ERR "%s() failed " -"(errno = %d), NO PCI configuration\n" , +printk (KERN_ERR "%s() failed (errno = %d), NO PCI configuration\n" , __func__, result); result = -ENOMEM ; goto failed;
Signature · 1 line
2.7.4
PATCH 19/57 solo6x10: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/pci/solo6x10/solo6x10-v4l2.c +1 -2
@@ -702,8 +702,7 @@ int solo_v4l2_init(struct solo_dev *solo_dev, unsigned nr)snprintf (solo_dev->vfd->name,sizeof (solo_dev->vfd->name),"%s (%i)" ,SOLO6X10_NAME , solo_dev->vfd->num); -dev_info (&solo_dev->pdev->dev,"Display as /dev/video%d with " -"%d inputs (%d extended)\n" , solo_dev->vfd->num, +dev_info (&solo_dev->pdev->dev,"Display as /dev/video%d with %d inputs (%d extended)\n" , solo_dev->vfd->num, solo_dev->nr_chans, solo_dev->nr_ext);return 0 ;
Signature · 1 line
2.7.4
PATCH 20/57 ttpci: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/ttpci/av7110.c | 27 +++++++++------------------ drivers/media/pci/ttpci/av7110_hw.c | 12 ++++-------- drivers/media/pci/ttpci/budget-av.c | 3 +-- drivers/media/pci/ttpci/budget-ci.c | 4 +--- drivers/media/pci/ttpci/budget-patch.c | 3 +-- drivers/media/pci/ttpci/budget.c | 3 +-- drivers/media/pci/ttpci/ttpci-eeprom.c | 3 +-- 7 files changed, 18 insertions(+), 37 deletions(-)
drivers/media/pci/ttpci/av7110.c +9 -18
@@ -100,8 +100,7 @@ MODULE_PARM_DESC(adac,"audio DAC type: 0 TI, 1 CRYSTAL, 2 MSP (use if autodetectmodule_param (hw_sections, int,0444 );MODULE_PARM_DESC (hw_sections,"0 use software section filter, 1 use hardware" );module_param (rgb_on, int,0444 ); -MODULE_PARM_DESC (rgb_on,"For Siemens DVB-C cards only: Enable RGB control" -" signal on SCART pin 16 to switch SCART video mode from CVBS to RGB" ); +MODULE_PARM_DESC (rgb_on,"For Siemens DVB-C cards only: Enable RGB control signal on SCART pin 16 to switch SCART video mode from CVBS to RGB" );module_param (volume, int,0444 );MODULE_PARM_DESC (volume,"initial volume: default 255 (range 0-255)" );module_param (budgetpatch, int,0444 );
@@ -833,8 +832,7 @@ static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter) ret =av7110_fw_request (av7110, buf,20 , &handle,1 );if (ret !=0 || handle >=32 ) { -printk ("dvb-ttpci: %s error buf %04x %04x %04x %04x " -"ret %d handle %04x\n" , +printk ("dvb-ttpci: %s error buf %04x %04x %04x %04x ret %d handle %04x\n" , __func__, buf[0 ], buf[1 ], buf[2 ], buf[3 ], ret, handle); dvbdmxfilter->hw_handle =0xffff ;
@@ -876,8 +874,7 @@ static int StopHWFilter(struct dvb_demux_filter *dvbdmxfilter) buf[2 ] = handle; ret =av7110_fw_request (av7110, buf,3 , answ,2 );if (ret !=0 || answ[1 ] != handle) { -printk ("dvb-ttpci: %s error cmd %04x %04x %04x ret %x " -"resp %04x %04x pid %d\n" , +printk ("dvb-ttpci: %s error cmd %04x %04x %04x ret %x resp %04x %04x pid %d\n" , __func__, buf[0 ], buf[1 ], buf[2 ], ret, answ[0 ], answ[1 ], dvbdmxfilter->feed->pid);if (!ret)
@@ -1532,15 +1529,11 @@ static int get_firmware(struct av7110* av7110) ret =request_firmware (&fw,"dvb-ttpci-01.fw" , &av7110->dev->pci->dev);if (ret) {if (ret == -ENOENT ) { -printk (KERN_ERR "dvb-ttpci: could not load firmware," -" file not found: dvb-ttpci-01.fw\n" ); -printk (KERN_ERR "dvb-ttpci: usually this should be in " -"/usr/lib/hotplug/firmware or /lib/firmware\n" ); -printk (KERN_ERR "dvb-ttpci: and can be downloaded from" -" https://linuxtv.org/download/dvb/firmware/\n" ); +printk (KERN_ERR "dvb-ttpci: could not load firmware, file not found: dvb-ttpci-01.fw\n" ); +printk (KERN_ERR "dvb-ttpci: usually this should be in /usr/lib/hotplug/firmware or /lib/firmware\n" ); +printk (KERN_ERR "dvb-ttpci: and can be downloaded from https://linuxtv.org/download/dvb/firmware/\n" ); }else -printk (KERN_ERR "dvb-ttpci: cannot request firmware" -" (error %i)\n" , ret); +printk (KERN_ERR "dvb-ttpci: cannot request firmware (error %i)\n" , ret);return -EINVAL ; }
@@ -2700,8 +2693,7 @@ static int av7110_attach(struct saa7146_dev* dev, goto err_stop_arm_9;if (FW_VERSION (av7110->arm_app)<0x2501 ) -printk ("dvb-ttpci: Warning, firmware version 0x%04x is too old. " -"System might be unstable!\n" ,FW_VERSION (av7110->arm_app)); +printk ("dvb-ttpci: Warning, firmware version 0x%04x is too old. System might be unstable!\n" ,FW_VERSION (av7110->arm_app)); thread =kthread_run (arm_thread, (void *) av7110,"arm_mon" );if (IS_ERR (thread)) {
@@ -2944,7 +2936,6 @@ static void __exit av7110_exit(void)module_init (av7110_init);module_exit (av7110_exit); -MODULE_DESCRIPTION ("driver for the SAA7146 based AV110 PCI DVB cards by " -"Siemens, Technotrend, Hauppauge" ); +MODULE_DESCRIPTION ("driver for the SAA7146 based AV110 PCI DVB cards by Siemens, Technotrend, Hauppauge" );MODULE_AUTHOR ("Ralph Metzler, Marcus Metzler, others" );MODULE_LICENSE ("GPL" );
drivers/media/pci/ttpci/av7110_hw.c +4 -8
@@ -235,8 +235,7 @@ int av7110_bootarm(struct av7110 *av7110)iwdebi (av7110,DEBISWAP ,DPRAM_BASE ,0x76543210 ,4 );if ((ret=irdebi (av7110,DEBINOSWAP ,DPRAM_BASE ,0 ,4 )) !=0x10325476 ) { -printk (KERN_ERR "dvb-ttpci: debi test in av7110_bootarm() failed: " -"%08x != %08x (check your BIOS 'Plug&Play OS' settings)\n" , +printk (KERN_ERR "dvb-ttpci: debi test in av7110_bootarm() failed: %08x != %08x (check your BIOS 'Plug&Play OS' settings)\n" , ret,0x10325476 );return -1 ; }
@@ -262,8 +261,7 @@ int av7110_bootarm(struct av7110 *av7110)iwdebi (av7110,DEBINOSWAP ,AV7110_BOOT_STATE ,BOOTSTATE_BUFFER_FULL ,2 );if (saa7146_wait_for_debi_done (av7110->dev,1 )) { -printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): " -"saa7146_wait_for_debi_done() timed out\n" ); +printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): saa7146_wait_for_debi_done() timed out\n" );return -ETIMEDOUT ; }saa7146_setgpio (dev,RESET_LINE ,SAA7146_GPIO_OUTHI );
@@ -271,8 +269,7 @@ int av7110_bootarm(struct av7110 *av7110)dprintk (1 ,"load dram code\n" );if (load_dram (av7110, (u32 *)av7110->bin_root, av7110->size_root) <0 ) { -printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): " -"load_dram() failed\n" ); +printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): load_dram() failed\n" );return -1 ; }
@@ -283,8 +280,7 @@ int av7110_bootarm(struct av7110 *av7110)mwdebi (av7110,DEBISWAB ,DPRAM_BASE , av7110->bin_dpram, av7110->size_dpram);if (saa7146_wait_for_debi_done (av7110->dev,1 )) { -printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): " -"saa7146_wait_for_debi_done() timed out after loading DRAM\n" ); +printk (KERN_ERR "dvb-ttpci: av7110_bootarm(): saa7146_wait_for_debi_done() timed out after loading DRAM\n" );return -ETIMEDOUT ; }saa7146_setgpio (dev,RESET_LINE ,SAA7146_GPIO_OUTHI );
drivers/media/pci/ttpci/budget-av.c +1 -2
@@ -1636,5 +1636,4 @@ module_exit(budget_av_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Ralph Metzler, Marcus Metzler, Michael Hunold, others" ); -MODULE_DESCRIPTION ("driver for the SAA7146 based so-called " -"budget PCI DVB w/ analog input and CI-module (e.g. the KNC cards)" ); +MODULE_DESCRIPTION ("driver for the SAA7146 based so-called budget PCI DVB w/ analog input and CI-module (e.g. the KNC cards)" );
drivers/media/pci/ttpci/budget-ci.c +1 -3
@@ -1586,6 +1586,4 @@ module_exit(budget_ci_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Michael Hunold, Jack Thomasson, Andrew de Quincey, others" ); -MODULE_DESCRIPTION ("driver for the SAA7146 based so-called " -"budget PCI DVB cards w/ CI-module produced by " -"Siemens, Technotrend, Hauppauge" ); +MODULE_DESCRIPTION ("driver for the SAA7146 based so-called budget PCI DVB cards w/ CI-module produced by Siemens, Technotrend, Hauppauge" );
drivers/media/pci/ttpci/budget-patch.c +1 -2
@@ -679,5 +679,4 @@ module_exit(budget_patch_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Emard, Roberto Deza, Holger Waechtler, Michael Hunold, others" ); -MODULE_DESCRIPTION ("Driver for full TS modified DVB-S SAA7146+AV7110 " -"based so-called Budget Patch cards" ); +MODULE_DESCRIPTION ("Driver for full TS modified DVB-S SAA7146+AV7110 based so-called Budget Patch cards" );
drivers/media/pci/ttpci/budget.c +1 -2
@@ -897,5 +897,4 @@ module_exit(budget_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Ralph Metzler, Marcus Metzler, Michael Hunold, others" ); -MODULE_DESCRIPTION ("driver for the SAA7146 based so-called " -"budget PCI DVB cards by Siemens, Technotrend, Hauppauge" ); +MODULE_DESCRIPTION ("driver for the SAA7146 based so-called budget PCI DVB cards by Siemens, Technotrend, Hauppauge" );
drivers/media/pci/ttpci/ttpci-eeprom.c +1 -2
@@ -171,5 +171,4 @@ EXPORT_SYMBOL(ttpci_eeprom_parse_mac);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Ralph Metzler, Marcus Metzler, others" ); -MODULE_DESCRIPTION ("Decode dvb_net MAC address from EEPROM of PCI DVB cards " -"made by Siemens, Technotrend, Hauppauge" ); +MODULE_DESCRIPTION ("Decode dvb_net MAC address from EEPROM of PCI DVB cards made by Siemens, Technotrend, Hauppauge" );
Signature · 1 line
2.7.4
PATCH 21/57 tw68: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/pci/tw68/tw68-video.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/media/pci/tw68/tw68-video.c +4 -8
@@ -279,8 +279,7 @@ static int tw68_set_scale(struct tw68_dev *dev, unsigned int width, height /=2 ;/* we must set for 1-frame */ pr_debug("%s: width=%d, height=%d, both=%d\n" - " tvnorm h_delay=%d, h_start=%d, h_stop=%d, " - "v_delay=%d, v_start=%d, v_stop=%d\n" , __func__, + " tvnorm h_delay=%d, h_start=%d, h_stop=%d, v_delay=%d, v_start=%d, v_stop=%d\n" , __func__, width, height, V4L2_FIELD_HAS_BOTH(field), norm->h_delay, norm->h_start, norm->h_stop, norm->v_delay, norm->video_v_start,
@@ -309,16 +308,14 @@ static int tw68_set_scale(struct tw68_dev *dev, unsigned int width,V4L2_FIELD_HAS_TOP (field) ?"T" :"" ,V4L2_FIELD_HAS_BOTTOM (field) ?"B" :"" , v4l2_norm_to_name(dev->tvnorm->id)); -pr_debug ("%s: hactive=%d, hdelay=%d, hscale=%d; " -"vactive=%d, vdelay=%d, vscale=%d\n" , __func__, +pr_debug ("%s: hactive=%d, hdelay=%d, hscale=%d; vactive=%d, vdelay=%d, vscale=%d\n" , __func__, hactive, hdelay, hscale, vactive, vdelay, vscale); comb = ((vdelay &0x300 ) >>2 ) | ((vactive &0x300 ) >>4 ) | ((hdelay &0x300 ) >>6 ) | ((hactive &0x300 ) >>8 ); -pr_debug ("%s: setting CROP_HI=%02x, VDELAY_LO=%02x, " -"VACTIVE_LO=%02x, HDELAY_LO=%02x, HACTIVE_LO=%02x\n" , +pr_debug ("%s: setting CROP_HI=%02x, VDELAY_LO=%02x, VACTIVE_LO=%02x, HDELAY_LO=%02x, HACTIVE_LO=%02x\n" , __func__, comb, vdelay, vactive, hdelay, hactive);tw_writeb (TW68_CROP_HI , comb);tw_writeb (TW68_VDELAY_LO , vdelay &0xff );
@@ -327,8 +324,7 @@ static int tw68_set_scale(struct tw68_dev *dev, unsigned int width,tw_writeb (TW68_HACTIVE_LO , hactive &0xff ); comb = ((vscale &0xf00 ) >>4 ) | ((hscale &0xf00 ) >>8 ); -pr_debug ("%s: setting SCALE_HI=%02x, VSCALE_LO=%02x, " -"HSCALE_LO=%02x\n" , __func__, comb, vscale, hscale); +pr_debug ("%s: setting SCALE_HI=%02x, VSCALE_LO=%02x, HSCALE_LO=%02x\n" , __func__, comb, vscale, hscale);tw_writeb (TW68_SCALE_HI , comb);tw_writeb (TW68_VSCALE_LO , vscale);tw_writeb (TW68_HSCALE_LO , hscale);
Signature · 1 line
2.7.4
PATCH 22/57 davinci: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/davinci/dm355_ccdc.c | 3 +-- drivers/media/platform/davinci/dm644x_ccdc.c | 3 +-- drivers/media/platform/davinci/vpbe.c | 15 +++++---------- drivers/media/platform/davinci/vpfe_capture.c | 6 ++---- drivers/media/platform/davinci/vpif_capture.c | 9 ++------- drivers/media/platform/davinci/vpif_display.c | 9 ++------- drivers/media/platform/davinci/vpss.c | 6 ++---- 7 files changed, 15 insertions(+), 36 deletions(-)
drivers/media/platform/davinci/dm355_ccdc.c +1 -2
@@ -334,8 +334,7 @@ static int ccdc_set_params(void __user *params) x =copy_from_user (&ccdc_raw_params, params,sizeof (ccdc_raw_params));if (x) { -dev_dbg (ccdc_cfg.dev,"ccdc_set_params: error in copying ccdc" -"params, %d\n" , x); +dev_dbg (ccdc_cfg.dev,"ccdc_set_params: error in copying ccdcparams, %d\n" , x);return -EFAULT ; }
drivers/media/platform/davinci/dm644x_ccdc.c +1 -2
@@ -354,8 +354,7 @@ static int ccdc_set_params(void __user *params) x =copy_from_user (&ccdc_raw_params, params,sizeof (ccdc_raw_params));if (x) { -dev_dbg (ccdc_cfg.dev,"ccdc_set_params: error in copying" -"ccdc params, %d\n" , x); +dev_dbg (ccdc_cfg.dev,"ccdc_set_params: error in copyingccdc params, %d\n" , x);return -EFAULT ; }
drivers/media/platform/davinci/vpbe.c +5 -10
@@ -705,15 +705,13 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev)"v4l2 sub device %s registered\n" , enc_info->module_name); else { -v4l2_err (&vpbe_dev->v4l2_dev,"encoder %s" -" failed to register" , +v4l2_err (&vpbe_dev->v4l2_dev,"encoder %s failed to register" , enc_info->module_name); ret = -ENODEV ; goto fail_kfree_encoders; } }else -v4l2_warn (&vpbe_dev->v4l2_dev,"non-i2c encoders" -" currently not supported" ); +v4l2_warn (&vpbe_dev->v4l2_dev,"non-i2c encoders currently not supported" ); }/* Add amplifier subdevice for dm365 */ if ((strcmp(vpbe_dev->cfg->module_name, "dm365-vpbe-display") == 0) &&
@@ -735,8 +733,7 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) amp_info->module_name); }else { vpbe_dev->amp =NULL ; -v4l2_warn (&vpbe_dev->v4l2_dev,"non-i2c amplifiers" -" currently not supported" ); +v4l2_warn (&vpbe_dev->v4l2_dev,"non-i2c amplifiers currently not supported" ); } }else { vpbe_dev->amp =NULL ;
@@ -835,15 +832,13 @@ static int vpbe_probe(struct platform_device *pdev)if (!cfg->module_name[0 ] || !cfg->osd.module_name[0 ] || !cfg->venc.module_name[0 ]) { -v4l2_err (pdev->dev.driver,"vpbe display module names not" -" defined\n" ); +v4l2_err (pdev->dev.driver,"vpbe display module names not defined\n" );return ret; } vpbe_dev =kzalloc (sizeof (*vpbe_dev),GFP_KERNEL );if (vpbe_dev ==NULL ) { -v4l2_err (pdev->dev.driver,"Unable to allocate memory" -" for vpbe_device\n" ); +v4l2_err (pdev->dev.driver,"Unable to allocate memory for vpbe_device\n" );return -ENOMEM ; } vpbe_dev->cfg = cfg;
drivers/media/platform/davinci/vpfe_capture.c +2 -4
@@ -919,8 +919,7 @@ static const struct vpfe_pixel_format *else pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; -v4l2_info (&vpfe_dev->v4l2_dev,"adjusted width = %d, height =" -" %d, bpp = %d, bytesperline = %d, sizeimage = %d\n" , +v4l2_info (&vpfe_dev->v4l2_dev,"adjusted width = %d, height = %d, bpp = %d, bytesperline = %d, sizeimage = %d\n" , pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp, pixfmt->bytesperline, pixfmt->sizeimage);return vpfe_pix_fmt;
@@ -1088,8 +1087,7 @@ static int vpfe_enum_input(struct file *file, void *priv, &subdev, &index, inp->index) < 0) { -v4l2_err (&vpfe_dev->v4l2_dev,"input information not found" -" for the subdev\n" ); +v4l2_err (&vpfe_dev->v4l2_dev,"input information not found for the subdev\n" );return -EINVAL ; } sdinfo = &vpfe_dev->cfg->sub_devs[subdev];
drivers/media/platform/davinci/vpif_capture.c +2 -7
@@ -1152,11 +1152,7 @@ static int vpif_s_dv_timings(struct file *file, void *priv, timings->bt.vfrontporch && (timings->bt.vbackporch || timings->bt.vsync))) { -vpif_dbg (2 , debug,"Timings for width, height, " -"horizontal back porch, horizontal sync, " -"horizontal front porch, vertical back porch, " -"vertical sync and vertical back porch " -"must be defined\n" ); +vpif_dbg (2 , debug,"Timings for width, height, horizontal back porch, horizontal sync, horizontal front porch, vertical back porch, vertical sync and vertical back porch must be defined\n" );return -EINVAL ; }
@@ -1181,8 +1177,7 @@ static int vpif_s_dv_timings(struct file *file, void *priv, std_info->l11 = std_info->vsize - (bt->il_vfrontporch -1 ); }else { -vpif_dbg (2 , debug,"Required timing values for " -"interlaced BT format missing\n" ); +vpif_dbg (2 , debug,"Required timing values for interlaced BT format missing\n" );return -EINVAL ; } }else {
drivers/media/platform/davinci/vpif_display.c +2 -7
@@ -954,11 +954,7 @@ static int vpif_s_dv_timings(struct file *file, void *priv, timings->bt.vfrontporch && (timings->bt.vbackporch || timings->bt.vsync))) { -vpif_dbg (2 , debug,"Timings for width, height, " -"horizontal back porch, horizontal sync, " -"horizontal front porch, vertical back porch, " -"vertical sync and vertical back porch " -"must be defined\n" ); +vpif_dbg (2 , debug,"Timings for width, height, horizontal back porch, horizontal sync, horizontal front porch, vertical back porch, vertical sync and vertical back porch must be defined\n" );return -EINVAL ; }
@@ -983,8 +979,7 @@ static int vpif_s_dv_timings(struct file *file, void *priv, std_info->l11 = std_info->vsize - (bt->il_vfrontporch -1 ); }else { -vpif_dbg (2 , debug,"Required timing values for " -"interlaced BT format missing\n" ); +vpif_dbg (2 , debug,"Required timing values for interlaced BT format missing\n" );return -EINVAL ; } }else {
drivers/media/platform/davinci/vpss.c +2 -4
@@ -261,8 +261,7 @@ static int dm355_enable_clock(enum vpss_clock_sel clock_sel, int en) shift =6 ;break ;default : -printk (KERN_ERR "dm355_enable_clock:" -" Invalid selector: %d\n" , clock_sel); +printk (KERN_ERR "dm355_enable_clock: Invalid selector: %d\n" , clock_sel);return -EINVAL ; }
@@ -421,8 +420,7 @@ static int vpss_probe(struct platform_device *pdev)else if (!strcmp (platform_name,"dm644x_vpss" )) oper_cfg.platform =DM644X ;else { -dev_err (&pdev->dev,"vpss driver not supported on" -" this platform\n" ); +dev_err (&pdev->dev,"vpss driver not supported on this platform\n" );return -ENODEV ; }
Signature · 1 line
2.7.4
Re: [PATCH 22/57] [media] davinci: don't break long lines
Hi Mauro,
Thanks for the patch.
Quoted 7 lines · Mauro Carvalho Chehab
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Cheers,
--Prabhakar Lad
PATCH 23/57 exynos4-is: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/exynos4-is/media-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/exynos4-is/media-dev.c +1 -2
@@ -938,8 +938,7 @@ static int fimc_md_create_links(struct fimc_md *fmd) csis = fmd->csis[pdata->mux_id].sd;if (WARN (csis ==NULL , -"MIPI-CSI interface specified " -"but s5p-csis module is not loaded!\n" )) +"MIPI-CSI interface specified but s5p-csis module is not loaded!\n" ))return -EINVAL ; pad = sensor->entity.num_pads -1 ;
Signature · 1 line
2.7.4
PATCH 24/57 marvell-ccic: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/marvell-ccic/mcam-core.c | 26 +++++++------------------ 1 file changed, 7 insertions(+), 19 deletions(-)
drivers/media/platform/marvell-ccic/mcam-core.c +7 -19
@@ -49,24 +49,17 @@static bool alloc_bufs_at_read;module_param (alloc_bufs_at_read, bool,0444 );MODULE_PARM_DESC (alloc_bufs_at_read, -"Non-zero value causes DMA buffers to be allocated when the " -"video capture device is read, rather than at module load " -"time. This saves memory, but decreases the chances of " -"successfully getting those buffers. This parameter is " -"only used in the vmalloc buffer mode" ); +"Non-zero value causes DMA buffers to be allocated when the video capture device is read, rather than at module load time. This saves memory, but decreases the chances of successfully getting those buffers. This parameter is only used in the vmalloc buffer mode" );static int n_dma_bufs =3 ;module_param (n_dma_bufs, uint,0644 );MODULE_PARM_DESC (n_dma_bufs, -"The number of DMA buffers to allocate. Can be either two " -"(saves memory, makes timing tighter) or three." ); +"The number of DMA buffers to allocate. Can be either two (saves memory, makes timing tighter) or three." );static int dma_buf_size =VGA_WIDTH *VGA_HEIGHT *2 ;/* Worst case */ module_param (dma_buf_size, uint,0444 );MODULE_PARM_DESC (dma_buf_size, -"The size of the allocated DMA buffers. If actual operating " -"parameters require larger buffers, an attempt to reallocate " -"will be made." ); +"The size of the allocated DMA buffers. If actual operating parameters require larger buffers, an attempt to reallocate will be made." );#else /* MCAM_MODE_VMALLOC */ static const bool alloc_bufs_at_read;static const int n_dma_bufs =3 ;/* Used by S/G_PARM */
@@ -75,15 +68,12 @@ static const int n_dma_bufs = 3; /* Used by S/G_PARM */static bool flip;module_param (flip, bool,0444 );MODULE_PARM_DESC (flip, -"If set, the sensor will be instructed to flip the image " -"vertically." ); +"If set, the sensor will be instructed to flip the image vertically." );static int buffer_mode =-1 ;module_param (buffer_mode, int,0444 );MODULE_PARM_DESC (buffer_mode, -"Set the buffer mode to be used; default is to go with what " -"the platform driver asks for. Set to 0 for vmalloc, 1 for " -"DMA contiguous." ); +"Set the buffer mode to be used; default is to go with what the platform driver asks for. Set to 0 for vmalloc, 1 for DMA contiguous." );/* * Status flags. Always manipulated with bit operations.
@@ -1759,8 +1749,7 @@ int mccic_register(struct mcam_camera *cam) cam->buffer_mode = buffer_mode;if (cam->buffer_mode == B_DMA_sg && cam->chip_id ==MCAM_CAFE ) { -printk (KERN_ERR "marvell-cam: Cafe can't do S/G I/O, " -"attempting vmalloc mode instead\n" ); +printk (KERN_ERR "marvell-cam: Cafe can't do S/G I/O, attempting vmalloc mode instead\n" ); cam->buffer_mode = B_vmalloc; }if (!mcam_buffer_mode_supported (cam->buffer_mode)) {
@@ -1828,8 +1817,7 @@ int mccic_register(struct mcam_camera *cam)*/ if (cam->buffer_mode == B_vmalloc && !alloc_bufs_at_read) {if (mcam_alloc_dma_bufs (cam,1 )) -cam_warn (cam,"Unable to alloc DMA buffers at load" -" will try again later." ); +cam_warn (cam,"Unable to alloc DMA buffers at load will try again later." ); }mutex_unlock (&cam->s_mutex);
Signature · 1 line
2.7.4
PATCH 25/57 omap: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/omap/omap_vout.c | 12 ++++-------- drivers/media/platform/omap/omap_vout_vrfb.c | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-)
drivers/media/platform/omap/omap_vout.c +4 -8
@@ -1657,8 +1657,7 @@ static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i)/* Turn of the pipeline */ ret =omapvid_apply_changes (vout);if (ret) -v4l2_err (&vout->vid_dev->v4l2_dev,"failed to change mode in" -" streamoff\n" ); +v4l2_err (&vout->vid_dev->v4l2_dev,"failed to change mode in streamoff\n" );INIT_LIST_HEAD (&vout->dma_queue); ret =videobuf_streamoff (&vout->vbq);
@@ -1858,8 +1857,7 @@ static int __init omap_vout_setup_video_data(struct omap_vout_device *vout) vfd = vout->vfd =video_device_alloc ();if (!vfd) { - printk(KERN_ERR VOUT_NAME ": could not allocate" - " video device struct\n"); + printk(KERN_ERR VOUT_NAME ": could not allocate video device struct\n");v4l2_ctrl_handler_free (hdl);return -ENOMEM ; }
@@ -1984,16 +1982,14 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)*/ vfd = vout->vfd;if (video_register_device (vfd,VFL_TYPE_GRABBER ,-1 ) <0 ) { -dev_err (&pdev->dev,": Could not register " -"Video for Linux device\n" ); +dev_err (&pdev->dev,": Could not register Video for Linux device\n" ); vfd->minor =-1 ; ret = -ENODEV ; goto error2; }video_set_drvdata (vfd, vout); -dev_info (&pdev->dev,": registered and initialized" -" video device %d\n" , vfd->minor); +dev_info (&pdev->dev,": registered and initialized video device %d\n" , vfd->minor);if (k == (pdev->num_resources -1 ))return 0 ;
drivers/media/platform/omap/omap_vout_vrfb.c +1 -2
@@ -139,8 +139,7 @@ int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, (void *) &vout->vrfb_dma_tx, &vout->vrfb_dma_tx.dma_ch);if (ret <0 ) { vout->vrfb_dma_tx.req_status =DMA_CHAN_NOT_ALLOTED ; -dev_info (&pdev->dev,": failed to allocate DMA Channel for" -" video%d\n" , vfd->minor); +dev_info (&pdev->dev,": failed to allocate DMA Channel for video%d\n" , vfd->minor); }init_waitqueue_head (&vout->vrfb_dma_tx.wait);
Signature · 1 line
2.7.4
Laurent Pinchart
maintainerRe: [PATCH 25/57] [media] omap: don't break long lines
Hi Mauro,
Thank you for the patch.
Quoted 18 lines · On Friday 14 Oct 2016 17:20:13 Mauro Carvalho Chehab wrote:
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/omap/omap_vout.c | 12 ++++-------- drivers/media/platform/omap/omap_vout_vrfb.c | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/media/platform/omap/omap_vout.cindexe668dde6d857..ab0b941c64a4100644
drivers/media/platform/omap/omap_vout.c static int vidioc_streamoff(struct file *file, void · line 1661
Quoted 7 lines
drivers/media/platform/omap/omap_vout.c +1
-2@@ -1657,8 +1657,7 @@ static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i) /* Turn of the pipeline */ ret =omapvid_apply_changes (vout);if (ret) -v4l2_err (&vout->vid_dev->v4l2_dev,"failed to change mode in" -" streamoff\n" ); +v4l2_err (&vout->vid_dev->v4l2_dev,"failed to change mode in streamoff\n");
As mentioned in a reply to patch 54/57 (if I recall correctly), you should add a line break after the first argument of the function.
drivers/media/platform/omap/omap_vout.c static int __init omap_vout_setup_video_data(struct · line 1860
Quoted 10 lines
drivers/media/platform/omap/omap_vout.c +1
-2INIT_LIST_HEAD (&vout->dma_queue); ret =videobuf_streamoff (&vout->vbq);@@ -1858,8 +1857,7 @@ static int __init omap_vout_setup_video_data(struct omap_vout_device *vout) vfd = vout->vfd = video_device_alloc();if (!vfd) { - printk(KERN_ERR VOUT_NAME ": could not allocate" - " video device struct\n"); + printk(KERN_ERR VOUT_NAME ": could not allocate video device
struct\n");
drivers/media/platform/omap/omap_vout.c static int __init omap_vout_create_video_devices(struct platform_device *pdev)
Quoted 10 lines
drivers/media/platform/omap/omap_vout.c +0
-0v4l2_ctrl_handler_free (hdl);return -ENOMEM ; }@@ -1984,16 +1982,14 @@ static int __init
omap_vout_create_video_devices(struct platform_device *pdev)*/drivers/media/platform/omap/omap_vout.c +1
-2vfd = vout->vfd;if (video_register_device (vfd,VFL_TYPE_GRABBER ,-1 ) <0 ) { -dev_err (&pdev->dev,": Could not register " -"Video for Linux device\n" ); + dev_err(&pdev->dev, ": Could not register Video for
Linux device\n");
Same here.
drivers/media/platform/omap/omap_vout.c static int __init omap_vout_create_video_devices(struct platform_device *pdev)
Quoted 9 lines
drivers/media/platform/omap/omap_vout.c +1
-2vfd->minor =-1 ; ret = -ENODEV ; goto error2; }video_set_drvdata (vfd, vout); -dev_info (&pdev->dev,": registered and initialized" -" video device %d\n" , vfd->minor); + dev_info(&pdev->dev, ": registered and initialized video
device %d\n",
Quoted 1 line
vfd->minor);
And here, with a line break after the second argument too.
Quoted 9 lines
if (k == (pdev->num_resources - 1))drivers/media/platform/omap/omap_vout.c +0
-0return 0 ;(quoted diff) +0
-0
b/drivers/media/platform/omap/omap_vout_vrfb.cindexb8638e4e1627..19768f249192100644
drivers/media/platform/omap/omap_vout_vrfb.c int omap_vout_setup_vrfb_bufs(struct platform_device · line 143
Quoted 7 lines
drivers/media/platform/omap/omap_vout_vrfb.c +1
-2@@ -139,8 +139,7 @@ int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, (void *) &vout->vrfb_dma_tx, &vout->vrfb_dma_tx.dma_ch);if (ret <0 ) { vout->vrfb_dma_tx.req_status =DMA_CHAN_NOT_ALLOTED ; -dev_info (&pdev->dev,": failed to allocate DMA Channel for" -" video%d\n" , vfd->minor); + dev_info(&pdev->dev, ": failed to allocate DMA Channel for
video%d\n",
drivers/media/platform/omap/omap_vout_vrfb.c int omap_vout_setup_vrfb_bufs(struct platform_device · line 144
Quoted 1 line
drivers/media/platform/omap/omap_vout_vrfb.c +0
-0vfd->minor);
Ditto.
Quoted 2 lines
drivers/media/platform/omap/omap_vout_vrfb.c +0
-0}
init_waitqueue_head(&vout->vrfb_dma_tx.wait);
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 26/57 omap3isp: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/omap3isp/isp.c | 3 +-- drivers/media/platform/omap3isp/ispccdc.c | 6 ++--- drivers/media/platform/omap3isp/ispcsi2.c | 11 ++------ drivers/media/platform/omap3isp/ispcsiphy.c | 3 +-- drivers/media/platform/omap3isp/isph3a_aewb.c | 6 ++--- drivers/media/platform/omap3isp/isph3a_af.c | 6 ++--- drivers/media/platform/omap3isp/ispstat.c | 36 +++++++++------------------ 7 files changed, 22 insertions(+), 49 deletions(-)
drivers/media/platform/omap3isp/isp.c +1 -2
@@ -480,8 +480,7 @@ void omap3isp_hist_dma_done(struct isp_device *isp) omap3isp_stat_pcr_busy(&isp->isp_hist)) {/* Histogram cannot be enabled in this frame anymore */ atomic_set (&isp->isp_hist.buf_err,1 ); -dev_dbg (isp->dev,"hist: Out of synchronization with " -"CCDC. Ignoring next buffer.\n" ); +dev_dbg (isp->dev,"hist: Out of synchronization with CCDC. Ignoring next buffer.\n" ); } }
drivers/media/platform/omap3isp/ispccdc.c +2 -4
@@ -151,8 +151,7 @@ static int ccdc_lsc_validate_config(struct isp_ccdc_device *ccdc, }if (lsc_cfg->offset &3 ) { -dev_dbg (isp->dev,"CCDC: LSC: Offset must be a multiple of " -"4\n" ); +dev_dbg (isp->dev,"CCDC: LSC: Offset must be a multiple of 4\n" );return -EINVAL ; }
@@ -416,8 +415,7 @@ static int ccdc_lsc_config(struct isp_ccdc_device *ccdc,return 0 ;if (update != (OMAP3ISP_CCDC_CONFIG_LSC |OMAP3ISP_CCDC_TBL_LSC )) { -dev_dbg (to_device (ccdc),"%s: Both LSC configuration and table " -"need to be supplied\n" , __func__); +dev_dbg (to_device (ccdc),"%s: Both LSC configuration and table need to be supplied\n" , __func__);return -EINVAL ; }
drivers/media/platform/omap3isp/ispcsi2.c +2 -9
@@ -753,8 +753,7 @@ void omap3isp_csi2_isr(struct isp_csi2_device *csi2) ISPCSI2_PHY_IRQSTATUS);isp_reg_writel (isp, cpxio1_irqstatus, csi2->regs1,ISPCSI2_PHY_IRQSTATUS ); -dev_dbg (isp->dev,"CSI2: ComplexIO Error IRQ " -"%x\n" , cpxio1_irqstatus); +dev_dbg (isp->dev,"CSI2: ComplexIO Error IRQ %x\n" , cpxio1_irqstatus); pipe->error = true; }
@@ -763,13 +762,7 @@ void omap3isp_csi2_isr(struct isp_csi2_device *csi2) ISPCSI2_IRQSTATUS_ECC_NO_CORRECTION_IRQ | ISPCSI2_IRQSTATUS_COMPLEXIO2_ERR_IRQ | ISPCSI2_IRQSTATUS_FIFO_OVF_IRQ)) { - dev_dbg(isp->dev, "CSI2 Err:" - " OCP:%d," - " Short_pack:%d," - " ECC:%d," - " CPXIO2:%d," - " FIFO_OVF:%d," - "\n", + dev_dbg(isp->dev, "CSI2 Err: OCP:%d, Short_pack:%d, ECC:%d, CPXIO2:%d, FIFO_OVF:%d,\n", (csi2_irqstatus & ISPCSI2_IRQSTATUS_OCP_ERR_IRQ) ? 1 : 0, (csi2_irqstatus &
drivers/media/platform/omap3isp/ispcsiphy.c +1 -2
@@ -267,8 +267,7 @@ int omap3isp_csiphy_acquire(struct isp_csiphy *phy)int rval;if (phy->vdd ==NULL ) { -dev_err (phy->isp->dev,"Power regulator for CSI PHY not " -"available\n" ); +dev_err (phy->isp->dev,"Power regulator for CSI PHY not available\n" );return -ENODEV ; }
drivers/media/platform/omap3isp/isph3a_aewb.c +2 -4
@@ -304,8 +304,7 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp) aewb_recover_cfg =devm_kzalloc (isp->dev,sizeof (*aewb_recover_cfg),GFP_KERNEL );if (!aewb_recover_cfg) { -dev_err (aewb->isp->dev,"AEWB: cannot allocate memory for " -"recover configuration.\n" ); +dev_err (aewb->isp->dev,"AEWB: cannot allocate memory for recover configuration.\n" );return -ENOMEM ; }
@@ -321,8 +320,7 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp) aewb_recover_cfg->subsample_hor_inc =OMAP3ISP_AEWB_MIN_SUB_INC ;if (h3a_aewb_validate_params (aewb, aewb_recover_cfg)) { -dev_err (aewb->isp->dev,"AEWB: recover configuration is " -"invalid.\n" ); +dev_err (aewb->isp->dev,"AEWB: recover configuration is invalid.\n" );return -EINVAL ; }
drivers/media/platform/omap3isp/isph3a_af.c +2 -4
@@ -367,8 +367,7 @@ int omap3isp_h3a_af_init(struct isp_device *isp) af_recover_cfg =devm_kzalloc (isp->dev,sizeof (*af_recover_cfg),GFP_KERNEL );if (!af_recover_cfg) { -dev_err (af->isp->dev,"AF: cannot allocate memory for recover " -"configuration.\n" ); +dev_err (af->isp->dev,"AF: cannot allocate memory for recover configuration.\n" );return -ENOMEM ; }
@@ -379,8 +378,7 @@ int omap3isp_h3a_af_init(struct isp_device *isp) af_recover_cfg->paxel.v_cnt =OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN ; af_recover_cfg->paxel.line_inc =OMAP3ISP_AF_PAXEL_INCREMENT_MIN ;if (h3a_af_validate_params (af, af_recover_cfg)) { -dev_err (af->isp->dev,"AF: recover configuration is " -"invalid.\n" ); +dev_err (af->isp->dev,"AF: recover configuration is invalid.\n" );return -EINVAL ; }
drivers/media/platform/omap3isp/ispstat.c +12 -24
@@ -113,8 +113,7 @@ static int isp_stat_buf_check_magic(struct ispstat *stat, ret =0 ;if (ret) { -dev_dbg (stat->isp->dev,"%s: beginning magic check does not " -"match.\n" , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: beginning magic check does not match.\n" , stat->subdev.name);return ret; }
@@ -122,8 +121,7 @@ static int isp_stat_buf_check_magic(struct ispstat *stat,for (w = buf->virt_addr + buf_size, end = w +MAGIC_SIZE ; w < end; w++) {if (unlikely (*w !=MAGIC_NUM )) { -dev_dbg (stat->isp->dev,"%s: ending magic check does " -"not match.\n" , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: ending magic check does not match.\n" , stat->subdev.name);return -EINVAL ; } }
@@ -256,8 +254,7 @@ static void isp_stat_buf_next(struct ispstat *stat) {if (unlikely (stat->active_buf))/* Overwriting unused active buffer */ -dev_dbg (stat->isp->dev,"%s: new buffer requested without " -"queuing active one.\n" , +dev_dbg (stat->isp->dev,"%s: new buffer requested without queuing active one.\n" , stat->subdev.name);else stat->active_buf =isp_stat_buf_find_oldest_or_empty (stat);
@@ -292,8 +289,7 @@ static struct ispstat_buffer *isp_stat_buf_get(struct ispstat *stat,return ERR_PTR (-EBUSY ); }if (isp_stat_buf_check_magic (stat, buf)) { -dev_dbg (stat->isp->dev,"%s: current buffer has " -"corrupted data\n." , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: current buffer has corrupted data\n." , stat->subdev.name);/* Mark empty because it doesn't have valid data. */ buf->empty =1 ; }else {
@@ -307,8 +303,7 @@ static struct ispstat_buffer *isp_stat_buf_get(struct ispstat *stat,spin_unlock_irqrestore (&stat->isp->stat_lock, flags);if (buf->buf_size > data->buf_size) { -dev_warn (stat->isp->dev,"%s: userspace's buffer size is " -"not enough.\n" , stat->subdev.name); +dev_warn (stat->isp->dev,"%s: userspace's buffer size is not enough.\n" , stat->subdev.name);isp_stat_buf_release (stat);return ERR_PTR (-EINVAL ); }
@@ -531,20 +526,17 @@ int omap3isp_stat_config(struct ispstat *stat, void *new_conf)mutex_lock (&stat->ioctl_lock); -dev_dbg (stat->isp->dev,"%s: configuring module with buffer " -"size=0x%08lx\n" , stat->subdev.name, (unsigned long )buf_size); +dev_dbg (stat->isp->dev,"%s: configuring module with buffer size=0x%08lx\n" , stat->subdev.name, (unsigned long )buf_size); ret = stat->ops->validate_params (stat, new_conf);if (ret) {mutex_unlock (&stat->ioctl_lock); -dev_dbg (stat->isp->dev,"%s: configuration values are " -"invalid.\n" , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: configuration values are invalid.\n" , stat->subdev.name);return ret; }if (buf_size != user_cfg->buf_size) -dev_dbg (stat->isp->dev,"%s: driver has corrected buffer size " -"request to 0x%08lx\n" , stat->subdev.name, +dev_dbg (stat->isp->dev,"%s: driver has corrected buffer size request to 0x%08lx\n" , stat->subdev.name, (unsigned long )user_cfg->buf_size);/*
@@ -595,8 +587,7 @@ int omap3isp_stat_config(struct ispstat *stat, void *new_conf)/* Module has a valid configuration. */ stat->configured =1 ; -dev_dbg (stat->isp->dev,"%s: module has been successfully " -"configured.\n" , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: module has been successfully configured.\n" , stat->subdev.name);mutex_unlock (&stat->ioctl_lock);
@@ -762,8 +753,7 @@ int omap3isp_stat_enable(struct ispstat *stat, u8 enable)if (!stat->configured && enable) {spin_unlock_irqrestore (&stat->isp->stat_lock, irqflags);mutex_unlock (&stat->ioctl_lock); -dev_dbg (stat->isp->dev,"%s: cannot enable module as it's " -"never been successfully configured so far.\n" , +dev_dbg (stat->isp->dev,"%s: cannot enable module as it's never been successfully configured so far.\n" , stat->subdev.name);return -EINVAL ; }
@@ -859,8 +849,7 @@ static void __stat_isr(struct ispstat *stat, int from_dma)if (stat->state ==ISPSTAT_ENABLED ) {spin_unlock_irqrestore (&stat->isp->stat_lock, irqflags);dev_err (stat->isp->dev, -"%s: interrupt occurred when module was still " -"processing a buffer.\n" , stat->subdev.name); +"%s: interrupt occurred when module was still processing a buffer.\n" , stat->subdev.name); ret =STAT_NO_BUF ; goto out; }else {
@@ -964,8 +953,7 @@ static void __stat_isr(struct ispstat *stat, int from_dma)atomic_set (&stat->buf_err,1 ); ret =STAT_NO_BUF ; -dev_dbg (stat->isp->dev,"%s: cannot process buffer, " -"device is busy.\n" , stat->subdev.name); +dev_dbg (stat->isp->dev,"%s: cannot process buffer, device is busy.\n" , stat->subdev.name); } out:
Signature · 1 line
2.7.4
Laurent Pinchart
maintainerRe: [PATCH 26/57] [media] omap3isp: don't break long lines
Hi Mauro,
Thank you for the patch.
As commented before, please add line breaks after function arguments to keep lines within the 80 columns limit where possible.
Quoted 23 lines · On Friday 14 Oct 2016 17:20:14 Mauro Carvalho Chehab wrote:
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/omap3isp/isp.c | 3 +-- drivers/media/platform/omap3isp/ispccdc.c | 6 ++--- drivers/media/platform/omap3isp/ispcsi2.c | 11 ++------ drivers/media/platform/omap3isp/ispcsiphy.c | 3 +-- drivers/media/platform/omap3isp/isph3a_aewb.c | 6 ++--- drivers/media/platform/omap3isp/isph3a_af.c | 6 ++--- drivers/media/platform/omap3isp/ispstat.c | 36 ++++++++---------------- 7 files changed, 22 insertions(+), 49 deletions(-)(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/isp.cindex0321d84addc7..a9d4347bf100100644
drivers/media/platform/omap3isp/isp.c void omap3isp_hist_dma_done(struct isp_device *isp) · line 483
Quoted 6 lines
drivers/media/platform/omap3isp/isp.c +1
-2@@ -480,8 +480,7 @@ void omap3isp_hist_dma_done(struct isp_device *isp) omap3isp_stat_pcr_busy(&isp->isp_hist)) {/* Histogram cannot be enabled in this frame anymore */ atomic_set (&isp->isp_hist.buf_err,1 ); -dev_dbg (isp->dev,"hist: Out of synchronization with " -"CCDC. Ignoring next buffer.\n" ); + dev_dbg(isp->dev, "hist: Out of synchronization with CCDC.
Ignoring next
Quoted 9 lines
drivers/media/platform/omap3isp/isp.c +0
-0buffer.\n"); } }(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/ispccdc.cindex882310eb45cc..3f8e71c8ea48100644
drivers/media/platform/omap3isp/ispccdc.c static int ccdc_lsc_validate_config(struct · line 154
Quoted 6 lines
drivers/media/platform/omap3isp/ispccdc.c +1
-2@@ -151,8 +151,7 @@ static int ccdc_lsc_validate_config(struct isp_ccdc_device *ccdc, }if (lsc_cfg->offset &3 ) { -dev_dbg (isp->dev,"CCDC: LSC: Offset must be a multiple of " -"4\n" ); + dev_dbg(isp->dev, "CCDC: LSC: Offset must be a multiple of
4\n");
drivers/media/platform/omap3isp/ispccdc.c static int ccdc_lsc_config(struct isp_ccdc_device *ccdc, · line 419
Quoted 8 lines
drivers/media/platform/omap3isp/ispccdc.c +0
-1return -EINVAL ; }@@ -416,8 +415,7 @@ static int ccdc_lsc_config(struct isp_ccdc_device *ccdc,return 0 ;if (update != (OMAP3ISP_CCDC_CONFIG_LSC |OMAP3ISP_CCDC_TBL_LSC )) { - dev_dbg(to_device(ccdc), "%s: Both LSC configuration and table
"
drivers/media/platform/omap3isp/ispccdc.c static int ccdc_lsc_config(struct isp_ccdc_device *ccdc, · line 418
Quoted 2 lines
drivers/media/platform/omap3isp/ispccdc.c +1
-1- "need to be supplied\n", __func__); + dev_dbg(to_device(ccdc), "%s: Both LSC configuration and table
need to be
Quoted 9 lines
drivers/media/platform/omap3isp/ispccdc.c +0
-0supplied\n", __func__); return -EINVAL; }(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/ispcsi2.cindexf75a1be29d84..53a7573ed2a5100644
drivers/media/platform/omap3isp/ispcsi2.c void omap3isp_csi2_isr(struct isp_csi2_device *csi2) · line 756
Quoted 6 lines
drivers/media/platform/omap3isp/ispcsi2.c +1
-2@@ -753,8 +753,7 @@ void omap3isp_csi2_isr(struct isp_csi2_device *csi2) ISPCSI2_PHY_IRQSTATUS);isp_reg_writel (isp, cpxio1_irqstatus, csi2->regs1,ISPCSI2_PHY_IRQSTATUS ); -dev_dbg (isp->dev,"CSI2: ComplexIO Error IRQ " -"%x\n" , cpxio1_irqstatus); + dev_dbg(isp->dev, "CSI2: ComplexIO Error IRQ %x\n",
cpxio1_irqstatus);
Quoted 5 lines
drivers/media/platform/omap3isp/ispcsi2.c +0
-0pipe->error = true; }@@ -763,13 +762,7 @@ void omap3isp_csi2_isr(struct isp_csi2_device *csi2) ISPCSI2_IRQSTATUS_ECC_NO_CORRECTION_IRQ |
drivers/media/platform/omap3isp/ispcsi2.c void omap3isp_csi2_isr(struct isp_csi2_device *csi2) · line 765
Quoted 10 lines
drivers/media/platform/omap3isp/ispcsi2.c +1
-7ISPCSI2_IRQSTATUS_COMPLEXIO2_ERR_IRQ | ISPCSI2_IRQSTATUS_FIFO_OVF_IRQ)) { - dev_dbg(isp->dev, "CSI2 Err:" - " OCP:%d," - " Short_pack:%d," - " ECC:%d," - " CPXIO2:%d," - " FIFO_OVF:%d," - "\n", + dev_dbg(isp->dev, "CSI2 Err: OCP:%d, Short_pack:%d, ECC:%d,
CPXIO2:%d,
Quoted 9 lines
FIFO_OVF:%d,\n", (
csi2_irqstatus&drivers/media/platform/omap3isp/ispcsi2.c +0
-0ISPCSI2_IRQSTATUS_OCP_ERR_IRQ) ? 1 : 0, (csi2_irqstatus &(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/ispcsiphy.cindex495447d66cfd..f67fd2f09f00100644
drivers/media/platform/omap3isp/ispcsiphy.c int omap3isp_csiphy_acquire(struct isp_csiphy *phy) · line 270
Quoted 6 lines
drivers/media/platform/omap3isp/ispcsiphy.c +1
-2@@ -267,8 +267,7 @@ int omap3isp_csiphy_acquire(struct isp_csiphy *phy)int rval;if (phy->vdd ==NULL ) { -dev_err (phy->isp->dev,"Power regulator for CSI PHY not " -"available\n" ); + dev_err(phy->isp->dev, "Power regulator for CSI PHY not
available\n");
Quoted 9 lines
drivers/media/platform/omap3isp/ispcsiphy.c +0
-0return -ENODEV ; }(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/isph3a_aewb.cindexccaf92f39236..de9bb3ea032e100644
drivers/media/platform/omap3isp/isph3a_aewb.c int omap3isp_h3a_aewb_init(struct isp_device *isp) · line 307
Quoted 6 lines
drivers/media/platform/omap3isp/isph3a_aewb.c +1
-2@@ -304,8 +304,7 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp) aewb_recover_cfg =devm_kzalloc (isp->dev,sizeof (*aewb_recover_cfg),GFP_KERNEL );if (!aewb_recover_cfg) { -dev_err (aewb->isp->dev,"AEWB: cannot allocate memory for " -"recover configuration.\n" ); + dev_err(aewb->isp->dev, "AEWB: cannot allocate memory for
recover
drivers/media/platform/omap3isp/isph3a_aewb.c int omap3isp_h3a_aewb_init(struct isp_device *isp) · line 323
Quoted 10 lines
drivers/media/platform/omap3isp/isph3a_aewb.c +1
-2configuration.\n"); return -ENOMEM; }@@ -321,8 +320,7 @@ int omap3isp_h3a_aewb_init(struct isp_device *isp) aewb_recover_cfg->subsample_hor_inc =OMAP3ISP_AEWB_MIN_SUB_INC ;if (h3a_aewb_validate_params (aewb, aewb_recover_cfg)) { -dev_err (aewb->isp->dev,"AEWB: recover configuration is " -"invalid.\n" ); + dev_err(aewb->isp->dev, "AEWB: recover configuration is
invalid.\n");
drivers/media/platform/omap3isp/isph3a_af.c int omap3isp_h3a_af_init(struct isp_device *isp) · line 370
Quoted 13 lines
drivers/media/platform/omap3isp/isph3a_aewb.c +0
-0return -EINVAL ; }(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/isph3a_af.cindex92937f7eecef..42607bda8e86100644drivers/media/platform/omap3isp/isph3a_af.c +0
-1@@ -367,8 +367,7 @@ int omap3isp_h3a_af_init(struct isp_device *isp) af_recover_cfg =devm_kzalloc (isp->dev,sizeof (*af_recover_cfg),GFP_KERNEL );if (!af_recover_cfg) { - dev_err(af->isp->dev, "AF: cannot allocate memory for recover
"
drivers/media/platform/omap3isp/isph3a_af.c int omap3isp_h3a_af_init(struct isp_device *isp) · line 381
Quoted 12 lines
drivers/media/platform/omap3isp/isph3a_af.c +2
-3- "configuration.\n"); + dev_err(af->isp->dev, "AF: cannot allocate memory for recover configuration.\n"); return -ENOMEM; }@@ -379,8 +378,7 @@ int omap3isp_h3a_af_init(struct isp_device *isp) af_recover_cfg->paxel.v_cnt =OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN ; af_recover_cfg->paxel.line_inc =OMAP3ISP_AF_PAXEL_INCREMENT_MIN ;if (h3a_af_validate_params (af, af_recover_cfg)) { -dev_err (af->isp->dev,"AF: recover configuration is " -"invalid.\n" ); + dev_err(af->isp->dev, "AF: recover configuration is invalid.
\n");
Quoted 9 lines
drivers/media/platform/omap3isp/isph3a_af.c +0
-0return -EINVAL ; }(quoted diff) +0
-0
b/drivers/media/platform/omap3isp/ispstat.cindex1b9217d3b1b6..220a9224271b100644
drivers/media/platform/omap3isp/ispstat.c static int isp_stat_buf_check_magic(struct ispstat · line 116
Quoted 6 lines
drivers/media/platform/omap3isp/ispstat.c +1
-2@@ -113,8 +113,7 @@ static int isp_stat_buf_check_magic(struct ispstat *stat, ret =0 ;if (ret) { -dev_dbg (stat->isp->dev,"%s: beginning magic check does not " -"match.\n" , stat->subdev.name); + dev_dbg(stat->isp->dev, "%s: beginning magic check does not
match.\n",
drivers/media/platform/omap3isp/ispstat.c static int isp_stat_buf_check_magic(struct ispstat · line 124
Quoted 10 lines
drivers/media/platform/omap3isp/ispstat.c +1
-2stat->subdev.name); return ret; }@@ -122,8 +121,7 @@ static int isp_stat_buf_check_magic(struct ispstat *stat, for (w = buf->virt_addr + buf_size, end = w + MAGIC_SIZE; w < end; w++) {if (unlikely (*w !=MAGIC_NUM )) { -dev_dbg (stat->isp->dev,"%s: ending magic check does " -"not match.\n" , stat->subdev.name); + dev_dbg(stat->isp->dev, "%s: ending magic check does
not match.\n",
drivers/media/platform/omap3isp/ispstat.c static void isp_stat_buf_next(struct ispstat *stat) · line 257
Quoted 10 lines
drivers/media/platform/omap3isp/ispstat.c +1
-2stat->subdev.name); return -EINVAL; } }@@ -256,8 +254,7 @@ static void isp_stat_buf_next(struct ispstat *stat) {if (unlikely (stat->active_buf))/* Overwriting unused active buffer */ - dev_dbg(stat->isp->dev, "%s: new buffer requested without " - "queuing active one.\n", + dev_dbg(stat->isp->dev, "%s: new buffer requested without
queuing active
drivers/media/platform/omap3isp/ispstat.c static struct ispstat_buffer *isp_stat_buf_get(struct · line 292
Quoted 10 lines
drivers/media/platform/omap3isp/ispstat.c +1
-2one.\n", stat->subdev.name); else stat->active_buf =isp_stat_buf_find_oldest_or_empty (stat);@@ -292,8 +289,7 @@ static struct ispstat_buffer *isp_stat_buf_get(struct ispstat *stat, return ERR_PTR(-EBUSY); }if (isp_stat_buf_check_magic (stat, buf)) { -dev_dbg (stat->isp->dev,"%s: current buffer has " -"corrupted data\n." , stat->subdev.name); + dev_dbg(stat->isp->dev, "%s: current buffer has
corrupted data\n.",
drivers/media/platform/omap3isp/ispstat.c static struct ispstat_buffer *isp_stat_buf_get(struct · line 306
Quoted 10 lines
stat->subdev.name); /* Mark empty because it doesn't have valid data. */drivers/media/platform/omap3isp/ispstat.c +1
-2buf->empty =1 ; }else {@@ -307,8 +303,7 @@ static struct ispstat_buffer *isp_stat_buf_get(struct ispstat *stat,spin_unlock_irqrestore (&stat->isp->stat_lock, flags);if (buf->buf_size > data->buf_size) { -dev_warn (stat->isp->dev,"%s: userspace's buffer size is " -"not enough.\n" , stat->subdev.name); + dev_warn(stat->isp->dev, "%s: userspace's buffer size is not
enough.\n",
Quoted 9 lines
drivers/media/platform/omap3isp/ispstat.c +0
-1stat->subdev.name); isp_stat_buf_release(stat);return ERR_PTR (-EINVAL ); }@@ -531,20 +526,17 @@ int omap3isp_stat_config(struct ispstat *stat, void *new_conf)mutex_lock (&stat->ioctl_lock); - dev_dbg(stat->isp->dev, "%s: configuring module with buffer "
drivers/media/platform/omap3isp/ispstat.c int omap3isp_stat_config(struct ispstat *stat, void · line 536
Quoted 10 lines
drivers/media/platform/omap3isp/ispstat.c +2
-3- "size=0x%08lx\n", stat->subdev.name, (unsigned long)buf_size); + dev_dbg(stat->isp->dev, "%s: configuring module with buffer size=0x%08lx\n", stat->subdev.name, (unsigned long)buf_size); ret = stat->ops->validate_params(stat, new_conf);if (ret) {mutex_unlock (&stat->ioctl_lock); -dev_dbg (stat->isp->dev,"%s: configuration values are " -"invalid.\n" , stat->subdev.name); + dev_dbg(stat->isp->dev, "%s: configuration values are invalid.
\n",
drivers/media/platform/omap3isp/ispstat.c int omap3isp_stat_config(struct ispstat *stat, void *new_conf)
Quoted 5 lines
drivers/media/platform/omap3isp/ispstat.c +0
-1stat->subdev.name); return ret; }if (buf_size != user_cfg->buf_size) - dev_dbg(stat->isp->dev, "%s: driver has corrected buffer size
"
drivers/media/platform/omap3isp/ispstat.c int omap3isp_stat_config(struct ispstat *stat, void · line 541
Quoted 2 lines
drivers/media/platform/omap3isp/ispstat.c +1
-1- "request to 0x%08lx\n", stat->subdev.name, + dev_dbg(stat->isp->dev, "%s: driver has corrected buffer size
request to
drivers/media/platform/omap3isp/ispstat.c int omap3isp_stat_config(struct ispstat *stat, void · line 591
Quoted 11 lines
drivers/media/platform/omap3isp/ispstat.c +0
-00x%08lx\n", stat->subdev.name, (unsigned long)user_cfg->buf_size);drivers/media/platform/omap3isp/ispstat.c +1
-2/* @@ -595,8 +587,7 @@ int omap3isp_stat_config(struct ispstat *stat, void *new_conf)/* Module has a valid configuration. */ stat->configured =1 ; -dev_dbg (stat->isp->dev,"%s: module has been successfully " -"configured.\n" , stat->subdev.name); + dev_dbg(stat->isp->dev, "%s: module has been successfully configured.
\n",
drivers/media/platform/omap3isp/ispstat.c int omap3isp_stat_enable(struct ispstat *stat, u8 · line 756
Quoted 11 lines
drivers/media/platform/omap3isp/ispstat.c +0
-0stat->subdev.name);drivers/media/platform/omap3isp/ispstat.c +1
-2mutex_unlock (&stat->ioctl_lock);@@ -762,8 +753,7 @@ int omap3isp_stat_enable(struct ispstat *stat, u8 enable) if (!stat->configured && enable) {spin_unlock_irqrestore (&stat->isp->stat_lock, irqflags);mutex_unlock (&stat->ioctl_lock); - dev_dbg(stat->isp->dev, "%s: cannot enable module as it's " - "never been successfully configured so far.\n", + dev_dbg(stat->isp->dev, "%s: cannot enable module as it's
never been
drivers/media/platform/omap3isp/ispstat.c static void __stat_isr(struct ispstat *stat, int · line 850
Quoted 6 lines
drivers/media/platform/omap3isp/ispstat.c +0
-0successfully configured so far.\n", stat->subdev.name);return -EINVAL ; }@@ -859,8 +849,7 @@ static void __stat_isr(struct ispstat *stat, int from_dma) if (stat->state == ISPSTAT_ENABLED) { spin_unlock_irqrestore(&stat->isp->stat_lock,
irqflags);
drivers/media/platform/omap3isp/ispstat.c static void __stat_isr(struct ispstat *stat, int · line 862
Quoted 2 lines
drivers/media/platform/omap3isp/ispstat.c +0
-1dev_err(stat->isp->dev, - "%s: interrupt occurred when module was still
"
drivers/media/platform/omap3isp/ispstat.c static void __stat_isr(struct ispstat *stat, int · line 852
Quoted 2 lines
drivers/media/platform/omap3isp/ispstat.c +1
-1- "processing a buffer.\n", stat->subdev.name); + "%s: interrupt occurred when module was still
processing a buffer.\n",
drivers/media/platform/omap3isp/ispstat.c static void __stat_isr(struct ispstat *stat, int · line 957
Quoted 11 lines
drivers/media/platform/omap3isp/ispstat.c +1
-2stat->subdev.name); ret = STAT_NO_BUF; goto out; }else {@@ -964,8 +953,7 @@ static void __stat_isr(struct ispstat *stat, int from_dma) atomic_set(&stat->buf_err, 1); ret =STAT_NO_BUF ; -dev_dbg (stat->isp->dev,"%s: cannot process buffer, " -"device is busy.\n" , stat- subdev.name); + dev_dbg(stat->isp->dev, "%s: cannot process buffer, device is
busy.\n",
Quoted 3 lines
drivers/media/platform/omap3isp/ispstat.c +0
-0stat->subdev.name); }out:
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 27/57 s5p-mfc: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 6 ++---- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +2 -4
@@ -793,8 +793,7 @@ static int vidioc_g_crop(struct file *file, void *priv, cr->c.top = top; cr->c.width = ctx->img_width - left - right; cr->c.height = ctx->img_height - top - bottom; -mfc_debug (2 ,"Cropping info [h264]: l=%d t=%d " -"w=%d h=%d (r=%d b=%d fw=%d fh=%d\n" , left, top, +mfc_debug (2 ,"Cropping info [h264]: l=%d t=%d w=%d h=%d (r=%d b=%d fw=%d fh=%d\n" , left, top, cr->c.width, cr->c.height, right, bottom, ctx->buf_width, ctx->buf_height); }else {
@@ -802,8 +801,7 @@ static int vidioc_g_crop(struct file *file, void *priv, cr->c.top =0 ; cr->c.width = ctx->img_width; cr->c.height = ctx->img_height; -mfc_debug (2 ,"Cropping info: w=%d h=%d fw=%d " -"fh=%d\n" , cr->c.width, cr->c.height, ctx->buf_width, +mfc_debug (2 ,"Cropping info: w=%d h=%d fw=%d fh=%d\n" , cr->c.width, cr->c.height, ctx->buf_width, ctx->buf_height); }return 0 ;
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c +2 -5
@@ -1293,14 +1293,11 @@ static int s5p_mfc_run_init_dec_buffers(struct s5p_mfc_ctx *ctx)* First set the output frame buffers */ if (ctx->capture_state !=QUEUE_BUFS_MMAPED ) { -mfc_err ("It seems that not all destionation buffers were " -"mmaped\nMFC requires that all destination are mmaped " -"before starting processing\n" ); +mfc_err ("It seems that not all destionation buffers were mmaped\nMFC requires that all destination are mmaped before starting processing\n" );return -EAGAIN ; }if (list_empty (&ctx->src_queue)) { -mfc_err ("Header has been deallocated in the middle of" -" initialization\n" ); +mfc_err ("Header has been deallocated in the middle of initialization\n" );return -EIO ; } temp_vb = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list);
Signature · 1 line
2.7.4
PATCH 28/57 c8sectpfe: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +5 -10
@@ -112,8 +112,7 @@ static void channel_swdemux_tsklet(unsigned long data) buf = (u8 *) channel->back_buffer_aligned;dev_dbg (fei->dev, -"chan=%d channel=%p num_packets = %d, buf = %p, pos = 0x%x\n\t" -"rp=0x%lx, wp=0x%lx\n" , +"chan=%d channel=%p num_packets = %d, buf = %p, pos = 0x%x\n\trp=0x%lx, wp=0x%lx\n" , channel->tsin_id, channel, num_packets, buf, pos, rp, wp);for (n =0 ; n < num_packets; n++) {
@@ -789,8 +788,7 @@ static int c8sectpfe_probe(struct platform_device *pdev)/* sanity check value */ if (tsin->tsin_id > fei->hw_stats.num_ib) {dev_err (&pdev->dev, -"tsin-num %d specified greater than number\n\t" -"of input block hw in SoC! (%d)" , +"tsin-num %d specified greater than number\n\tof input block hw in SoC! (%d)" , tsin->tsin_id, fei->hw_stats.num_ib); ret = -EINVAL ; goto err_clk_disable;
@@ -855,8 +853,7 @@ static int c8sectpfe_probe(struct platform_device *pdev) tsin->demux_mapping = index; dev_dbg(fei->dev, - "channel=%p n=%d tsin_num=%d, invert-ts-clk=%d\n\t" - "serial-not-parallel=%d pkt-clk-valid=%d dvb-card=%d\n", + "channel=%p n=%d tsin_num=%d, invert-ts-clk=%d\n\tserial-not-parallel=%d pkt-clk-valid=%d dvb-card=%d\n", fei->channel_data[index], index, tsin->tsin_id, tsin->invert_ts_clk, tsin->serial_not_parallel, tsin->async_not_sync,
@@ -1045,8 +1042,7 @@ static void load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr,*/ dev_dbg (fei->dev, -"Loading IMEM segment %d 0x%08x\n\t" -" (0x%x bytes) -> 0x%p (0x%x bytes)\n" , seg_num, +"Loading IMEM segment %d 0x%08x\n\t (0x%x bytes) -> 0x%p (0x%x bytes)\n" , seg_num, phdr->p_paddr, phdr->p_filesz, dest, phdr->p_memsz + phdr->p_memsz /3 );
@@ -1075,8 +1071,7 @@ static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr,*/ dev_dbg (fei->dev, -"Loading DMEM segment %d 0x%08x\n\t" -"(0x%x bytes) -> 0x%p (0x%x bytes)\n" , +"Loading DMEM segment %d 0x%08x\n\t(0x%x bytes) -> 0x%p (0x%x bytes)\n" , seg_num, phdr->p_paddr, phdr->p_filesz, dst, phdr->p_memsz);
Signature · 1 line
2.7.4
Peter Griffin
maintainerPATCH 28/57 c8sectpfe: don't break long lines
Quoted 9 lines · Mauro Carvalho Chehab
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 15 +++++----------
PATCH 29/57 ti-vpe: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/ti-vpe/vpdma.c | 12 ++++-------- drivers/media/platform/ti-vpe/vpe.c | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-)
drivers/media/platform/ti-vpe/vpdma.c +4 -8
@@ -466,8 +466,7 @@ static void dump_cfd(struct vpdma_cfd *cfd)pr_debug ("word2: payload_addr = 0x%08x\n" , cfd->payload_addr); -pr_debug ("word3: pkt_type = %d, direct = %d, class = %d, dest = %d, " -"payload_len = %d\n" ,cfd_get_pkt_type (cfd), +pr_debug ("word3: pkt_type = %d, direct = %d, class = %d, dest = %d, payload_len = %d\n" ,cfd_get_pkt_type (cfd),cfd_get_direct (cfd), class,cfd_get_dest (cfd),cfd_get_payload_len (cfd)); }
@@ -574,8 +573,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("%s data transfer descriptor for channel %d\n" , dir ==DTD_DIR_OUT ?"outbound" :"inbound" , chan); -pr_debug ("word0: data_type = %d, notify = %d, field = %d, 1D = %d, " -"even_ln_skp = %d, odd_ln_skp = %d, line_stride = %d\n" , +pr_debug ("word0: data_type = %d, notify = %d, field = %d, 1D = %d, even_ln_skp = %d, odd_ln_skp = %d, line_stride = %d\n" ,dtd_get_data_type (dtd),dtd_get_notify (dtd),dtd_get_field (dtd),dtd_get_1d (dtd),dtd_get_even_line_skip (dtd),dtd_get_odd_line_skip (dtd),dtd_get_line_stride (dtd));
@@ -586,8 +584,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("word2: start_addr = %pad\n" , &dtd->start_addr); -pr_debug ("word3: pkt_type = %d, mode = %d, dir = %d, chan = %d, " -"pri = %d, next_chan = %d\n" ,dtd_get_pkt_type (dtd), +pr_debug ("word3: pkt_type = %d, mode = %d, dir = %d, chan = %d, pri = %d, next_chan = %d\n" ,dtd_get_pkt_type (dtd),dtd_get_mode (dtd), dir, chan,dtd_get_priority (dtd),dtd_get_next_chan (dtd));
@@ -595,8 +592,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("word4: frame_width = %d, frame_height = %d\n" ,dtd_get_frame_width (dtd),dtd_get_frame_height (dtd)); else - pr_debug("word4: desc_write_addr = 0x%08x, write_desc = %d, " -"drp_data = %d, use_desc_reg = %d\n" , + pr_debug("word4: desc_write_addr = 0x%08x, write_desc = %d, drp_data = %d, use_desc_reg = %d\n",dtd_get_desc_write_addr (dtd),dtd_get_write_desc (dtd), dtd_get_drop_data(dtd), dtd_get_use_desc(dtd));
drivers/media/platform/ti-vpe/vpe.c +1 -2
@@ -1263,8 +1263,7 @@ static irqreturn_t vpe_irq(int irq_vpe, void *data) }if (irqst0 | irqst1) { -dev_warn (dev->v4l2_dev.dev,"Unexpected interrupt: " -"INT0_STATUS0 = 0x%08x, INT0_STATUS1 = 0x%08x\n" , +dev_warn (dev->v4l2_dev.dev,"Unexpected interrupt: INT0_STATUS0 = 0x%08x, INT0_STATUS1 = 0x%08x\n" , irqst0, irqst1); }
Signature · 1 line
2.7.4
Re: [PATCH 29/57] [media] ti-vpe: don't break long lines
Mauro Carvalho Chehab <[email protected]> wrote on Fri [2016-Oct-14 17:20:17 -0300]:
Quoted 74 lines
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/ti-vpe/vpdma.c | 12 ++++-------- drivers/media/platform/ti-vpe/vpe.c | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-)drivers/media/platform/ti-vpe/vpdma.c +4
-8@@ -466,8 +466,7 @@ static void dump_cfd(struct vpdma_cfd *cfd)pr_debug ("word2: payload_addr = 0x%08x\n" , cfd->payload_addr); -pr_debug ("word3: pkt_type = %d, direct = %d, class = %d, dest = %d, " -"payload_len = %d\n" ,cfd_get_pkt_type (cfd), +pr_debug ("word3: pkt_type = %d, direct = %d, class = %d, dest = %d, payload_len = %d\n" ,cfd_get_pkt_type (cfd),cfd_get_direct (cfd), class,cfd_get_dest (cfd),cfd_get_payload_len (cfd)); }@@ -574,8 +573,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("%s data transfer descriptor for channel %d\n" , dir ==DTD_DIR_OUT ?"outbound" :"inbound" , chan); -pr_debug ("word0: data_type = %d, notify = %d, field = %d, 1D = %d, " -"even_ln_skp = %d, odd_ln_skp = %d, line_stride = %d\n" , +pr_debug ("word0: data_type = %d, notify = %d, field = %d, 1D = %d, even_ln_skp = %d, odd_ln_skp = %d, line_stride = %d\n" ,dtd_get_data_type (dtd),dtd_get_notify (dtd),dtd_get_field (dtd),dtd_get_1d (dtd),dtd_get_even_line_skip (dtd),dtd_get_odd_line_skip (dtd),dtd_get_line_stride (dtd));@@ -586,8 +584,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("word2: start_addr = %pad\n" , &dtd->start_addr); -pr_debug ("word3: pkt_type = %d, mode = %d, dir = %d, chan = %d, " -"pri = %d, next_chan = %d\n" ,dtd_get_pkt_type (dtd), +pr_debug ("word3: pkt_type = %d, mode = %d, dir = %d, chan = %d, pri = %d, next_chan = %d\n" ,dtd_get_pkt_type (dtd),dtd_get_mode (dtd), dir, chan,dtd_get_priority (dtd),dtd_get_next_chan (dtd));@@ -595,8 +592,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)pr_debug ("word4: frame_width = %d, frame_height = %d\n" ,dtd_get_frame_width (dtd),dtd_get_frame_height (dtd)); else - pr_debug("word4: desc_write_addr = 0x%08x, write_desc = %d, " -"drp_data = %d, use_desc_reg = %d\n" , + pr_debug("word4: desc_write_addr = 0x%08x, write_desc = %d, drp_data = %d, use_desc_reg = %d\n",dtd_get_desc_write_addr (dtd),dtd_get_write_desc (dtd), dtd_get_drop_data(dtd), dtd_get_use_desc(dtd));drivers/media/platform/ti-vpe/vpe.c +1
-2@@ -1263,8 +1263,7 @@ static irqreturn_t vpe_irq(int irq_vpe, void *data) }if (irqst0 | irqst1) { -dev_warn (dev->v4l2_dev.dev,"Unexpected interrupt: " -"INT0_STATUS0 = 0x%08x, INT0_STATUS1 = 0x%08x\n" , +dev_warn (dev->v4l2_dev.dev,"Unexpected interrupt: INT0_STATUS0 = 0x%08x, INT0_STATUS1 = 0x%08x\n" , irqst0, irqst1); }Signature · 1 line
2.7.4
PATCH 30/57 si470x: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/radio/si470x/radio-si470x-i2c.c | 6 ++---- drivers/media/radio/si470x/radio-si470x-usb.c | 12 ++++-------- 2 files changed, 6 insertions(+), 12 deletions(-)
drivers/media/radio/si470x/radio-si470x-i2c.c +2 -4
@@ -387,8 +387,7 @@ static int si470x_i2c_probe(struct i2c_client *client, radio->registers[DEVICEID], radio->registers[SI_CHIPID]);if ((radio->registers[SI_CHIPID ] &SI_CHIPID_FIRMWARE ) <RADIO_FW_VERSION ) {dev_warn (&client->dev, -"This driver is known to work with " -"firmware version %hu,\n" ,RADIO_FW_VERSION ); +"This driver is known to work with firmware version %hu,\n" ,RADIO_FW_VERSION );dev_warn (&client->dev,"but the device has firmware version %hu.\n" , radio->registers[SI_CHIPID ] &SI_CHIPID_FIRMWARE );
@@ -400,8 +399,7 @@ static int si470x_i2c_probe(struct i2c_client *client,dev_warn (&client->dev,"If you have some trouble using this driver,\n" );dev_warn (&client->dev, -"please report to V4L ML at " -"[email protected]\n" ); +"please report to V4L ML at [email protected]\n" ); }/* set initial frequency */
drivers/media/radio/si470x/radio-si470x-usb.c +4 -8
@@ -351,8 +351,7 @@ static int si470x_get_scratch_page_versions(struct si470x_device *radio) retval =si470x_get_report (radio, radio->usb_buf,SCRATCH_REPORT_SIZE );if (retval <0 ) -dev_warn (&radio->intf->dev,"si470x_get_scratch: " -"si470x_get_report returned %d\n" , retval); +dev_warn (&radio->intf->dev,"si470x_get_scratch: si470x_get_report returned %d\n" , retval);else { radio->software_version = radio->usb_buf[1 ]; radio->hardware_version = radio->usb_buf[2 ];
@@ -688,8 +687,7 @@ static int si470x_usb_driver_probe(struct usb_interface *intf, radio->registers[DEVICEID], radio->registers[SI_CHIPID]);if ((radio->registers[SI_CHIPID ] &SI_CHIPID_FIRMWARE ) <RADIO_FW_VERSION ) {dev_warn (&intf->dev, -"This driver is known to work with " -"firmware version %hu,\n" ,RADIO_FW_VERSION ); +"This driver is known to work with firmware version %hu,\n" ,RADIO_FW_VERSION );dev_warn (&intf->dev,"but the device has firmware version %hu.\n" , radio->registers[SI_CHIPID ] &SI_CHIPID_FIRMWARE );
@@ -705,8 +703,7 @@ static int si470x_usb_driver_probe(struct usb_interface *intf, radio->software_version, radio->hardware_version);if (radio->hardware_version <RADIO_HW_VERSION ) {dev_warn (&intf->dev, -"This driver is known to work with " -"hardware version %hu,\n" ,RADIO_HW_VERSION ); +"This driver is known to work with hardware version %hu,\n" ,RADIO_HW_VERSION );dev_warn (&intf->dev,"but the device has hardware version %hu.\n" , radio->hardware_version);
@@ -718,8 +715,7 @@ static int si470x_usb_driver_probe(struct usb_interface *intf,dev_warn (&intf->dev,"If you have some trouble using this driver,\n" );dev_warn (&intf->dev, -"please report to V4L ML at " -"[email protected]\n" ); +"please report to V4L ML at [email protected]\n" ); }/* set led to connect state */
Signature · 1 line
2.7.4
PATCH 31/57 si4713: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/radio/si4713/si4713.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/media/radio/si4713/si4713.c +2 -5
@@ -716,8 +716,7 @@ static int si4713_tx_tune_status(struct si4713_device *sdev, u8 intack, *power = val[5 ]; *antcap = val[6 ]; *noise = val[7 ]; -v4l2_dbg (1 , debug, &sdev->sd,"%s: response: %d x 10 kHz " -"(power %d, antcap %d, rnl %d)\n" , __func__, +v4l2_dbg (1 , debug, &sdev->sd,"%s: response: %d x 10 kHz (power %d, antcap %d, rnl %d)\n" , __func__, *frequency, *power, *antcap, *noise); }
@@ -758,9 +757,7 @@ static int si4713_tx_rds_buff(struct si4713_device *sdev, u8 mode, u16 rdsb,v4l2_dbg (1 , debug, &sdev->sd,"%s: status=0x%02x\n" , __func__, val[0 ]); *cbleft = (s8 )val[2 ] - val[3 ]; -v4l2_dbg (1 , debug, &sdev->sd,"%s: response: interrupts" -" 0x%02x cb avail: %d cb used %d fifo avail" -" %d fifo used %d\n" , __func__, val[1 ], +v4l2_dbg (1 , debug, &sdev->sd,"%s: response: interrupts 0x%02x cb avail: %d cb used %d fifo avail %d fifo used %d\n" , __func__, val[1 ], val[2 ], val[3 ], val[4 ], val[5 ]); }
Signature · 1 line
2.7.4
PATCH 32/57 wl128x: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/radio/wl128x/fmdrv_common.c | 21 +++++++-------------- drivers/media/radio/wl128x/fmdrv_rx.c | 6 ++---- 2 files changed, 9 insertions(+), 18 deletions(-)
drivers/media/radio/wl128x/fmdrv_common.c +7 -14
@@ -230,8 +230,7 @@ inline void dump_rx_skb_data(struct sk_buff *skb)struct fm_event_msg_hdr *evt_hdr; evt_hdr = (struct fm_event_msg_hdr *)skb->data; -printk (KERN_INFO ">> hdr:%02x len:%02x sts:%02x numhci:%02x " -"opcode:%02x type:%s dlen:%02x" , evt_hdr->hdr, evt_hdr->len, +printk (KERN_INFO ">> hdr:%02x len:%02x sts:%02x numhci:%02x opcode:%02x type:%s dlen:%02x" , evt_hdr->hdr, evt_hdr->len, evt_hdr->status, evt_hdr->num_fm_hci_cmds, evt_hdr->op, (evt_hdr->rd_wr) ?"RD" :"WR" , evt_hdr->dlen);
@@ -271,8 +270,7 @@ static void recv_tasklet(unsigned long arg)/* Process all packets in the RX queue */ while ((skb =skb_dequeue (&fmdev->rx_q))) {if (skb->len <sizeof (struct fm_event_msg_hdr )) { -fmerr ("skb(%p) has only %d bytes, " -"at least need %zu bytes to decode\n" , skb, +fmerr ("skb(%p) has only %d bytes, at least need %zu bytes to decode\n" , skb, skb->len,sizeof (struct fm_event_msg_hdr ));kfree_skb (skb);continue ;
@@ -472,8 +470,7 @@ int fmc_send_cmd(struct fmdev *fmdev, u8 fm_op, u16 type, void *payload,if (!wait_for_completion_timeout (&fmdev->maintask_comp,FM_DRV_TX_TIMEOUT )) { -fmerr ("Timeout(%d sec),didn't get reg" -"completion signal from RX tasklet\n" , +fmerr ("Timeout(%d sec),didn't get regcompletion signal from RX tasklet\n" ,jiffies_to_msecs (FM_DRV_TX_TIMEOUT ) /1000 );return -ETIMEDOUT ; }
@@ -523,8 +520,7 @@ static inline int check_cmdresp_status(struct fmdev *fmdev, fm_evt_hdr = (void *)(*skb)->data;if (fm_evt_hdr->status !=0 ) { -fmerr ("irq: opcode %x response status is not zero " -"Initiating irq recovery process\n" , +fmerr ("irq: opcode %x response status is not zero Initiating irq recovery process\n" , fm_evt_hdr->op);mod_timer (&fmdev->irq_info.timer, jiffies +FM_DRV_TX_TIMEOUT );
@@ -564,8 +560,7 @@ static void int_timeout_handler(unsigned long data)* reset stage index & retry count values */ fmirq->stage =0 ; fmirq->retry =0 ; -fmerr ("Recovery action failed during" -"irq processing, max retry reached\n" ); +fmerr ("Recovery action failed duringirq processing, max retry reached\n" );return ; }fm_irq_call_stage (fmdev,FM_SEND_INTMSK_CMD_IDX );
@@ -1516,14 +1511,12 @@ int fmc_prepare(struct fmdev *fmdev)if (!wait_for_completion_timeout (&wait_for_fmdrv_reg_comp,FM_ST_REG_TIMEOUT )) { -fmerr ("Timeout(%d sec), didn't get reg " -"completion signal from ST\n" , +fmerr ("Timeout(%d sec), didn't get reg completion signal from ST\n" ,jiffies_to_msecs (FM_ST_REG_TIMEOUT ) /1000 );return -ETIMEDOUT ; }if (fmdev->streg_cbdata !=0 ) { -fmerr ("ST reg comp CB called with error " -"status %d\n" , fmdev->streg_cbdata); +fmerr ("ST reg comp CB called with error status %d\n" , fmdev->streg_cbdata);return -EAGAIN ; }
drivers/media/radio/wl128x/fmdrv_rx.c +2 -4
@@ -120,8 +120,7 @@ int fm_rx_set_freq(struct fmdev *fmdev, u32 freq) curr_frq_in_khz = (fmdev->rx.region.bot_freq + ((u32 )curr_frq *FM_FREQ_MUL ));if (curr_frq_in_khz != freq) { -pr_info ("Frequency is set to (%d) but " -"requested freq is (%d)\n" , curr_frq_in_khz, freq); +pr_info ("Frequency is set to (%d) but requested freq is (%d)\n" , curr_frq_in_khz, freq); }/* Update local cache */
@@ -390,8 +389,7 @@ int fm_rx_set_region(struct fmdev *fmdev, u8 region_to_set) new_frq = fmdev->rx.region.top_freq;if (new_frq) { -fmdbg ("Current freq is not within band limit boundary," -"switching to %d KHz\n" , new_frq); +fmdbg ("Current freq is not within band limit boundary,switching to %d KHz\n" , new_frq);/* Current RX frequency is not in range. So, update it */ ret =fm_rx_set_freq (fmdev, new_frq); }
Signature · 1 line
2.7.4
PATCH 33/57 au0828: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/au0828/au0828-video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/au0828/au0828-video.c +1 -2
@@ -253,8 +253,7 @@ static int au0828_init_isoc(struct au0828_dev *dev, int max_packets, dev->isoc_ctl.transfer_buffer[i] =usb_alloc_coherent (dev->usbdev, sb_size,GFP_KERNEL , &urb->transfer_dma);if (!dev->isoc_ctl.transfer_buffer[i]) { -printk ("unable to allocate %i bytes for transfer" -" buffer %i%s\n" , +printk ("unable to allocate %i bytes for transfer buffer %i%s\n" , sb_size, i,in_interrupt () ?" while in int" :"" );au0828_uninit_isoc (dev);
Signature · 1 line
2.7.4
PATCH 34/57 b2c2: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/b2c2/flexcop-usb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/media/usb/b2c2/flexcop-usb.c +3 -6
@@ -33,8 +33,7 @@static int debug;module_param (debug, int,0644 ); -MODULE_PARM_DESC (debug,"set debugging level (1=info,ts=2," -"ctrl=4,i2c=8,v8mem=16 (or-able))." DEBSTATUS ); +MODULE_PARM_DESC (debug,"set debugging level (1=info,ts=2,ctrl=4,i2c=8,v8mem=16 (or-able))." DEBSTATUS );#undef DEBSTATUS #define deb_info(args...) dprintk(0x01, args)
@@ -403,8 +402,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) frame_size, i, j, ret;int buffer_offset =0 ; -deb_ts ("creating %d iso-urbs with %d frames " -"each of %d bytes size = %d.\n" ,B2C2_USB_NUM_ISO_URB , +deb_ts ("creating %d iso-urbs with %d frames each of %d bytes size = %d.\n" ,B2C2_USB_NUM_ISO_URB ,B2C2_USB_FRAMES_PER_ISO , frame_size, bufsize); fc_usb->iso_buffer = usb_alloc_coherent(fc_usb->udev,
@@ -429,8 +427,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)for (i =0 ; i <B2C2_USB_NUM_ISO_URB ; i++) {int frame_offset =0 ;struct urb *urb = fc_usb->iso_urb[i]; -deb_ts ("initializing and submitting urb no. %d " -"(buf_offset: %d).\n" , i, buffer_offset); +deb_ts ("initializing and submitting urb no. %d (buf_offset: %d).\n" , i, buffer_offset); urb->dev = fc_usb->udev; urb->context = fc_usb;
Signature · 1 line
2.7.4
PATCH 35/57 cpia2: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/cpia2/cpia2_usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/usb/cpia2/cpia2_usb.c +1 -3
@@ -733,9 +733,7 @@ int cpia2_usb_stream_start(struct camera_data *cam, unsigned int alternate) cam->params.camera_state.stream_mode = old_alt; ret2 =set_alternate (cam,USBIF_CMDONLY );if (ret2 <0 ) { -ERR ("cpia2_usb_change_streaming_alternate(%d) =%d has already " -"failed. Then tried to call " -"set_alternate(USBIF_CMDONLY) = %d.\n" , +ERR ("cpia2_usb_change_streaming_alternate(%d) =%d has already failed. Then tried to call set_alternate(USBIF_CMDONLY) = %d.\n" , alternate, ret, ret2); } }else {
Signature · 1 line
2.7.4
PATCH 36/57 cx231xx: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/cx231xx/cx231xx-core.c | 9 +++------ drivers/media/usb/cx231xx/cx231xx-dvb.c | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-)
drivers/media/usb/cx231xx/cx231xx-core.c +3 -6
@@ -241,8 +241,7 @@ static int __usb_control_msg(struct cx231xx *dev, unsigned int pipe,int rc, i;if (reg_debug) { - printk(KERN_DEBUG "%s: (pipe 0x%08x): " - "%s: %02x %02x %02x %02x %02x %02x %02x %02x ", + printk(KERN_DEBUG "%s: (pipe 0x%08x): %s: %02x %02x %02x %02x %02x %02x %02x %02x ", dev->name, pipe, (requesttype & USB_DIR_IN) ? "IN" : "OUT",
@@ -441,8 +440,7 @@ int cx231xx_write_ctrl_reg(struct cx231xx *dev, u8 req, u16 reg, char *buf,if (reg_debug) {int byte; - cx231xx_isocdbg("(pipe 0x%08x): " - "OUT: %02x %02x %02x %02x %02x %02x %02x %02x >>>", + cx231xx_isocdbg("(pipe 0x%08x): OUT: %02x %02x %02x %02x %02x %02x %02x %02x >>>", pipe, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, req, 0, val, reg & 0xff,
@@ -600,8 +598,7 @@ int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt)return -1 ; } -cx231xx_coredbg ("setting alternate %d with wMaxPacketSize=%u," -"Interface = %d\n" , alt, max_pkt_size, +cx231xx_coredbg ("setting alternate %d with wMaxPacketSize=%u,Interface = %d\n" , alt, max_pkt_size, usb_interface_index);if (usb_interface_index >0 ) {
drivers/media/usb/cx231xx/cx231xx-dvb.c +1 -2
@@ -377,8 +377,7 @@ static int attach_xc5000(u8 addr, struct cx231xx *dev) cfg.i2c_addr = addr;if (!dev->dvb->frontend) { -dev_err (dev->dev,"%s/2: dvb frontend not attached. " -"Can't attach xc5000\n" , dev->name); +dev_err (dev->dev,"%s/2: dvb frontend not attached. Can't attach xc5000\n" , dev->name);return -EINVAL ; }
Signature · 1 line
2.7.4
PATCH 37/57 dvb-usb: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/dvb-usb/cinergyT2-core.c | 6 ++---- drivers/media/usb/dvb-usb/dib0700_core.c | 5 +---- drivers/media/usb/dvb-usb/dib0700_devices.c | 3 +-- drivers/media/usb/dvb-usb/dvb-usb-dvb.c | 3 +-- drivers/media/usb/dvb-usb/dvb-usb-firmware.c | 6 ++---- drivers/media/usb/dvb-usb/dw2102.c | 10 ++-------- drivers/media/usb/dvb-usb/friio.c | 3 +-- drivers/media/usb/dvb-usb/gp8psk.c | 3 +-- drivers/media/usb/dvb-usb/opera1.c | 3 +-- drivers/media/usb/dvb-usb/technisat-usb2.c | 3 +-- 10 files changed, 13 insertions(+), 32 deletions(-)
drivers/media/usb/dvb-usb/cinergyT2-core.c +2 -4
@@ -34,8 +34,7 @@int dvb_usb_cinergyt2_debug;module_param_named (debug, dvb_usb_cinergyt2_debug, int,0644 ); -MODULE_PARM_DESC (debug,"set debugging level (1=info, xfer=2, rc=4 " -"(or-able))." ); +MODULE_PARM_DESC (debug,"set debugging level (1=info, xfer=2, rc=4 (or-able))." );DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr);
@@ -74,8 +73,7 @@ static int cinergyt2_frontend_attach(struct dvb_usb_adapter *adap) ret =dvb_usb_generic_rw (adap->dev, query,sizeof (query), state,sizeof (state),0 );if (ret <0 ) { -deb_rc ("cinergyt2_power_ctrl() Failed to retrieve sleep " -"state info\n" ); +deb_rc ("cinergyt2_power_ctrl() Failed to retrieve sleep state info\n" ); }/* Copy this pointer as we are gonna need it in the release phase */
drivers/media/usb/dvb-usb/dib0700_core.c +1 -4
@@ -16,10 +16,7 @@ MODULE_PARM_DESC(debug, "set debugging level (1=info,2=fw,4=fwdata,8=data (or-abstatic int nb_packet_buffer_size =21 ;module_param (nb_packet_buffer_size, int,0644 );MODULE_PARM_DESC (nb_packet_buffer_size, -"Set the dib0700 driver data buffer size. This parameter " -"corresponds to the number of TS packets. The actual size of " -"the data buffer corresponds to this parameter " -"multiplied by 188 (default: 21)" ); +"Set the dib0700 driver data buffer size. This parameter corresponds to the number of TS packets. The actual size of the data buffer corresponds to this parameter multiplied by 188 (default: 21)" );DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr);
drivers/media/usb/dvb-usb/dib0700_devices.c +1 -2
@@ -26,8 +26,7 @@static int force_lna_activation;module_param (force_lna_activation, int,0644 ); -MODULE_PARM_DESC (force_lna_activation,"force the activation of Low-Noise-Amplifyer(s) (LNA), " -"if applicable for the device (default: 0=automatic/off)." ); +MODULE_PARM_DESC (force_lna_activation,"force the activation of Low-Noise-Amplifyer(s) (LNA), if applicable for the device (default: 0=automatic/off)." );struct dib0700_adapter_state {int (*set_param_save) (struct dvb_frontend *);
drivers/media/usb/dvb-usb/dvb-usb-dvb.c +1 -2
@@ -277,8 +277,7 @@ int dvb_usb_adapter_frontend_init(struct dvb_usb_adapter *adap)for (i =0 ; i < adap->props.num_frontends; i++) {if (adap->props.fe[i].frontend_attach ==NULL ) { -err ("strange: '%s' #%d,%d " -"doesn't want to attach a frontend." , +err ("strange: '%s' #%d,%d doesn't want to attach a frontend." , adap->dev->desc->name, adap->id, i);return 0 ;
drivers/media/usb/dvb-usb/dvb-usb-firmware.c +2 -4
@@ -49,8 +49,7 @@ int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw ret =usb_cypress_writemem (udev,hx.addr,hx.data,hx.len);if (ret != hx.len) { -err ("error while transferring firmware " -"(transferred size: %d, block size: %d)" , +err ("error while transferring firmware (transferred size: %d, block size: %d)" , ret,hx.len); ret = -EINVAL ;break ;
@@ -81,8 +80,7 @@ int dvb_usb_download_firmware(struct usb_device *udev, struct dvb_usb_device_proconst struct firmware *fw =NULL ;if ((ret =request_firmware (&fw, props->firmware, &udev->dev)) !=0 ) { -err ("did not find the firmware file. (%s) " -"Please see linux/Documentation/dvb/ for more details on firmware-problems. (%d)" , +err ("did not find the firmware file. (%s) Please see linux/Documentation/dvb/ for more details on firmware-problems. (%d)" , props->firmware,ret);return ret; }
drivers/media/usb/dvb-usb/dw2102.c +2 -8
@@ -86,8 +86,7 @@ MODULE_PARM_DESC(debug, "set debugging level (1=info 2=xfer 4=rc(or-able))."/* demod probe */ static int demod_probe =1 ;module_param_named (demod, demod_probe, int,0644 ); -MODULE_PARM_DESC (demod,"demod to probe (1=cx24116 2=stv0903+stv6110 " -"4=stv0903+stb6100(or-able))." ); +MODULE_PARM_DESC (demod,"demod to probe (1=cx24116 2=stv0903+stv6110 4=stv0903+stb6100(or-able))." );DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr);
@@ -2343,12 +2342,7 @@ static struct usb_driver dw2102_driver = {module_usb_driver (dw2102_driver);MODULE_AUTHOR ("Igor M. Liplianin (c) [email protected]" ); -MODULE_DESCRIPTION ("Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104," -" DVB-C 3101 USB2.0," -" TeVii S421, S480, S482, S600, S630, S632, S650," -" TeVii S660, S662, Prof 1100, 7500 USB2.0," -" Geniatech SU3000, T220," -" TechnoTrend S2-4600, Terratec Cinergy S2 devices" ); +MODULE_DESCRIPTION ("Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104, DVB-C 3101 USB2.0, TeVii S421, S480, S482, S600, S630, S632, S650, TeVii S660, S662, Prof 1100, 7500 USB2.0, Geniatech SU3000, T220, TechnoTrend S2-4600, Terratec Cinergy S2 devices" );MODULE_VERSION ("0.1" );MODULE_LICENSE ("GPL" );MODULE_FIRMWARE (DW2101_FIRMWARE );
drivers/media/usb/dvb-usb/friio.c +1 -2
@@ -320,8 +320,7 @@ static int friio_initialize(struct dvb_usb_device *d)*/ if (rbuf[0 ] &0x80 ) {/* still in PowerOnReset state? */ if (++retry >3 ) { -deb_info ("failed to get the correct" -" FE demod status:0x%02x\n" , rbuf[0 ]); +deb_info ("failed to get the correct FE demod status:0x%02x\n" , rbuf[0 ]); goto error; }msleep (100 );
drivers/media/usb/dvb-usb/gp8psk.c +1 -2
@@ -117,8 +117,7 @@ static int gp8psk_load_bcm4500fw(struct dvb_usb_device *d)u8 *buf;if ((ret =request_firmware (&fw, bcm4500_firmware, &d->udev->dev)) !=0 ) { -err ("did not find the bcm4500 firmware file. (%s) " -"Please see linux/Documentation/dvb/ for more details on firmware-problems. (%d)" , +err ("did not find the bcm4500 firmware file. (%s) Please see linux/Documentation/dvb/ for more details on firmware-problems. (%d)" , bcm4500_firmware,ret);return ret; }
drivers/media/usb/dvb-usb/opera1.c +1 -2
@@ -453,8 +453,7 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev,info ("start downloading fpga firmware %s" ,filename);if ((ret =request_firmware (&fw, filename, &dev->dev)) !=0 ) { -err ("did not find the firmware file. (%s) " -"Please see linux/Documentation/dvb/ for more details on firmware-problems." , +err ("did not find the firmware file. (%s) Please see linux/Documentation/dvb/ for more details on firmware-problems." , filename);return ret; }else {
drivers/media/usb/dvb-usb/technisat-usb2.c +1 -2
@@ -50,8 +50,7 @@ MODULE_PARM_DESC(debug,static int disable_led_control;module_param (disable_led_control, int,0444 );MODULE_PARM_DESC (disable_led_control, -"disable LED control of the device " -"(default: 0 - LED control is active)." ); +"disable LED control of the device (default: 0 - LED control is active)." );/* device private data */ struct technisat_usb2_state {
Signature · 1 line
2.7.4
PATCH 38/57 dvb-usb-v2: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c | 10 +++------- drivers/media/usb/dvb-usb-v2/mxl111sf.c | 9 +++------ 2 files changed, 6 insertions(+), 13 deletions(-)
drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c +3 -7
@@ -666,8 +666,7 @@ static int mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state,if (rd_status[i] ==0x04 ) {if (i <7 ) { -mxl_i2c ("i2c fifo empty!" -" @ %d" , i); +mxl_i2c ("i2c fifo empty! @ %d" , i); msg->buf[(index*8 )+i] = i2c_r_data[(i*3 )+1 ];/* read again */
@@ -692,8 +691,7 @@ static int mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state, } goto stop_copy; }else { -mxl_i2c ("readagain " -"ERROR!" ); +mxl_i2c ("readagain ERROR!" ); } }else { msg->buf[(index*8)+i] =
@@ -827,9 +825,7 @@ int mxl111sf_i2c_xfer(struct i2c_adapter *adap, mxl111sf_i2c_hw_xfer_msg(state, &msg[i]) :mxl111sf_i2c_sw_xfer_msg (state, &msg[i]);if (mxl_fail (ret)) { -mxl_debug_adv ("failed with error %d on i2c " -"transaction %d of %d, %sing %d bytes " -"to/from 0x%02x" , ret, i+1 , num, +mxl_debug_adv ("failed with error %d on i2c transaction %d of %d, %sing %d bytes to/from 0x%02x" , ret, i+1 , num, (msg[i].flags &I2C_M_RD ) ?"read" :"writ" , msg[i].len, msg[i].addr);
drivers/media/usb/dvb-usb-v2/mxl111sf.c +3 -6
@@ -29,8 +29,7 @@int dvb_usb_mxl111sf_debug;module_param_named (debug, dvb_usb_mxl111sf_debug, int,0644 ); -MODULE_PARM_DESC (debug,"set debugging level " -"(1=info, 2=xfer, 4=i2c, 8=reg, 16=adv (or-able))." ); +MODULE_PARM_DESC (debug,"set debugging level (1=info, 2=xfer, 4=i2c, 8=reg, 16=adv (or-able))." );static int dvb_usb_mxl111sf_isoc;module_param_named (isoc, dvb_usb_mxl111sf_isoc, int,0644 );
@@ -137,8 +136,7 @@ int mxl111sf_write_reg_mask(struct mxl111sf_state *state,#if 1 /* dont know why this usually errors out on the first try */ if (mxl_fail (ret)) -pr_err ("error writing addr: 0x%02x, mask: 0x%02x, " -"data: 0x%02x, retrying..." , addr, mask, data); +pr_err ("error writing addr: 0x%02x, mask: 0x%02x, data: 0x%02x, retrying..." , addr, mask, data); ret =mxl111sf_read_reg (state, addr, &val);#endif
@@ -946,8 +944,7 @@ static int mxl111sf_init(struct dvb_usb_device *d)case 138001 :break ;default : -printk (KERN_WARNING "%s: warning: " -"unknown hauppauge model #%d\n" , +printk (KERN_WARNING "%s: warning: unknown hauppauge model #%d\n" , __func__, state->tv.model); }#endif
Signature · 1 line
2.7.4
PATCH 39/57 em28xx: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/em28xx/em28xx-cards.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/em28xx/em28xx-cards.c +1 -2
@@ -1561,8 +1561,7 @@ struct em28xx_board em28xx_boards[] = { } }, }, [EM2820_BOARD_PINNACLE_DVC_90] = { - .name = "Pinnacle Dazzle DVC 90/100/101/107 / Kaiser Baas Video to DVD maker " - "/ Kworld DVD Maker 2 / Plextor ConvertX PX-AV100U", + .name = "Pinnacle Dazzle DVC 90/100/101/107 / Kaiser Baas Video to DVD maker / Kworld DVD Maker 2 / Plextor ConvertX PX-AV100U", .tuner_type = TUNER_ABSENT, /* capture only board */ .decoder = EM28XX_SAA711X, .input = { {
Signature · 1 line
2.7.4
PATCH 40/57 hdpvr: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/hdpvr/hdpvr-core.c | 9 +++------ drivers/media/usb/hdpvr/hdpvr-i2c.c | 6 ++---- drivers/media/usb/hdpvr/hdpvr-video.c | 4 +--- 3 files changed, 6 insertions(+), 13 deletions(-)
drivers/media/usb/hdpvr/hdpvr-core.c +3 -6
@@ -41,13 +41,11 @@ MODULE_PARM_DESC(hdpvr_debug, "enable debugging output");static uint default_video_input =HDPVR_VIDEO_INPUTS ;module_param (default_video_input, uint,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (default_video_input,"default video input: 0=Component / " -"1=S-Video / 2=Composite" ); +MODULE_PARM_DESC (default_video_input,"default video input: 0=Component / 1=S-Video / 2=Composite" );static uint default_audio_input =HDPVR_AUDIO_INPUTS ;module_param (default_audio_input, uint,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (default_audio_input,"default audio input: 0=RCA back / " -"1=RCA front / 2=S/PDIF" ); +MODULE_PARM_DESC (default_audio_input,"default audio input: 0=RCA back / 1=RCA front / 2=S/PDIF" );static bool boost_audio;module_param (boost_audio, bool,S_IRUGO |S_IWUSR );
@@ -165,8 +163,7 @@ static int device_authorization(struct hdpvr_device *dev) dev->flags |=HDPVR_FLAG_AC3_CAP ;break ;default : -v4l2_info (&dev->v4l2_dev,"untested firmware, the driver might" -" not work.\n" ); +v4l2_info (&dev->v4l2_dev,"untested firmware, the driver might not work.\n" );if (dev->fw_ver >=HDPVR_FIRMWARE_VERSION_AC3 ) dev->flags |=HDPVR_FLAG_AC3_CAP ;else
drivers/media/usb/hdpvr/hdpvr-i2c.c +2 -4
@@ -145,15 +145,13 @@ static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs, msgs[0].len); }else if (num ==2 ) {if (msgs[0 ].addr != msgs[1 ].addr) { -v4l2_warn (&dev->v4l2_dev,"refusing 2-phase i2c xfer " -"with conflicting target addresses\n" ); +v4l2_warn (&dev->v4l2_dev,"refusing 2-phase i2c xfer with conflicting target addresses\n" ); retval = -EINVAL ; goto out; }if ((msgs[0 ].flags &I2C_M_RD ) || !(msgs[1 ].flags &I2C_M_RD )) { -v4l2_warn (&dev->v4l2_dev,"refusing complex xfer with " -"r0=%d, r1=%d\n" , msgs[0 ].flags &I2C_M_RD , +v4l2_warn (&dev->v4l2_dev,"refusing complex xfer with r0=%d, r1=%d\n" , msgs[0 ].flags &I2C_M_RD , msgs[1 ].flags &I2C_M_RD ); retval = -EINVAL ; goto out;
drivers/media/usb/hdpvr/hdpvr-video.c +1 -3
@@ -337,9 +337,7 @@ static int hdpvr_stop_streaming(struct hdpvr_device *dev) buf =kmalloc (dev->bulk_in_size,GFP_KERNEL );if (!buf) -v4l2_err (&dev->v4l2_dev,"failed to allocate temporary buffer " -"for emptying the internal device buffer. " -"Next capture start will be slow\n" ); +v4l2_err (&dev->v4l2_dev,"failed to allocate temporary buffer for emptying the internal device buffer. Next capture start will be slow\n" ); dev->status =STATUS_SHUTTING_DOWN ;hdpvr_config_call (dev,CTRL_STOP_STREAMING_VALUE ,0x00 );
Signature · 1 line
2.7.4
PATCH 41/57 pvrusb2: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/pvrusb2/pvrusb2-audio.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-debugifc.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-eeprom.c | 6 +- drivers/media/usb/pvrusb2/pvrusb2-encoder.c | 28 +--- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 175 +++++++----------------- drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 33 ++--- drivers/media/usb/pvrusb2/pvrusb2-io.c | 33 ++--- drivers/media/usb/pvrusb2/pvrusb2-ioread.c | 33 ++--- drivers/media/usb/pvrusb2/pvrusb2-std.c | 3 +- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 9 +- drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c | 4 +- drivers/media/usb/pvrusb2/pvrusb2-wm8775.c | 3 +- 14 files changed, 104 insertions(+), 239 deletions(-)
drivers/media/usb/pvrusb2/pvrusb2-audio.c +1 -3
@@ -74,9 +74,7 @@ void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) input = sp->def[hdw->input_val]; }else {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"*** WARNING *** subdev msp3400 set_input:" -" Invalid routing scheme (%u)" -" and/or input (%d)" , +"*** WARNING *** subdev msp3400 set_input: Invalid routing scheme (%u) and/or input (%d)" , sid, hdw->input_val);return ; }
drivers/media/usb/pvrusb2/pvrusb2-cs53l32a.c +1 -3
@@ -72,9 +72,7 @@ void pvr2_cs53l32a_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) (hdw->input_val < 0) || (hdw->input_val >= sp->cnt)) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"*** WARNING *** subdev v4l2 set_input:" -" Invalid routing scheme (%u)" -" and/or input (%d)" , +"*** WARNING *** subdev v4l2 set_input: Invalid routing scheme (%u) and/or input (%d)" , sid, hdw->input_val);return ; }
drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c +1 -3
@@ -137,9 +137,7 @@ void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) (hdw->input_val < 0) || (hdw->input_val >= sp->cnt)) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"*** WARNING *** subdev cx2584x set_input:" -" Invalid routing scheme (%u)" -" and/or input (%d)" , +"*** WARNING *** subdev cx2584x set_input: Invalid routing scheme (%u) and/or input (%d)" , sid, hdw->input_val);return ; }
drivers/media/usb/pvrusb2/pvrusb2-debugifc.c +1 -3
@@ -176,9 +176,7 @@ int pvr2_debugifc_print_status(struct pvr2_hdw *hdw,pvr2_stream_get_stats (sp, &stats,0 ); ccnt = scnprintf( buf,acnt, - "Bytes streamed=%u" - " URBs: queued=%u idle=%u ready=%u" - " processed=%u failed=%u\n", + "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n", stats.bytes_processed, stats.buffers_in_queue, stats.buffers_in_idle,
drivers/media/usb/pvrusb2/pvrusb2-eeprom.c +2 -4
@@ -56,8 +56,7 @@ static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) eeprom =kmalloc (EEPROM_SIZE ,GFP_KERNEL );if (!eeprom) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Failed to allocate memory" -" required to read eeprom" ); +"Failed to allocate memory required to read eeprom" );return NULL ; }
@@ -74,8 +73,7 @@ static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw)strange but it's what they do) */ mode16 = (addr &1 ); eepromSize = (mode16 ?4096 :256 ); -trace_eeprom ("Examining %d byte eeprom at location 0x%x" -" using %d bit addressing" ,eepromSize,addr, +trace_eeprom ("Examining %d byte eeprom at location 0x%x using %d bit addressing" ,eepromSize,addr, mode16 ?16 :8 ); msg[0 ].addr = addr;
drivers/media/usb/pvrusb2/pvrusb2-encoder.c +7 -21
@@ -188,9 +188,7 @@ static int pvr2_encoder_cmd(void *ctxt,if (arg_cnt_send > (ARRAY_SIZE (wrData) -4 )) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Failed to write cx23416 command" -" - too many input arguments" -" (was given %u limit %lu)" , +"Failed to write cx23416 command - too many input arguments (was given %u limit %lu)" , arg_cnt_send, (long unsigned )ARRAY_SIZE (wrData) -4 );return -EINVAL ; }
@@ -198,9 +196,7 @@ static int pvr2_encoder_cmd(void *ctxt,if (arg_cnt_recv > (ARRAY_SIZE (rdData) -4 )) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Failed to write cx23416 command" -" - too many return arguments" -" (was given %u limit %lu)" , +"Failed to write cx23416 command - too many return arguments (was given %u limit %lu)" , arg_cnt_recv, (long unsigned )ARRAY_SIZE (rdData) -4 );return -EINVAL ; }
@@ -248,14 +244,11 @@ static int pvr2_encoder_cmd(void *ctxt, retry_flag = !0 ;pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Encoder timed out waiting for us" -"; arranging to retry" ); +"Encoder timed out waiting for us; arranging to retry" ); }else {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"***WARNING*** device's encoder" -" appears to be stuck" -" (status=0x%08x)" ,rdData[0 ]); +"***WARNING*** device's encoder appears to be stuck (status=0x%08x)" ,rdData[0 ]); } pvr2_trace( PVR2_TRACE_ERROR_LEGS,
@@ -293,11 +286,7 @@ static int pvr2_encoder_cmd(void *ctxt, }pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Giving up on command." -" This is normally recovered via a firmware" -" reload and re-initialization; concern" -" is only warranted if this happens repeatedly" -" and rapidly." ); +"Giving up on command. This is normally recovered via a firmware reload and re-initialization; concern is only warranted if this happens repeatedly and rapidly." );break ; } wrData[0 ] =0x7 ;
@@ -325,9 +314,7 @@ static int pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd,if (args >ARRAY_SIZE (data)) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Failed to write cx23416 command" -" - too many arguments" -" (was given %u limit %lu)" , +"Failed to write cx23416 command - too many arguments (was given %u limit %lu)" , args, (long unsigned )ARRAY_SIZE (data));return -EINVAL ; }
@@ -433,8 +420,7 @@ int pvr2_encoder_configure(struct pvr2_hdw *hdw) {int ret;int val; -pvr2_trace (PVR2_TRACE_ENCODER ,"pvr2_encoder_configure" -" (cx2341x module)" ); +pvr2_trace (PVR2_TRACE_ENCODER ,"pvr2_encoder_configure (cx2341x module)" ); hdw->enc_ctl_state.port =CX2341X_PORT_STREAMING ; hdw->enc_ctl_state.width = hdw->res_hor_val; hdw->enc_ctl_state.height = hdw->res_ver_val;
drivers/media/usb/pvrusb2/pvrusb2-hdw.c +53 -122
451 lines not on this page · raw message
drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c +11 -22
@@ -62,8 +62,7 @@ static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */if (!data) length =0 ;if (length > (sizeof (hdw->cmd_buffer) -3 )) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Killing an I2C write to %u that is too large" -" (desired=%u limit=%u)" , +"Killing an I2C write to %u that is too large (desired=%u limit=%u)" , i2c_addr, length,(unsigned int )(sizeof (hdw->cmd_buffer) -3 ));return -ENOTSUPP ;
@@ -90,8 +89,7 @@ static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */if (hdw->cmd_buffer[0 ] !=8 ) { ret = -EIO ;if (hdw->cmd_buffer[0 ] !=7 ) { -trace_i2c ("unexpected status" -" from i2_write[%d]: %d" , +trace_i2c ("unexpected status from i2_write[%d]: %d" , i2c_addr,hdw->cmd_buffer[0 ]); } }
@@ -116,16 +114,14 @@ static int pvr2_i2c_read(struct pvr2_hdw *hdw, /* Context */if (!data) dlen =0 ;if (dlen > (sizeof (hdw->cmd_buffer) -4 )) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Killing an I2C read to %u that has wlen too large" -" (desired=%u limit=%u)" , +"Killing an I2C read to %u that has wlen too large (desired=%u limit=%u)" , i2c_addr, dlen,(unsigned int )(sizeof (hdw->cmd_buffer) -4 ));return -ENOTSUPP ; }if (res && (rlen > (sizeof (hdw->cmd_buffer) -1 ))) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"Killing an I2C read to %u that has rlen too large" -" (desired=%u limit=%u)" , +"Killing an I2C read to %u that has rlen too large (desired=%u limit=%u)" , i2c_addr, rlen,(unsigned int )(sizeof (hdw->cmd_buffer) -1 ));return -ENOTSUPP ;
@@ -154,8 +150,7 @@ static int pvr2_i2c_read(struct pvr2_hdw *hdw, /* Context */if (hdw->cmd_buffer[0 ] !=8 ) { ret = -EIO ;if (hdw->cmd_buffer[0 ] !=7 ) { -trace_i2c ("unexpected status" -" from i2_read[%d]: %d" , +trace_i2c ("unexpected status from i2_read[%d]: %d" , i2c_addr,hdw->cmd_buffer[0 ]); } }
@@ -352,13 +347,11 @@ static int i2c_hack_cx25840(struct pvr2_hdw *hdw,if ((ret !=0 ) || (*rdata ==0x04 ) || (*rdata ==0x0a )) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"WARNING: Detected a wedged cx25840 chip;" -" the device will not work." ); +"WARNING: Detected a wedged cx25840 chip; the device will not work." );pvr2_trace (PVR2_TRACE_ERROR_LEGS ,"WARNING: Try power cycling the pvrusb2 device." );pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"WARNING: Disabling further access to the device" -" to prevent other foul-ups." ); +"WARNING: Disabling further access to the device to prevent other foul-ups." );// This blocks all further communication with the part. hdw->i2c_func[0x44 ] =NULL ;pvr2_hdw_render_useless (hdw);
@@ -444,8 +437,7 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap, } }else if (num ==2 ) {if (msgs[0 ].addr != msgs[1 ].addr) { -trace_i2c ("i2c refusing 2 phase transfer with" -" conflicting target addresses" ); +trace_i2c ("i2c refusing 2 phase transfer with conflicting target addresses" ); ret = -ENOTSUPP ; goto done; }
@@ -477,8 +469,7 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap, ret =2 ; goto done; }else { -trace_i2c ("i2c refusing complex transfer" -" read0=%d read1=%d" , +trace_i2c ("i2c refusing complex transfer read0=%d read1=%d" , (msgs[0 ].flags &I2C_M_RD ), (msgs[1 ].flags &I2C_M_RD )); }
@@ -492,8 +483,7 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap,for (idx =0 ; idx < num; idx++) { cnt = msgs[idx].len; printk(KERN_INFO - "pvrusb2 i2c xfer %u/%u:" - " addr=0x%x len=%d %s", + "pvrusb2 i2c xfer %u/%u: addr=0x%x len=%d %s", idx+1,num, msgs[idx].addr, cnt,
@@ -668,8 +658,7 @@ void pvr2_i2c_core_init(struct pvr2_hdw *hdw)the emulated IR receiver. */ if (do_i2c_probe (hdw,0x71 )) {pvr2_trace (PVR2_TRACE_INFO , -"Device has newer IR hardware;" -" disabling unneeded virtual IR device" ); +"Device has newer IR hardware; disabling unneeded virtual IR device" ); hdw->i2c_func[0x18 ] =NULL ;/* Remember that this is a different device... */ hdw->ir_scheme_active =PVR2_IR_SCHEME_24XXX_MCE ;
drivers/media/usb/pvrusb2/pvrusb2-io.c +11 -22
@@ -113,8 +113,7 @@ static const char *pvr2_buffer_state_decode(enum pvr2_buffer_state st)static void pvr2_buffer_describe (struct pvr2_buffer *bp,const char *msg) { pvr2_trace(PVR2_TRACE_INFO, - "buffer%s%s %p state=%s id=%d status=%d" - " stream=%p purb=%p sig=0x%x", + "buffer%s%s %p state=%s id=%d status=%d stream=%p purb=%p sig=0x%x", (msg ? " " : ""), (msg ? msg : ""), bp,
@@ -156,8 +155,7 @@ static void pvr2_buffer_remove(struct pvr2_buffer *bp) (*cnt)--; (*bcnt) -= ccnt;pvr2_trace (PVR2_TRACE_BUF_FLOW , -"/*---TRACE_FLOW---*/" -" bufferPool %8s dec cap=%07d cnt=%02d" , +"/*---TRACE_FLOW---*/ bufferPool %8s dec cap=%07d cnt=%02d" ,pvr2_buffer_state_decode (bp->state),*bcnt,*cnt); bp->state = pvr2_buffer_state_none; }
@@ -198,8 +196,7 @@ static int pvr2_buffer_set_ready(struct pvr2_buffer *bp) (sp->r_count)++; sp->r_bcount += bp->used_count;pvr2_trace (PVR2_TRACE_BUF_FLOW , -"/*---TRACE_FLOW---*/" -" bufferPool %8s inc cap=%07d cnt=%02d" , +"/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d" ,pvr2_buffer_state_decode (bp->state), sp->r_bcount,sp->r_count);spin_unlock_irqrestore (&sp->list_lock,irq_flags);
@@ -224,8 +221,7 @@ static void pvr2_buffer_set_idle(struct pvr2_buffer *bp) (sp->i_count)++; sp->i_bcount += bp->max_count;pvr2_trace (PVR2_TRACE_BUF_FLOW , -"/*---TRACE_FLOW---*/" -" bufferPool %8s inc cap=%07d cnt=%02d" , +"/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d" ,pvr2_buffer_state_decode (bp->state), sp->i_bcount,sp->i_count);spin_unlock_irqrestore (&sp->list_lock,irq_flags);
@@ -249,8 +245,7 @@ static void pvr2_buffer_set_queued(struct pvr2_buffer *bp) (sp->q_count)++; sp->q_bcount += bp->max_count;pvr2_trace (PVR2_TRACE_BUF_FLOW , -"/*---TRACE_FLOW---*/" -" bufferPool %8s inc cap=%07d cnt=%02d" , +"/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d" ,pvr2_buffer_state_decode (bp->state), sp->q_bcount,sp->q_count);spin_unlock_irqrestore (&sp->list_lock,irq_flags);
@@ -293,8 +288,7 @@ static void pvr2_buffer_done(struct pvr2_buffer *bp) bp->signature =0 ; bp->stream =NULL ;usb_free_urb (bp->purb); -pvr2_trace (PVR2_TRACE_BUF_POOL ,"/*---TRACE_FLOW---*/" -" bufferDone %p" ,bp); +pvr2_trace (PVR2_TRACE_BUF_POOL ,"/*---TRACE_FLOW---*/ bufferDone %p" ,bp); }static int pvr2_stream_buffer_count (struct pvr2_stream *sp,unsigned int cnt)
@@ -306,8 +300,7 @@ static int pvr2_stream_buffer_count(struct pvr2_stream *sp,unsigned int cnt)if (cnt == sp->buffer_total_count)return 0 ;pvr2_trace (PVR2_TRACE_BUF_POOL , -"/*---TRACE_FLOW---*/ poolResize " -" stream=%p cur=%d adj=%+d" , +"/*---TRACE_FLOW---*/ poolResize stream=%p cur=%d adj=%+d" , sp, sp->buffer_total_count, cnt-sp->buffer_total_count);
@@ -374,8 +367,7 @@ static int pvr2_stream_achieve_buffer_count(struct pvr2_stream *sp)if (sp->buffer_total_count == sp->buffer_target_count)return 0 ;pvr2_trace (PVR2_TRACE_BUF_POOL , -"/*---TRACE_FLOW---*/" -" poolCheck stream=%p cur=%d tgt=%d" , +"/*---TRACE_FLOW---*/ poolCheck stream=%p cur=%d tgt=%d" , sp,sp->buffer_total_count,sp->buffer_target_count);if (sp->buffer_total_count < sp->buffer_target_count) {
@@ -454,8 +446,7 @@ static void buffer_complete(struct urb *urb) bp->used_count = urb->actual_length;if (sp->fail_count) {pvr2_trace (PVR2_TRACE_TOLERANCE , -"stream %p transfer ok" -" - fail count reset" ,sp); +"stream %p transfer ok - fail count reset" ,sp); sp->fail_count =0 ; } }else if (sp->fail_count < sp->fail_tolerance) {
@@ -464,8 +455,7 @@ static void buffer_complete(struct urb *urb) (sp->fail_count)++; (sp->buffers_failed)++;pvr2_trace (PVR2_TRACE_TOLERANCE , -"stream %p ignoring error %d" -" - fail count increased to %u" , +"stream %p ignoring error %d - fail count increased to %u" , sp,urb->status,sp->fail_count); }else { (sp->buffers_failed)++;
@@ -666,8 +656,7 @@ int pvr2_buffer_set_buffer(struct pvr2_buffer *bp,void *ptr,unsigned int cnt) bp->max_count = cnt; bp->stream->i_bcount += bp->max_count;pvr2_trace (PVR2_TRACE_BUF_FLOW , -"/*---TRACE_FLOW---*/ bufferPool " -" %8s cap cap=%07d cnt=%02d" , +"/*---TRACE_FLOW---*/ bufferPool %8s cap cap=%07d cnt=%02d" ,pvr2_buffer_state_decode ( pvr2_buffer_state_idle), bp->stream->i_bcount,bp->stream->i_count);
drivers/media/usb/pvrusb2/pvrusb2-ioread.c +10 -23
@@ -169,9 +169,7 @@ static int pvr2_ioread_start(struct pvr2_ioread *cp) stat =pvr2_buffer_queue (bp);if (stat <0 ) {pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/" -" pvr2_ioread_start id=%p" -" error=%d" , +"/*---TRACE_READ---*/ pvr2_ioread_start id=%p error=%d" , cp,stat);pvr2_ioread_stop (cp);return stat;
@@ -209,8 +207,7 @@ int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) do { if (cp->stream) { pvr2_trace(PVR2_TRACE_START_STOP, - "/*---TRACE_READ---*/" - " pvr2_ioread_setup (tear-down) id=%p",cp); + "/*---TRACE_READ---*/ pvr2_ioread_setup (tear-down) id=%p",cp); pvr2_ioread_stop(cp); pvr2_stream_kill(cp->stream); if (pvr2_stream_get_buffer_count(cp->stream)) {
@@ -220,8 +217,7 @@ int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) }if (sp) {pvr2_trace (PVR2_TRACE_START_STOP , -"/*---TRACE_READ---*/" -" pvr2_ioread_setup (setup) id=%p" ,cp); +"/*---TRACE_READ---*/ pvr2_ioread_setup (setup) id=%p" ,cp);pvr2_stream_kill (sp); ret =pvr2_stream_set_buffer_count (sp,BUFFER_COUNT );if (ret <0 ) {
@@ -270,9 +266,7 @@ static int pvr2_ioread_get_buffer(struct pvr2_ioread *cp)if (stat <0 ) {// Streaming error... pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/" -" pvr2_ioread_read id=%p" -" queue_error=%d" , +"/*---TRACE_READ---*/ pvr2_ioread_read id=%p queue_error=%d" , cp,stat);pvr2_ioread_stop (cp);return 0 ;
@@ -292,9 +286,7 @@ static int pvr2_ioread_get_buffer(struct pvr2_ioread *cp)if (stat <0 ) {// Streaming error... pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/" -" pvr2_ioread_read id=%p" -" buffer_error=%d" , +"/*---TRACE_READ---*/ pvr2_ioread_read id=%p buffer_error=%d" , cp,stat);pvr2_ioread_stop (cp);// Give up.
@@ -347,8 +339,7 @@ static void pvr2_ioread_filter(struct pvr2_ioread *cp)if (cp->sync_buf_offs >= cp->sync_key_len) { cp->sync_trashed_count -= cp->sync_key_len;pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/" -" sync_state <== 2 (skipped %u bytes)" , +"/*---TRACE_READ---*/ sync_state <== 2 (skipped %u bytes)" , cp->sync_trashed_count); cp->sync_state =2 ; cp->sync_buf_offs =0 ;
@@ -358,8 +349,7 @@ static void pvr2_ioread_filter(struct pvr2_ioread *cp)if (cp->c_data_offs < cp->c_data_len) {// Sanity check - should NEVER get here pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"ERROR: pvr2_ioread filter sync problem" -" len=%u offs=%u" , +"ERROR: pvr2_ioread filter sync problem len=%u offs=%u" , cp->c_data_len,cp->c_data_offs);// Get out so we don't get stuck in an infinite // loop.
@@ -418,8 +408,7 @@ int pvr2_ioread_read(struct pvr2_ioread *cp,void __user *buf,unsigned int cnt)if (!cnt) {pvr2_trace (PVR2_TRACE_TRAP , -"/*---TRACE_READ---*/ pvr2_ioread_read id=%p" -" ZERO Request? Returning zero." ,cp); +"/*---TRACE_READ---*/ pvr2_ioread_read id=%p ZERO Request? Returning zero." ,cp);return 0 ; }
@@ -477,8 +466,7 @@ int pvr2_ioread_read(struct pvr2_ioread *cp,void __user *buf,unsigned int cnt)// Consumed entire key; switch mode // to normal. pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/" -" sync_state <== 0" ); +"/*---TRACE_READ---*/ sync_state <== 0" ); cp->sync_state =0 ; } }else {
@@ -502,8 +490,7 @@ int pvr2_ioread_read(struct pvr2_ioread *cp,void __user *buf,unsigned int cnt) }pvr2_trace (PVR2_TRACE_DATA_FLOW , -"/*---TRACE_READ---*/ pvr2_ioread_read" -" id=%p request=%d result=%d" , +"/*---TRACE_READ---*/ pvr2_ioread_read id=%p request=%d result=%d" , cp,req_cnt,ret);return ret; }
drivers/media/usb/pvrusb2/pvrusb2-std.c +1 -2
@@ -357,8 +357,7 @@ struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr, bcnt =pvr2_std_id_to_str (buf,sizeof (buf),fmsk);pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"WARNING:" -" Failed to classify the following standard(s): %.*s" , +"WARNING: Failed to classify the following standard(s): %.*s" , bcnt,buf); }
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c +3 -6
@@ -949,8 +949,7 @@ static long pvr2_v4l2_ioctl(struct file *file,if (ret <0 ) {if (pvrusb2_debug &PVR2_TRACE_V4LIOCTL ) {pvr2_trace (PVR2_TRACE_V4LIOCTL , -"pvr2_v4l2_do_ioctl failure, ret=%ld" -" command was:" , ret); +"pvr2_v4l2_do_ioctl failure, ret=%ld command was:" , ret);v4l_printk_ioctl (pvr2_hdw_get_driver_name (hdw), cmd); } }else {
@@ -1254,8 +1253,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, nr_ptr = video_nr;if (!dip->stream) {pr_err (KBUILD_MODNAME -": Failed to set up pvrusb2 v4l video dev" -" due to missing stream instance\n" ); +": Failed to set up pvrusb2 v4l video dev due to missing stream instance\n" );return ; }break ;
@@ -1272,8 +1270,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,break ;default :/* Bail out (this should be impossible) */ -pr_err (KBUILD_MODNAME ": Failed to set up pvrusb2 v4l dev" -" due to unrecognized config\n" ); +pr_err (KBUILD_MODNAME ": Failed to set up pvrusb2 v4l dev due to unrecognized config\n" );return ; }
drivers/media/usb/pvrusb2/pvrusb2-video-v4l.c +1 -3
@@ -91,9 +91,7 @@ void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) (hdw->input_val < 0) || (hdw->input_val >= sp->cnt)) {pvr2_trace (PVR2_TRACE_ERROR_LEGS , -"*** WARNING *** subdev v4l2 set_input:" -" Invalid routing scheme (%u)" -" and/or input (%d)" , +"*** WARNING *** subdev v4l2 set_input: Invalid routing scheme (%u) and/or input (%d)" , sid, hdw->input_val);return ; }
drivers/media/usb/pvrusb2/pvrusb2-wm8775.c +1 -2
@@ -49,8 +49,7 @@ void pvr2_wm8775_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) input =2 ;break ; } -pvr2_trace (PVR2_TRACE_CHIPS ,"subdev wm8775" -" set_input(val=%d route=0x%x)" , +pvr2_trace (PVR2_TRACE_CHIPS ,"subdev wm8775 set_input(val=%d route=0x%x)" , hdw->input_val, input); sd->ops->audio->s_routing (sd, input,0 ,0 );
Signature · 1 line
2.7.4
PATCH 42/57 pwc: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/pwc/pwc-if.c | 3 +-- drivers/media/usb/pwc/pwc-v4l.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-)
drivers/media/usb/pwc/pwc-if.c +1 -2
@@ -238,8 +238,7 @@ static void pwc_frame_complete(struct pwc_device *pdev) }else {/* Check for underflow first */ if (fbuf->filled < pdev->frame_total_size) { -PWC_DEBUG_FLOW ("Frame buffer underflow (%d bytes);" -" discarded.\n" , fbuf->filled); +PWC_DEBUG_FLOW ("Frame buffer underflow (%d bytes); discarded.\n" , fbuf->filled); }else { fbuf->vb.field =V4L2_FIELD_NONE ; fbuf->vb.sequence = pdev->vframe_count;
drivers/media/usb/pwc/pwc-v4l.c +2 -4
@@ -406,8 +406,7 @@ static void pwc_vidioc_fill_fmt(struct v4l2_format *f, f->fmt.pix.bytesperline = f->fmt.pix.width; f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.width *3 /2 ; f->fmt.pix.colorspace =V4L2_COLORSPACE_SRGB ; - PWC_DEBUG_IOCTL("pwc_vidioc_fill_fmt() " - "width=%d, height=%d, bytesperline=%d, sizeimage=%d, pixelformat=%c%c%c%c\n", + PWC_DEBUG_IOCTL("pwc_vidioc_fill_fmt() width=%d, height=%d, bytesperline=%d, sizeimage=%d, pixelformat=%c%c%c%c\n", f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.bytesperline,
@@ -473,8 +472,7 @@ static int pwc_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) pixelformat = f->fmt.pix.pixelformat; - PWC_DEBUG_IOCTL("Trying to set format to: width=%d height=%d fps=%d " - "format=%c%c%c%c\n", + PWC_DEBUG_IOCTL("Trying to set format to: width=%d height=%d fps=%d format=%c%c%c%c\n", f->fmt.pix.width, f->fmt.pix.height, pdev->vframes, (pixelformat)&255, (pixelformat>>8)&255,
Signature · 1 line
2.7.4
PATCH 43/57 siano: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/siano/smsusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/siano/smsusb.c +1 -2
@@ -604,8 +604,7 @@ static int smsusb_resume(struct usb_interface *intf) intf->cur_altsetting->desc. bInterfaceNumber, 0);if (rc <0 ) { -printk (KERN_INFO "%s usb_set_interface failed, " -"rc %d\n" , __func__, rc); +printk (KERN_INFO "%s usb_set_interface failed, rc %d\n" , __func__, rc);return rc; } }
Signature · 1 line
2.7.4
PATCH 44/57 stkwebcam: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/stkwebcam/stk-sensor.c | 3 +-- drivers/media/usb/stkwebcam/stk-webcam.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/media/usb/stkwebcam/stk-sensor.c +1 -2
@@ -391,8 +391,7 @@ int stk_sensor_init(struct stk_camera *dev) }stk_sensor_write_regvals (dev, ov_initvals);msleep (10 ); -STK_INFO ("OmniVision sensor detected, id %02X%02X" -" at address %x\n" , idh, idl,SENSOR_ADDRESS ); +STK_INFO ("OmniVision sensor detected, id %02X%02X at address %x\n" , idh, idl,SENSOR_ADDRESS );return 0 ; }
drivers/media/usb/stkwebcam/stk-webcam.c +1 -2
@@ -366,8 +366,7 @@ static void stk_isoc_handler(struct urb *urb)if (fb->v4lbuf.bytesused !=0 && fb->v4lbuf.bytesused != dev->frame_size) { (void ) (printk_ratelimit () && -STK_ERROR ("frame %d, " -"bytesused=%d, skipping\n" , +STK_ERROR ("frame %d, bytesused=%d, skipping\n" , i, fb->v4lbuf.bytesused)); fb->v4lbuf.bytesused =0 ; fill = fb->buffer;
Signature · 1 line
2.7.4
PATCH 45/57 tm6000: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/tm6000/tm6000-alsa.c | 4 +--- drivers/media/usb/tm6000/tm6000-core.c | 11 +++-------- drivers/media/usb/tm6000/tm6000-dvb.c | 16 +++++----------- drivers/media/usb/tm6000/tm6000-i2c.c | 3 +-- drivers/media/usb/tm6000/tm6000-stds.c | 3 +-- drivers/media/usb/tm6000/tm6000-video.c | 15 +++++---------- 6 files changed, 16 insertions(+), 36 deletions(-)
drivers/media/usb/tm6000/tm6000-alsa.c +1 -3
@@ -58,9 +58,7 @@ MODULE_PARM_DESC(index, "Index value for tm6000x capture interface(s).");MODULE_DESCRIPTION ("ALSA driver module for tm5600/tm6000/tm6010 based TV cards" );MODULE_AUTHOR ("Mauro Carvalho Chehab" );MODULE_LICENSE ("GPL" ); -MODULE_SUPPORTED_DEVICE ("{{Trident,tm5600}," -"{{Trident,tm6000}," -"{{Trident,tm6010}" ); +MODULE_SUPPORTED_DEVICE ("{{Trident,tm5600},{{Trident,tm6000},{{Trident,tm6010}" );static unsigned int debug;module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"enable debug messages" );
drivers/media/usb/tm6000/tm6000-core.c +3 -8
@@ -602,8 +602,7 @@ int tm6000_init(struct tm6000_core *dev)for (i =0 ; i < size; i++) { rc =tm6000_set_reg (dev, tab[i].req, tab[i].reg, tab[i].val);if (rc <0 ) { -printk (KERN_ERR "Error %i while setting req %d, " -"reg %d to value %d\n" , rc, +printk (KERN_ERR "Error %i while setting req %d, reg %d to value %d\n" , rc, tab[i].req, tab[i].reg, tab[i].val);return rc; }
@@ -761,9 +760,7 @@ int tm6000_tvaudio_set_mute(struct tm6000_core *dev, u8 mute)if (dev->dev_type ==TM6010 )tm6010_set_mute_sif (dev, mute);else { -printk (KERN_INFO "ERROR: TM5600 and TM6000 don't has" -" SIF audio inputs. Please check the %s" -" configuration.\n" , dev->name); +printk (KERN_INFO "ERROR: TM5600 and TM6000 don't has SIF audio inputs. Please check the %s configuration.\n" , dev->name);return -EINVAL ; }break ;
@@ -822,9 +819,7 @@ void tm6000_set_volume(struct tm6000_core *dev, int vol)if (dev->dev_type ==TM6010 )tm6010_set_volume_sif (dev, vol);else -printk (KERN_INFO "ERROR: TM5600 and TM6000 don't has" -" SIF audio inputs. Please check the %s" -" configuration.\n" , dev->name); +printk (KERN_INFO "ERROR: TM5600 and TM6000 don't has SIF audio inputs. Please check the %s configuration.\n" , dev->name);break ;case TM6000_AMUX_ADC1 :case TM6000_AMUX_ADC2 :
drivers/media/usb/tm6000/tm6000-dvb.c +5 -11
@@ -35,9 +35,7 @@ MODULE_DESCRIPTION("DVB driver extension module for tm5600/6000/6010 based TV caMODULE_AUTHOR ("Mauro Carvalho Chehab" );MODULE_LICENSE ("GPL" ); -MODULE_SUPPORTED_DEVICE ("{{Trident, tm5600}," -"{{Trident, tm6000}," -"{{Trident, tm6010}" ); +MODULE_SUPPORTED_DEVICE ("{{Trident, tm5600},{{Trident, tm6000},{{Trident, tm6010}" );static int debug;
@@ -292,13 +290,11 @@ static int register_dvb(struct tm6000_core *dev) }if (!dvb_attach (xc2028_attach, dvb->frontend, &cfg)) { -printk (KERN_ERR "tm6000: couldn't register " -"frontend (xc3028)\n" ); +printk (KERN_ERR "tm6000: couldn't register frontend (xc3028)\n" ); ret = -EINVAL ; goto frontend_err; } -printk (KERN_INFO "tm6000: XC2028/3028 asked to be " -"attached to frontend!\n" ); +printk (KERN_INFO "tm6000: XC2028/3028 asked to be attached to frontend!\n" );break ; }case TUNER_XC5000 : {
@@ -315,13 +311,11 @@ static int register_dvb(struct tm6000_core *dev) }if (!dvb_attach (xc5000_attach, dvb->frontend, &dev->i2c_adap, &cfg)) { -printk (KERN_ERR "tm6000: couldn't register " -"frontend (xc5000)\n" ); +printk (KERN_ERR "tm6000: couldn't register frontend (xc5000)\n" ); ret = -EINVAL ; goto frontend_err; } -printk (KERN_INFO "tm6000: XC5000 asked to be " -"attached to frontend!\n" ); +printk (KERN_INFO "tm6000: XC5000 asked to be attached to frontend!\n" );break ; } }
drivers/media/usb/tm6000/tm6000-i2c.c +1 -2
@@ -173,8 +173,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,* immediately after a 1 or 2 byte write to select * a register. We cannot fulfil this request. */ -i2c_dprintk (2 ," read without preceding write not" -" supported" ); +i2c_dprintk (2 ," read without preceding write not supported" ); rc = -EOPNOTSUPP ; goto err; } else if (i + 1 < num && msgs[i].len <= 2 &&
drivers/media/usb/tm6000/tm6000-stds.c +1 -2
@@ -464,8 +464,7 @@ static int tm6000_load_std(struct tm6000_core *dev, struct tm6000_reg_settings *for (i =0 ; set[i].req; i++) { rc =tm6000_set_reg (dev, set[i].req, set[i].reg, set[i].value);if (rc <0 ) { -printk (KERN_ERR "Error %i while setting " -"req %d, reg %d to value %d\n" , +printk (KERN_ERR "Error %i while setting req %d, reg %d to value %d\n" , rc, set[i].req, set[i].reg, set[i].value);return rc; }
drivers/media/usb/tm6000/tm6000-video.c +5 -10
@@ -615,8 +615,7 @@ static int tm6000_prepare_isoc(struct tm6000_core *dev)return -ENOMEM ; } -dprintk (dev,V4L2_DEBUG_QUEUE ,"Allocating %d x %d packets" -" (%d bytes) of %d bytes each to handle %u size\n" , +dprintk (dev,V4L2_DEBUG_QUEUE ,"Allocating %d x %d packets (%d bytes) of %d bytes each to handle %u size\n" , max_packets, num_bufs, sb_size, dev->isoc_in.maxsize, size);
@@ -939,8 +938,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, fmt =format_by_fourcc (f->fmt.pix.pixelformat);if (NULL == fmt) { -dprintk (dev,2 ,"Fourcc format (0x%08x)" -" invalid.\n" , f->fmt.pix.pixelformat); +dprintk (dev,2 ,"Fourcc format (0x%08x) invalid.\n" , f->fmt.pix.pixelformat);return -EINVAL ; }
@@ -1366,14 +1364,11 @@ static int __tm6000_open(struct file *file) fh->width = dev->width; fh->height = dev->height; -dprintk (dev,V4L2_DEBUG_OPEN ,"Open: fh=0x%08lx, dev=0x%08lx, " -"dev->vidq=0x%08lx\n" , +dprintk (dev,V4L2_DEBUG_OPEN ,"Open: fh=0x%08lx, dev=0x%08lx, dev->vidq=0x%08lx\n" , (unsigned long )fh, (unsigned long )dev, (unsigned long )&dev->vidq); -dprintk (dev,V4L2_DEBUG_OPEN ,"Open: list_empty " -"queued=%d\n" ,list_empty (&dev->vidq.queued)); -dprintk (dev,V4L2_DEBUG_OPEN ,"Open: list_empty " -"active=%d\n" ,list_empty (&dev->vidq.active)); +dprintk (dev,V4L2_DEBUG_OPEN ,"Open: list_empty queued=%d\n" ,list_empty (&dev->vidq.queued)); +dprintk (dev,V4L2_DEBUG_OPEN ,"Open: list_empty active=%d\n" ,list_empty (&dev->vidq.active));/* initialize hardware on analog mode */ rc =tm6000_init_analog_mode (dev);
Signature · 1 line
2.7.4
PATCH 46/57 ttusb-budget: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c +1 -2
@@ -767,8 +767,7 @@ static void ttusb_iso_irq(struct urb *urb)for (i =0 ; i < urb->number_of_packets; ++i) { numpkt++;if (time_after_eq (jiffies, lastj +HZ )) { -dprintk ("frames/s: %lu (ts: %d, stuff %d, " -"sec: %d, invalid: %d, all: %d)\n" , +dprintk ("frames/s: %lu (ts: %d, stuff %d, sec: %d, invalid: %d, all: %d)\n" , numpkt *HZ / (jiffies - lastj), numts, numstuff, numsec, numinvalid, numts + numstuff + numsec + numinvalid);
Signature · 1 line
2.7.4
PATCH 47/57 ttusb-dec: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/ttusb-dec/ttusb_dec.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)
drivers/media/usb/ttusb-dec/ttusb_dec.c +6 -12
@@ -708,8 +708,7 @@ static void ttusb_dec_process_urb_frame(struct ttusb_dec *dec, u8 *b, dec->packet_payload_length =2 ; dec->packet_state =7 ; }else { -printk ("%s: unknown packet type: " -"%02x%02x\n" , __func__, +printk ("%s: unknown packet type: %02x%02x\n" , __func__, dec->packet[0 ], dec->packet[1 ]); dec->packet_state =0 ; }
@@ -961,8 +960,7 @@ static int ttusb_dec_start_iso_xfer(struct ttusb_dec *dec)for (i =0 ; i <ISO_BUF_COUNT ; i++) {if ((result =usb_submit_urb (dec->iso_urb[i],GFP_ATOMIC ))) { -printk ("%s: failed urb submission %d: " -"error %d\n" , __func__, i, result); +printk ("%s: failed urb submission %d: error %d\n" , __func__, i, result);while (i) {usb_kill_urb (dec->iso_urb[i -1 ]);
@@ -1375,8 +1373,7 @@ static int ttusb_dec_boot_dsp(struct ttusb_dec *dec)memcpy (&tmp, &firmware[56 ],4 ); crc32_check =ntohl (tmp);if (crc32_csum != crc32_check) { -printk ("%s: crc32 check of DSP code failed (calculated " -"0x%08x != 0x%08x in file), file invalid.\n" , +printk ("%s: crc32 check of DSP code failed (calculated 0x%08x != 0x%08x in file), file invalid.\n" , __func__, crc32_csum, crc32_check);release_firmware (fw_entry);return -ENOENT ;
@@ -1453,11 +1450,9 @@ static int ttusb_dec_init_stb(struct ttusb_dec *dec)if (!mode) {if (version ==0xABCDEFAB ) -printk (KERN_INFO "ttusb_dec: no version " -"info in Firmware\n" ); +printk (KERN_INFO "ttusb_dec: no version info in Firmware\n" );else -printk (KERN_INFO "ttusb_dec: Firmware " -"%x.%02x%c%c\n" , +printk (KERN_INFO "ttusb_dec: Firmware %x.%02x%c%c\n" , version >>24 , (version >>16 ) &0xff , (version >>8 ) &0xff , version &0xff );
@@ -1481,8 +1476,7 @@ static int ttusb_dec_init_stb(struct ttusb_dec *dec)ttusb_dec_set_model (dec,TTUSB_DEC2540T );break ;default : -printk (KERN_ERR "%s: unknown model returned " -"by firmware (%08x) - please report\n" , +printk (KERN_ERR "%s: unknown model returned by firmware (%08x) - please report\n" , __func__, model);return -ENOENT ; }
Signature · 1 line
2.7.4
PATCH 48/57 usbvision: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/usbvision/usbvision-core.c | 15 +++++---------- drivers/media/usb/usbvision/usbvision-video.c | 3 +-- 2 files changed, 6 insertions(+), 12 deletions(-)
drivers/media/usb/usbvision/usbvision-core.c +5 -10
@@ -1656,8 +1656,7 @@ static int usbvision_set_video_format(struct usb_usbvision *usbvision, int forma (__u16) USBVISION_FILT_CONT, value, 2, HZ);if (rc <0 ) { -printk (KERN_ERR "%s: ERROR=%d. USBVISION stopped - " -"reconnect or reload driver.\n" , proc, rc); +printk (KERN_ERR "%s: ERROR=%d. USBVISION stopped - reconnect or reload driver.\n" , proc, rc); } usbvision->isoc_mode = format;return rc;
@@ -1890,8 +1889,7 @@ static int usbvision_set_compress_params(struct usb_usbvision *usbvision) (__u16) USBVISION_INTRA_CYC, value, 5, HZ);if (rc <0 ) { -printk (KERN_ERR "%sERROR=%d. USBVISION stopped - " -"reconnect or reload driver.\n" , proc, rc); +printk (KERN_ERR "%sERROR=%d. USBVISION stopped - reconnect or reload driver.\n" , proc, rc);return rc; }
@@ -1921,8 +1919,7 @@ static int usbvision_set_compress_params(struct usb_usbvision *usbvision) (__u16) USBVISION_PCM_THR1, value, 6, HZ);if (rc <0 ) { -printk (KERN_ERR "%sERROR=%d. USBVISION stopped - " -"reconnect or reload driver.\n" , proc, rc); +printk (KERN_ERR "%sERROR=%d. USBVISION stopped - reconnect or reload driver.\n" , proc, rc); }return rc; }
@@ -1960,8 +1957,7 @@ int usbvision_set_input(struct usb_usbvision *usbvision) rc =usbvision_write_reg (usbvision,USBVISION_VIN_REG1 , value[0 ]);if (rc <0 ) { -printk (KERN_ERR "%sERROR=%d. USBVISION stopped - " -"reconnect or reload driver.\n" , proc, rc); +printk (KERN_ERR "%sERROR=%d. USBVISION stopped - reconnect or reload driver.\n" , proc, rc);return rc; }
@@ -2026,8 +2022,7 @@ int usbvision_set_input(struct usb_usbvision *usbvision)USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_ENDPOINT ,0 , (__u16) USBVISION_LXSIZE_I, value, 8, HZ);if (rc <0 ) { -printk (KERN_ERR "%sERROR=%d. USBVISION stopped - " -"reconnect or reload driver.\n" , proc, rc); +printk (KERN_ERR "%sERROR=%d. USBVISION stopped - reconnect or reload driver.\n" , proc, rc);return rc; }
drivers/media/usb/usbvision/usbvision-video.c +1 -2
@@ -1456,8 +1456,7 @@ static int usbvision_probe(struct usb_interface *intf, }if (interface->desc.bNumEndpoints <2 ) { -dev_err (&intf->dev,"interface %d has %d endpoints, but must" -" have minimum 2\n" , ifnum, interface->desc.bNumEndpoints); +dev_err (&intf->dev,"interface %d has %d endpoints, but must have minimum 2\n" , ifnum, interface->desc.bNumEndpoints); ret = -ENODEV ; goto err_usb; }
Signature · 1 line
2.7.4
PATCH 49/57 uvc: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/uvc/uvc_ctrl.c | 24 ++---- drivers/media/usb/uvc/uvc_debugfs.c | 3 +- drivers/media/usb/uvc/uvc_driver.c | 148 ++++++++++++------------------------ drivers/media/usb/uvc/uvc_entity.c | 6 +- drivers/media/usb/uvc/uvc_isight.c | 9 +-- drivers/media/usb/uvc/uvc_status.c | 15 ++-- drivers/media/usb/uvc/uvc_v4l2.c | 6 +- drivers/media/usb/uvc/uvc_video.c | 69 ++++++----------- 8 files changed, 91 insertions(+), 189 deletions(-)
drivers/media/usb/uvc/uvc_ctrl.c +8 -16
@@ -960,8 +960,7 @@ static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain,* resolution value to zero. */ uvc_warn_once (chain->dev,UVC_WARN_XU_GET_RES , -"UVC non compliance - GET_RES failed on " -"an XU control. Enabling workaround.\n" ); +"UVC non compliance - GET_RES failed on an XU control. Enabling workaround.\n" );memset (uvc_ctrl_data (ctrl,UVC_CTRL_DATA_RES ),0 , ctrl->info.size); }
@@ -1680,8 +1679,7 @@ static int uvc_ctrl_fill_xu_info(struct uvc_device *dev,uvc_ctrl_fixup_xu_info (dev, ctrl, info); - uvc_trace(UVC_TRACE_CONTROL, "XU control %pUl/%u queried: len %u, " - "flags { get %u set %u auto %u }.\n", + uvc_trace(UVC_TRACE_CONTROL, "XU control %pUl/%u queried: len %u, flags { get %u set %u auto %u }.\n", info->entity, info->selector, info->size, (info->flags & UVC_CTRL_FLAG_GET_CUR) ? 1 : 0, (info->flags & UVC_CTRL_FLAG_SET_CUR) ? 1 : 0,
@@ -1710,8 +1708,7 @@ static int uvc_ctrl_init_xu_ctrl(struct uvc_device *dev, ret =uvc_ctrl_add_info (dev, ctrl, &info);if (ret <0 ) -uvc_trace (UVC_TRACE_CONTROL ,"Failed to initialize control " -"%pUl/%u on device %s entity %u\n" , info.entity, +uvc_trace (UVC_TRACE_CONTROL ,"Failed to initialize control %pUl/%u on device %s entity %u\n" , info.entity, info.selector, dev->udev->devpath, ctrl->entity->id);return ret;
@@ -1904,8 +1901,7 @@ static int uvc_ctrl_add_info(struct uvc_device *dev, struct uvc_control *ctrl, ctrl->initialized =1 ; -uvc_trace (UVC_TRACE_CONTROL ,"Added control %pUl/%u to device %s " -"entity %u\n" , ctrl->info.entity, ctrl->info.selector, +uvc_trace (UVC_TRACE_CONTROL ,"Added control %pUl/%u to device %s entity %u\n" , ctrl->info.entity, ctrl->info.selector, dev->udev->devpath, ctrl->entity->id); done:
@@ -1964,8 +1960,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,int ret;if (mapping->id & ~V4L2_CTRL_ID_MASK ) { -uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', control " -"id 0x%08x is invalid.\n" , mapping->name, +uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', control id 0x%08x is invalid.\n" , mapping->name, mapping->id);return -EINVAL ; }
@@ -2004,8 +1999,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,list_for_each_entry (map, &ctrl->info.mappings, list) {if (mapping->id == map->id) { -uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', " -"control id 0x%08x already exists.\n" , +uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', control id 0x%08x already exists.\n" , mapping->name, mapping->id); ret = -EEXIST ; goto done;
@@ -2015,8 +2009,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,/* Prevent excess memory consumption */ if (atomic_inc_return (&dev->nmappings) >UVC_MAX_CONTROL_MAPPINGS ) {atomic_dec (&dev->nmappings); -uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', maximum " -"mappings count (%u) exceeded.\n" , mapping->name, +uvc_trace (UVC_TRACE_CONTROL ,"Can't add mapping '%s', maximum mappings count (%u) exceeded.\n" , mapping->name,UVC_MAX_CONTROL_MAPPINGS ); ret = -ENOMEM ; goto done;
@@ -2086,8 +2079,7 @@ static void uvc_ctrl_prune_entity(struct uvc_device *dev, !uvc_test_bit(controls, blacklist[i].index)) continue; -uvc_trace (UVC_TRACE_CONTROL ,"%u/%u control is black listed, " -"removing it.\n" , entity->id, blacklist[i].index); +uvc_trace (UVC_TRACE_CONTROL ,"%u/%u control is black listed, removing it.\n" , entity->id, blacklist[i].index);uvc_clear_bit (controls, blacklist[i].index); }
drivers/media/usb/uvc/uvc_debugfs.c +1 -2
@@ -88,8 +88,7 @@ int uvc_debugfs_init_stream(struct uvc_streaming *stream) dent =debugfs_create_dir (dir_name, uvc_debugfs_root_dir);if (IS_ERR_OR_NULL (dent)) { -uvc_printk (KERN_INFO ,"Unable to create debugfs %s " -"directory.\n" , dir_name); +uvc_printk (KERN_INFO ,"Unable to create debugfs %s directory.\n" , dir_name);return -ENODEV ; }
drivers/media/usb/uvc/uvc_driver.c +48 -100
429 lines not on this page · raw message
drivers/media/usb/uvc/uvc_entity.c +2 -4
@@ -109,8 +109,7 @@ int uvc_mc_register_entities(struct uvc_video_chain *chain)list_for_each_entry (entity, &chain->entities, chain) { ret =uvc_mc_init_entity (chain, entity);if (ret <0 ) { -uvc_printk (KERN_INFO ,"Failed to initialize entity for " -"entity %u\n" , entity->id); +uvc_printk (KERN_INFO ,"Failed to initialize entity for entity %u\n" , entity->id);return ret; } }
@@ -118,8 +117,7 @@ int uvc_mc_register_entities(struct uvc_video_chain *chain)list_for_each_entry (entity, &chain->entities, chain) { ret =uvc_mc_create_links (chain, entity);if (ret <0 ) { -uvc_printk (KERN_INFO ,"Failed to create links for " -"entity %u\n" , entity->id); +uvc_printk (KERN_INFO ,"Failed to create links for entity %u\n" , entity->id);return ret; } }
drivers/media/usb/uvc/uvc_isight.c +3 -6
@@ -61,8 +61,7 @@ static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf,/* Synchronize to the input stream by waiting for a header packet. */ if (buf->state !=UVC_BUF_STATE_ACTIVE ) {if (!is_header) { -uvc_trace (UVC_TRACE_FRAME ,"Dropping packet (out of " -"sync).\n" ); +uvc_trace (UVC_TRACE_FRAME ,"Dropping packet (out of sync).\n" );return 0 ; }
@@ -90,8 +89,7 @@ static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf, buf->bytesused += nbytes;if (len > maxlen || buf->bytesused == buf->length) { -uvc_trace (UVC_TRACE_FRAME ,"Frame complete " -"(overflow).\n" ); +uvc_trace (UVC_TRACE_FRAME ,"Frame complete (overflow).\n" ); buf->state =UVC_BUF_STATE_DONE ; } }
@@ -106,8 +104,7 @@ void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream,for (i =0 ; i < urb->number_of_packets; ++i) {if (urb->iso_frame_desc[i].status <0 ) { -uvc_trace (UVC_TRACE_FRAME ,"USB isochronous frame " -"lost (%d).\n" , +uvc_trace (UVC_TRACE_FRAME ,"USB isochronous frame lost (%d).\n" , urb->iso_frame_desc[i].status); }
drivers/media/usb/uvc/uvc_status.c +5 -10
@@ -81,8 +81,7 @@ static void uvc_input_report_key(struct uvc_device *dev, unsigned int code,static void uvc_event_streaming (struct uvc_device *dev,__u8 *data,int len) {if (len <3 ) { -uvc_trace (UVC_TRACE_STATUS ,"Invalid streaming status event " -"received.\n" ); +uvc_trace (UVC_TRACE_STATUS ,"Invalid streaming status event received.\n" );return ; }
@@ -93,8 +92,7 @@ static void uvc_event_streaming(struct uvc_device *dev, __u8 *data, int len) data[1], data[3] ? "pressed" : "released", len);uvc_input_report_key (dev,KEY_CAMERA , data[3 ]); }else { -uvc_trace (UVC_TRACE_STATUS ,"Stream %u error event %02x %02x " -"len %d.\n" , data[1 ], data[2 ], data[3 ], len); +uvc_trace (UVC_TRACE_STATUS ,"Stream %u error event %02x %02x len %d.\n" , data[1 ], data[2 ], data[3 ], len); } }
@@ -103,8 +101,7 @@ static void uvc_event_control(struct uvc_device *dev, __u8 *data, int len)char *attrs[3 ] = {"value" ,"info" ,"failure" };if (len <6 || data[2 ] !=0 || data[4 ] >2 ) { -uvc_trace (UVC_TRACE_STATUS ,"Invalid control status event " -"received.\n" ); +uvc_trace (UVC_TRACE_STATUS ,"Invalid control status event received.\n" );return ; }
@@ -129,8 +126,7 @@ static void uvc_status_complete(struct urb *urb)return ;default : -uvc_printk (KERN_WARNING ,"Non-zero status (%d) in status " -"completion handler.\n" , urb->status); +uvc_printk (KERN_WARNING ,"Non-zero status (%d) in status completion handler.\n" , urb->status);return ; }
@@ -146,8 +142,7 @@ static void uvc_status_complete(struct urb *urb)break ;default : -uvc_trace (UVC_TRACE_STATUS ,"Unknown status event " -"type %u.\n" , dev->status[0 ]); +uvc_trace (UVC_TRACE_STATUS ,"Unknown status event type %u.\n" , dev->status[0 ]);break ; } }
drivers/media/usb/uvc/uvc_v4l2.c +2 -4
@@ -85,8 +85,7 @@ static int uvc_ioctl_ctrl_map(struct uvc_video_chain *chain,break ;default : -uvc_trace (UVC_TRACE_CONTROL ,"Unsupported V4L2 control type " -"%u.\n" , xmap->v4l2_type); +uvc_trace (UVC_TRACE_CONTROL ,"Unsupported V4L2 control type %u.\n" , xmap->v4l2_type); ret = -ENOTTY ; goto done; }
@@ -224,8 +223,7 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,/* Use the default frame interval. */ interval = frame->dwDefaultFrameInterval; -uvc_trace (UVC_TRACE_FORMAT ,"Using default frame interval %u.%u us " -"(%u.%u fps).\n" , interval/10 , interval%10 ,10000000 /interval, +uvc_trace (UVC_TRACE_FORMAT ,"Using default frame interval %u.%u us (%u.%u fps).\n" , interval/10 , interval%10 ,10000000 /interval, (100000000 /interval)%10 );/* Set the format index, frame index and frame interval. */
drivers/media/usb/uvc/uvc_video.c +22 -47
190 lines not on this page · raw message
Signature · 1 line
2.7.4
Laurent Pinchart
maintainerRe: [PATCH 49/57] [media] uvc: don't break long lines
Hi Mauro,
Thank you for the patch.
Same comment, please add line breaks where applicable.
Quoted 24 lines · On Friday 14 Oct 2016 17:20:37 Mauro Carvalho Chehab wrote:
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/usb/uvc/uvc_ctrl.c | 24 ++---- drivers/media/usb/uvc/uvc_debugfs.c | 3 +- drivers/media/usb/uvc/uvc_driver.c | 148 ++++++++++---------------------- drivers/media/usb/uvc/uvc_entity.c | 6 +- drivers/media/usb/uvc/uvc_isight.c | 9 +-- drivers/media/usb/uvc/uvc_status.c | 15 ++-- drivers/media/usb/uvc/uvc_v4l2.c | 6 +- drivers/media/usb/uvc/uvc_video.c | 69 ++++++----------- 8 files changed, 91 insertions(+), 189 deletions(-)(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_ctrl.cindexc2ee6e39fd0c..6f26451bcb75100644drivers/media/usb/uvc/uvc_ctrl.c +0
-0@@ -960,8 +960,7 @@ static int uvc_ctrl_populate_cache(struct
uvc_video_chain*chain, * resolution value to zero.
drivers/media/usb/uvc/uvc_ctrl.c static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain,
Quoted 3 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-1*/ uvc_warn_once(chain->dev, UVC_WARN_XU_GET_RES, - "UVC non compliance - GET_RES failed on
"
drivers/media/usb/uvc/uvc_ctrl.c
Quoted 1 line
drivers/media/usb/uvc/uvc_ctrl.c +0
-1- "an XU control. Enabling workaround.
\n");
drivers/media/usb/uvc/uvc_ctrl.c
Quoted 1 line
drivers/media/usb/uvc/uvc_ctrl.c +1
-0+ "UVC non compliance - GET_RES failed on
an XU control. Enabling
drivers/media/usb/uvc/uvc_ctrl.c static int uvc_ctrl_fill_xu_info(struct uvc_device · line 1683
Quoted 11 lines
workaround.\n"); memset(uvc_ctrl_data(ctrl,
UVC_CTRL_DATA_RES), 0,drivers/media/usb/uvc/uvc_ctrl.c +1
-2ctrl->info.size); }@@ -1680,8 +1679,7 @@ static int uvc_ctrl_fill_xu_info(struct uvc_device *dev,uvc_ctrl_fixup_xu_info (dev, ctrl, info); - uvc_trace(UVC_TRACE_CONTROL, "XU control %pUl/%u queried: len %u, " - "flags { get %u set %u auto %u }.\n", + uvc_trace(UVC_TRACE_CONTROL, "XU control %pUl/%u queried: len %u,
flags {
drivers/media/usb/uvc/uvc_ctrl.c static int uvc_ctrl_init_xu_ctrl(struct uvc_device · line 1712
Quoted 11 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-0get %u set %u auto %u }.\n", info->entity, info->selector, info->size, (info->flags & UVC_CTRL_FLAG_GET_CUR) ? 1 : 0,drivers/media/usb/uvc/uvc_ctrl.c +1
-2(info->flags & UVC_CTRL_FLAG_SET_CUR) ? 1 : 0,@@ -1710,8 +1708,7 @@ static int uvc_ctrl_init_xu_ctrl(struct uvc_device *dev, ret =uvc_ctrl_add_info (dev, ctrl, &info);if (ret <0 ) - uvc_trace(UVC_TRACE_CONTROL, "Failed to initialize control " - "%pUl/%u on device %s entity %u\n", info.entity, + uvc_trace(UVC_TRACE_CONTROL, "Failed to initialize control
%pUl/%u on
drivers/media/usb/uvc/uvc_ctrl.c static int uvc_ctrl_add_info(struct uvc_device *dev, · line 1905
Quoted 12 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-0device %s entity %u\n", info.entity, info.selector, dev->udev->devpath, ctrl->entity->id);drivers/media/usb/uvc/uvc_ctrl.c +1
-2return ret;@@ -1904,8 +1901,7 @@ static int uvc_ctrl_add_info(struct uvc_device *dev,struct uvc_control *ctrl, ctrl->initialized = 1; - uvc_trace(UVC_TRACE_CONTROL, "Added control %pUl/%u to device %s " - "entity %u\n", ctrl->info.entity, ctrl->info.selector, + uvc_trace(UVC_TRACE_CONTROL, "Added control %pUl/%u to device %s
entity
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 1967
Quoted 9 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-0%u\n", ctrl->info.entity, ctrl->info.selector, dev->udev->devpath, ctrl->entity->id);done:
drivers/media/usb/uvc/uvc_ctrl.c +0
-1@@ -1964,8 +1960,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain, int ret;if (mapping->id & ~V4L2_CTRL_ID_MASK ) { - uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s', control
"
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 1963
Quoted 2 lines
drivers/media/usb/uvc/uvc_ctrl.c +1
-1- "id 0x%08x is invalid.\n", mapping->name, + uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s', control
id 0x%08x
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 2008
Quoted 9 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-1is invalid.\n", mapping->name, mapping->id);return -EINVAL ; }@@ -2004,8 +1999,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain, list_for_each_entry(map, &ctrl->info.mappings, list) {if (mapping->id == map->id) { - uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s',
"
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 2003
Quoted 2 lines
drivers/media/usb/uvc/uvc_ctrl.c +1
-1- "control id 0x%08x already exists.\n", + uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s',
control id 0x%08x
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 2018
Quoted 8 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-0already exists.\n", mapping->name, mapping->id); ret = -EEXIST ;drivers/media/usb/uvc/uvc_ctrl.c +0
-1goto done;@@ -2015,8 +2009,7 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,/* Prevent excess memory consumption */ if (atomic_inc_return(&dev->nmappings) > UVC_MAX_CONTROL_MAPPINGS) {atomic_dec (&dev->nmappings); - uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s', maximum
"
drivers/media/usb/uvc/uvc_ctrl.c int uvc_ctrl_add_mapping(struct uvc_video_chain · line 2012
Quoted 2 lines
drivers/media/usb/uvc/uvc_ctrl.c +1
-1- "mappings count (%u) exceeded.\n", mapping->name, + uvc_trace(UVC_TRACE_CONTROL, "Can't add mapping '%s', maximum
mappings
drivers/media/usb/uvc/uvc_ctrl.c static void uvc_ctrl_prune_entity(struct uvc_device · line 2082
Quoted 10 lines
drivers/media/usb/uvc/uvc_ctrl.c +1
-2count (%u) exceeded.\n", mapping->name, UVC_MAX_CONTROL_MAPPINGS); ret = -ENOMEM ; goto done;@@ -2086,8 +2079,7 @@ static void uvc_ctrl_prune_entity(struct uvc_device *dev, !uvc_test_bit(controls, blacklist[i].index))continue ; -uvc_trace (UVC_TRACE_CONTROL ,"%u/%u control is black listed, " -"removing it.\n" , entity->id, blacklist[i].index); + uvc_trace(UVC_TRACE_CONTROL, "%u/%u control is black listed,
removing
Quoted 10 lines
drivers/media/usb/uvc/uvc_ctrl.c +0
-0it.\n", entity->id, blacklist[i].index);uvc_clear_bit (controls, blacklist[i].index);drivers/media/usb/uvc/uvc_ctrl.c +0
-0}(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_debugfs.cindex14561a5abb79..bf6c82e73d5f100644
drivers/media/usb/uvc/uvc_debugfs.c int uvc_debugfs_init_stream(struct uvc_streaming *stream) · line 91
Quoted 6 lines
drivers/media/usb/uvc/uvc_debugfs.c +1
-2@@ -88,8 +88,7 @@ int uvc_debugfs_init_stream(struct uvc_streaming *stream) dent =debugfs_create_dir (dir_name, uvc_debugfs_root_dir);if (IS_ERR_OR_NULL (dent)) { -uvc_printk (KERN_INFO ,"Unable to create debugfs %s " -"directory.\n" , dir_name); + uvc_printk(KERN_INFO, "Unable to create debugfs %s directory.
\n",
Quoted 9 lines
drivers/media/usb/uvc/uvc_debugfs.c +0
-0dir_name); return -ENODEV; }(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_driver.cindex9c4b56b4a9c6..aaff330e147f100644
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 373
Quoted 6 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2@@ -370,8 +370,7 @@ static int uvc_parse_format(struct uvc_device *dev,case UVC_VS_FORMAT_FRAME_BASED : n = buffer[2 ] ==UVC_VS_FORMAT_UNCOMPRESSED ?27 :28 ;if (buflen < n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d FORMAT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d FORMAT
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 420
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2error\n", dev->udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;@@ -418,8 +417,7 @@ static int uvc_parse_format(struct uvc_device *dev,case UVC_VS_FORMAT_MJPEG :if (buflen <11 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d FORMAT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d FORMAT
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 435
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2error\n", dev->udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;@@ -434,8 +432,7 @@ static int uvc_parse_format(struct uvc_device *dev,case UVC_VS_FORMAT_DV :if (buflen <9 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d FORMAT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d FORMAT
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 452
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2error\n", dev->udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;@@ -452,8 +449,7 @@ static int uvc_parse_format(struct uvc_device *dev,strlcpy (format->name,"HD-DV" ,sizeof format->name);break ;default : - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d: unknown DV format %u\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d:
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 480
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2unknown DV format %u\n", dev->udev->devnum, alts->desc.bInterfaceNumber, buffer[8]);return -EINVAL ;@@ -481,8 +477,7 @@ static int uvc_parse_format(struct uvc_device *dev,case UVC_VS_FORMAT_STREAM_BASED :/* Not supported yet. */ default : - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d unsupported format %u\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
%d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 506
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2unsupported format %u\n", dev->udev->devnum, alts->desc.bInterfaceNumber, buffer[2]);return -EINVAL ;@@ -507,8 +502,7 @@ static int uvc_parse_format(struct uvc_device *dev, n = n ? n :3 ;if (buflen <26 +4 *n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d FRAME error\n", dev->udev- devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d FRAME
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_format(struct uvc_device *dev, · line 587
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0error\n", dev->udev->devnum, alts->desc.bInterfaceNumber); return -EINVAL ;drivers/media/usb/uvc/uvc_driver.c +1
-2}@@ -590,8 +584,7 @@ static int uvc_parse_format(struct uvc_device *dev,if (buflen >2 && buffer[1 ] ==USB_DT_CS_INTERFACE && buffer[2 ] ==UVC_VS_COLORFORMAT ) {if (buflen <6 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d COLORFORMAT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 619
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2COLORFORMAT error\n", dev->udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;@@ -623,15 +616,13 @@ static int uvc_parse_streaming(struct uvc_device *dev,if (intf->cur_altsetting->desc.bInterfaceSubClass !=UVC_SC_VIDEOSTREAMING ) { - uvc_trace(UVC_TRACE_DESCR, "device %d interface %d isn't a " - "video streaming interface\n", dev->udev->devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d interface %d isn't a
video
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev,
Quoted 7 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1streaming interface\n", dev->udev->devnum, intf->altsetting[0].desc.bInterfaceNumber);return -EINVAL ; }if (usb_driver_claim_interface (&uvc_driver.driver, intf, dev)) { - uvc_trace(UVC_TRACE_DESCR, "device %d interface %d is already
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 626
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "claimed\n", dev->udev->devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d interface %d is already
claimed\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 662
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0dev->udev->devnum, intf->altsetting[0].desc.bInterfaceNumber);return -EINVAL ;drivers/media/usb/uvc/uvc_driver.c +0
-1}@@ -659,8 +650,7 @@ static int uvc_parse_streaming(struct uvc_device *dev,if (ep->extralen >2 && ep->extra[1 ] ==USB_DT_CS_INTERFACE ) { - uvc_trace(UVC_TRACE_DESCR, "trying extra data
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 653
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "from endpoint %u.\n", i); + uvc_trace(UVC_TRACE_DESCR, "trying extra data
from endpoint %u.\n", i);
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 668
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2buffer = alts->endpoint[i].extra; buflen = alts->endpoint[i].extralen;break ;@@ -675,8 +665,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, }if (buflen <=2 ) { -uvc_trace (UVC_TRACE_DESCR ,"no class-specific streaming " -"interface descriptors found.\n" ); + uvc_trace(UVC_TRACE_DESCR, "no class-specific streaming
interface
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 696
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1descriptors found.\n"); goto error; }@@ -693,8 +682,7 @@ static int uvc_parse_streaming(struct uvc_device *dev,break ;default : - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 686
Quoted 3 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1-"%d HEADER descriptor not found.\n" , dev->udev- devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
%d HEADER
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 694
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0descriptor not found.\n", dev->udev->devnum, alts->desc.bInterfaceNumber); goto error;drivers/media/usb/uvc/uvc_driver.c +1
-2}@@ -703,8 +691,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, n = buflen >= size ? buffer[size-1 ] :0 ;if (buflen < size + p*n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d HEADER descriptor is invalid.\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
%d HEADER
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 745
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2descriptor is invalid.\n", dev->udev->devnum, alts->desc.bInterfaceNumber); goto error; }@@ -755,8 +742,7 @@ static int uvc_parse_streaming(struct uvc_device *dev,case UVC_VS_FORMAT_MPEG2TS :case UVC_VS_FORMAT_STREAM_BASED : - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming " - "interface %d FORMAT %u is not supported.\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming
interface %d FORMAT
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 783
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1%u is not supported.\n", dev->udev->devnum, alts->desc.bInterfaceNumber, _buffer[2]);break ;@@ -780,8 +766,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, }if (nformats ==0 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 769
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "%d has no supported formats defined.\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
%d has no
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 832
Quoted 9 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0supported formats defined.\n", dev->udev->devnum, alts->desc.bInterfaceNumber); goto error;drivers/media/usb/uvc/uvc_driver.c +0
-1}@@ -829,8 +814,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, }if (buflen) - uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_streaming(struct uvc_device *dev, · line 817
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "%d has %u bytes of trailing descriptor garbage.\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videostreaming interface
%d has %u
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_vendor_control(struct uvc_device · line 926
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0bytes of trailing descriptor garbage.\n", dev->udev->devnum, alts->desc.bInterfaceNumber, buflen);drivers/media/usb/uvc/uvc_driver.c +1
-2/* Parse the alternate settings to find the maximum bandwidth. */ @@ -939,8 +923,7 @@ static int uvc_parse_vendor_control(struct uvc_device *dev, n = buflen >=25 + p ? buffer[22 +p] :0 ;if (buflen <25 + p +2 *n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d EXTENSION_UNIT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct uvc_device · line 974
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2EXTENSION_UNIT error\n", udev->devnum, alts->desc.bInterfaceNumber);break ; }@@ -988,8 +971,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, n = buflen >=12 ? buffer[11 ] :0 ;if (buflen <12 + n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d HEADER error\n", udev->devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d HEADER
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct uvc_device · line 986
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2error\n", udev->devnum, alts->desc.bInterfaceNumber); return -EINVAL ; }@@ -1001,8 +983,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, for (i = 0; i < n; ++i) { intf =usb_ifnum_to_if (udev, buffer[12 +i]);if (intf ==NULL ) { - uvc_trace(UVC_TRACE_DESCR, "device %d " - "interface %d doesn't exists\n", + uvc_trace(UVC_TRACE_DESCR, "device %d
interface %d doesn't exists\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct uvc_device · line 998
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2udev->devnum, i);continue ; }@@ -1013,8 +994,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, case UVC_VC_INPUT_TERMINAL:if (buflen <8 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d INPUT_TERMINAL error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct uvc_device *dev,
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0INPUT_TERMINAL error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;drivers/media/usb/uvc/uvc_driver.c +0
-0}@@ -1024,9 +1004,7 @@ static int uvc_parse_standard_control(struct
uvc_device*dev, */drivers/media/usb/uvc/uvc_driver.c +1
-3type =get_unaligned_le16 (&buffer[4 ]);if ((type &0xff00 ) ==0 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d INPUT_TERMINAL %d has invalid " - "type 0x%04x, skipping\n", udev->devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1028
Quoted 11 lines
INPUT_TERMINAL%d has invalid type 0x%04x, skipping\n",udev->devnum,alts->desc.bInterfaceNumber,drivers/media/usb/uvc/uvc_driver.c +1
-2buffer[3], type);return 0 ;@@ -1047,8 +1025,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, }if (buflen < len + n + p) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d INPUT_TERMINAL error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1075
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2INPUT_TERMINAL error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ; }@@ -1094,8 +1071,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, case UVC_VC_OUTPUT_TERMINAL: if (buflen < 9) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d OUTPUT_TERMINAL error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct uvc_device *dev,
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0OUTPUT_TERMINAL error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ;drivers/media/usb/uvc/uvc_driver.c +0
-0}@@ -1105,9 +1081,7 @@ static int uvc_parse_standard_control(struct
uvc_device*dev, */drivers/media/usb/uvc/uvc_driver.c +1
-3type =get_unaligned_le16 (&buffer[4 ]);if ((type &0xff00 ) ==0 ) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d OUTPUT_TERMINAL %d has invalid " - "type 0x%04x, skipping\n", udev->devnum, + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1109
Quoted 11 lines
OUTPUT_TERMINAL%d has invalid type 0x%04x, skipping\n",udev->devnum,alts->desc.bInterfaceNumber, buffer[3], type);drivers/media/usb/uvc/uvc_driver.c +1
-2return 0 ; }@@ -1132,8 +1106,7 @@ static int uvc_parse_standard_control(structuvc_device *dev, p = buflen >=5 ? buffer[4 ] :0 ;if (buflen <5 || buflen <6 + p) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d SELECTOR_UNIT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1134
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2SELECTOR_UNIT error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ; }@@ -1158,8 +1131,7 @@ static int uvc_parse_standard_control(structuvc_device *dev, p = dev->uvc_version >=0x0110 ?10 :9 ;if (buflen < p + n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d PROCESSING_UNIT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1166
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2PROCESSING_UNIT error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ; }@@ -1191,8 +1163,7 @@ static int uvc_parse_standard_control(structuvc_device *dev, n = buflen >=24 + p ? buffer[22 +p] :0 ;if (buflen <24 + p + n) { - uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " - "interface %d EXTENSION_UNIT error\n", + uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol
interface %d
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_standard_control(struct · line 1192
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2EXTENSION_UNIT error\n", udev->devnum, alts->desc.bInterfaceNumber);return -EINVAL ; }@@ -1218,8 +1189,7 @@ static int uvc_parse_standard_control(structuvc_device *dev, break;default : -uvc_trace (UVC_TRACE_DESCR ,"Found an unknown CS_INTERFACE " -"descriptor (%u)\n" , buffer[2 ]); + uvc_trace(UVC_TRACE_DESCR, "Found an unknown CS_INTERFACE
descriptor
drivers/media/usb/uvc/uvc_driver.c static int uvc_parse_control(struct uvc_device *dev) · line 1237
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2(%u)\n", buffer[2]); break; }@@ -1264,8 +1234,7 @@ static int uvc_parse_control(struct uvc_device *dev)if (usb_endpoint_is_int_in (desc) &&le16_to_cpu (desc->wMaxPacketSize) >=8 && desc->bInterval !=0 ) { -uvc_trace (UVC_TRACE_DESCR ,"Found a Status endpoint " -"(addr %02x).\n" , desc->bEndpointAddress); + uvc_trace(UVC_TRACE_DESCR, "Found a Status endpoint
(addr %02x).\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_entity(struct · line 1315
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1desc->bEndpointAddress); dev->int_ep = ep; } }@@ -1312,8 +1281,7 @@ static int uvc_scan_chain_entity(struct uvc_video_chain *chain,printk (KERN_CONT " <- XU %d" , entity->id);if (entity->bNrInPins !=1 ) { - uvc_trace(UVC_TRACE_DESCR, "Extension unit %d has more
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_entity(struct · line 1284
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "than 1 input pin.\n", entity->id); + uvc_trace(UVC_TRACE_DESCR, "Extension unit %d has more
than 1 input
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_entity(struct · line 1295
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2pin.\n", entity->id); return -1; }@@ -1324,8 +1292,7 @@ static int uvc_scan_chain_entity(struct uvc_video_chain *chain,printk (KERN_CONT " <- PU %d" , entity->id);if (chain->processing !=NULL ) { -uvc_trace (UVC_TRACE_DESCR ,"Found multiple " -"Processing Units in chain.\n" ); + uvc_trace(UVC_TRACE_DESCR, "Found multiple Processing
Units in
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_entity(struct · line 1311
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2chain.\n"); return -1; }@@ -1341,8 +1308,7 @@ static int uvc_scan_chain_entity(structuvc_video_chain *chain, break;if (chain->selector !=NULL ) { -uvc_trace (UVC_TRACE_DESCR ,"Found multiple Selector " -"Units in chain.\n" ); + uvc_trace(UVC_TRACE_DESCR, "Found multiple Selector
Units in chain.\n");
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_entity(struct · line 1346
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2return -1 ; }@@ -1377,8 +1343,7 @@ static int uvc_scan_chain_entity(structuvc_video_chain *chain, break;default : -uvc_trace (UVC_TRACE_DESCR ,"Unsupported entity type " -"0x%04x found in chain.\n" ,UVC_ENTITY_TYPE (entity)); + uvc_trace(UVC_TRACE_DESCR, "Unsupported entity type 0x%04x
found in
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_forward(struct · line 1410
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1chain.\n", UVC_ENTITY_TYPE(entity)); return -1; }@@ -1407,8 +1372,7 @@ static int uvc_scan_chain_forward(struct uvc_video_chain *chain, switch (UVC_ENTITY_TYPE(forward)) {case UVC_VC_EXTENSION_UNIT :if (forward->bNrInPins !=1 ) { - uvc_trace(UVC_TRACE_DESCR, "Extension unit %d
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_forward(struct · line 1375
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "has more than 1 input pin.\n", + uvc_trace(UVC_TRACE_DESCR, "Extension unit %d
has more than 1 input
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_forward(struct uvc_video_chain *chain,
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-0pin.\n", entity->id);return -EINVAL ; }@@ -1428,8 +1392,7 @@ static int uvc_scan_chain_forward(struct
uvc_video_chain*chain, caseUVC_OTT_MEDIA_TRANSPORT_OUTPUT:drivers/media/usb/uvc/uvc_driver.c +0
-1case UVC_TT_STREAMING :if (UVC_ENTITY_IS_ITERM (forward)) { - uvc_trace(UVC_TRACE_DESCR, "Unsupported input
"
drivers/media/usb/uvc/uvc_driver.c
Quoted 2 lines
drivers/media/usb/uvc/uvc_driver.c +1
-1- "terminal %u.\n", forward->id); + uvc_trace(UVC_TRACE_DESCR, "Unsupported input
terminal %u.\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_backward(struct · line 1444
Quoted 11 lines
forward->id); return-EINVAL;drivers/media/usb/uvc/uvc_driver.c +1
-3}@@ -1478,9 +1441,7 @@ static int uvc_scan_chain_backward(structuvc_video_chain *chain, id = entity->baSourceID[i]; term =uvc_entity_by_id (chain->dev, id);if (term ==NULL || !UVC_ENTITY_IS_ITERM (term)) { -uvc_trace (UVC_TRACE_DESCR ,"Selector unit %d " -"input %d isn't connected to an " -"input terminal\n" , entity->id, i); + uvc_trace(UVC_TRACE_DESCR, "Selector unit %d
input %d isn't connected
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain_backward(struct · line 1480
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2to an input terminal\n", entity->id, i); return -1; }@@ -1515,8 +1476,7 @@ static int uvc_scan_chain_backward(structuvc_video_chain *chain, entity =uvc_entity_by_id (chain->dev, id);if (entity ==NULL ) { -uvc_trace (UVC_TRACE_DESCR ,"Found reference to " -"unknown entity %d.\n" , id); + uvc_trace(UVC_TRACE_DESCR, "Found reference to unknown entity
%d.\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_scan_chain(struct uvc_video_chain · line 1500
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2id); return -EINVAL; }@@ -1537,8 +1497,7 @@ static int uvc_scan_chain(struct uvc_video_chain *chain, while (entity != NULL) {/* Entity must not be part of an existing chain */ if (entity->chain.next || entity->chain.prev) { -uvc_trace (UVC_TRACE_DESCR ,"Found reference to " -"entity %d already in chain.\n" , entity->id); + uvc_trace(UVC_TRACE_DESCR, "Found reference to entity
%d already in
drivers/media/usb/uvc/uvc_driver.c static int uvc_register_video(struct uvc_device *dev, · line 1728
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2chain.\n", entity->id); return -EINVAL; }@@ -1766,8 +1725,7 @@ static int uvc_register_video(struct uvc_device *dev,*/ ret =uvc_video_init (stream);if (ret <0 ) { -uvc_printk (KERN_ERR ,"Failed to initialize the device " -"(%d).\n" , ret); + uvc_printk(KERN_ERR, "Failed to initialize the device (%d).
\n", ret);
drivers/media/usb/uvc/uvc_driver.c static int uvc_register_terms(struct uvc_device *dev, · line 1786
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2return ret; }@@ -1825,8 +1783,7 @@ static int uvc_register_terms(struct uvc_device *dev, stream =uvc_stream_by_id (dev, term->id);if (stream ==NULL ) { -uvc_printk (KERN_INFO ,"No streaming interface found " -"for terminal %u." , term->id); + uvc_printk(KERN_INFO, "No streaming interface found
for terminal %u.",
drivers/media/usb/uvc/uvc_driver.c static int uvc_register_chains(struct uvc_device *dev) · line 1814
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2term->id); continue; }@@ -1854,8 +1811,7 @@ static int uvc_register_chains(struct uvc_device *dev)#ifdef CONFIG_MEDIA_CONTROLLER ret =uvc_mc_register_entities (chain);if (ret <0 ) { -uvc_printk (KERN_INFO ,"Failed to register entites " -"(%d).\n" , ret); + uvc_printk(KERN_INFO, "Failed to register entites
(%d).\n", ret);
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 1834
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2}#endif }@@ -1875,8 +1831,7 @@ static int uvc_probe(struct usb_interface *intf,int ret;if (id->idVendor && id->idProduct) - uvc_trace(UVC_TRACE_PROBE, "Probing known UVC device %s " - "(%04x:%04x)\n", udev->devpath, id->idVendor, + uvc_trace(UVC_TRACE_PROBE, "Probing known UVC device %s (%04x:
%04x)\n",
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 1867
Quoted 10 lines
drivers/media/usb/uvc/uvc_driver.c +1
-2udev->devpath, id->idVendor, id->idProduct); else uvc_trace(UVC_TRACE_PROBE, "Probing generic UVC device %s\n",@@ -1909,8 +1864,7 @@ static int uvc_probe(struct usb_interface *intf,/* Parse the Video Class control descriptor. */ if (uvc_parse_control (dev) <0 ) { -uvc_trace (UVC_TRACE_PROBE ,"Unable to parse UVC " -"descriptors.\n" ); + uvc_trace(UVC_TRACE_PROBE, "Unable to parse UVC descriptors.
\n");
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 1924
Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +0
-1goto error; }@@ -1921,10 +1875,8 @@ static int uvc_probe(struct usb_interface *intf, le16_to_cpu(udev->descriptor.idProduct));if (dev->quirks != id->driver_info) { - uvc_printk(KERN_INFO, "Forcing device quirks to 0x%x by module
"
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf,
Quoted 4 lines
drivers/media/usb/uvc/uvc_driver.c +1
-3- "parameter for testing purpose.\n", dev->quirks); -uvc_printk (KERN_INFO ,"Please report required quirks to the " -"linux-uvc-devel mailing list.\n" ); + uvc_printk(KERN_INFO, "Forcing device quirks to 0x%x by module
parameter
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 1879
Quoted 1 line
drivers/media/usb/uvc/uvc_driver.c +0
-0for testing purpose.\n", dev->quirks); + uvc_printk(KERN_INFO,
"Please
drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 1921
Quoted 11 lines
drivers/media/usb/uvc/uvc_driver.c +1
-3report required quirks to the linux-uvc-devel mailing list.\n"); }/* Initialize the media device and register the V4L2 device. */ @@ -1966,9 +1918,7 @@ static int uvc_probe(struct usb_interface *intf,/* Initialize the interrupt URB. */ if ((ret =uvc_status_init (dev)) <0 ) { -uvc_printk (KERN_INFO ,"Unable to initialize the status " -"endpoint (%d), status interrupt will not be " -"supported.\n" , ret); + uvc_printk(KERN_INFO, "Unable to initialize the status
endpoint (%d),
Quoted 29 lines
drivers/media/usb/uvc/uvc_driver.c +2
-4status interrupt will not be supported.\n", ret); }uvc_trace (UVC_TRACE_PROBE ,"UVC device initialized.\n" );@@ -2019,8 +1969,7 @@ static int uvc_suspend(struct usb_interface *intf, pm_message_t message) return uvc_video_suspend(stream); } -uvc_trace (UVC_TRACE_SUSPEND ,"Suspend: video streaming USB interface " -"mismatch.\n" ); + uvc_trace(UVC_TRACE_SUSPEND, "Suspend: video streaming USB interface mismatch.\n"); return -EINVAL; }@@ -2059,8 +2008,7 @@ static int __uvc_resume(struct usb_interface *intf, int reset) } } -uvc_trace (UVC_TRACE_SUSPEND ,"Resume: video streaming USB interface " -"mismatch.\n" ); + uvc_trace(UVC_TRACE_SUSPEND, "Resume: video streaming USB interface mismatch.\n"); return -EINVAL; }(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_entity.cindexac386bb547e6..503bd3a2e298100644
drivers/media/usb/uvc/uvc_entity.c int uvc_mc_register_entities(struct uvc_video_chain · line 112
Quoted 4 lines
drivers/media/usb/uvc/uvc_entity.c +0
-1@@ -109,8 +109,7 @@ int uvc_mc_register_entities(struct uvc_video_chain *chain) list_for_each_entry(entity, &chain->entities, chain) { ret =uvc_mc_init_entity (chain, entity);if (ret <0 ) { - uvc_printk(KERN_INFO, "Failed to initialize entity for
"
drivers/media/usb/uvc/uvc_entity.c int uvc_mc_register_entities(struct uvc_video_chain · line 112
Quoted 2 lines
drivers/media/usb/uvc/uvc_entity.c +1
-1- "entity %u\n", entity->id); + uvc_printk(KERN_INFO, "Failed to initialize entity for
entity %u\n",
drivers/media/usb/uvc/uvc_entity.c int uvc_mc_register_entities(struct uvc_video_chain · line 120
Quoted 10 lines
drivers/media/usb/uvc/uvc_entity.c +1
-2entity->id); return ret; } }@@ -118,8 +117,7 @@ int uvc_mc_register_entities(struct uvc_video_chain *chain) list_for_each_entry(entity, &chain->entities, chain) { ret =uvc_mc_create_links (chain, entity);if (ret <0 ) { -uvc_printk (KERN_INFO ,"Failed to create links for " -"entity %u\n" , entity->id); + uvc_printk(KERN_INFO, "Failed to create links for
entity %u\n",
Quoted 11 lines
drivers/media/usb/uvc/uvc_entity.c +0
-0entity->id); return ret; } }(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_isight.cindex8510e7259e76..e510be6431d4100644drivers/media/usb/uvc/uvc_isight.c +0
-0@@ -61,8 +61,7 @@ static int isight_decode(struct uvc_video_queue *queue,struct
uvc_buffer*buf, /* Synchronize to the input stream by waiting for a header packet. */ if (buf->state!=UVC_BUF_STATE_ACTIVE) {
drivers/media/usb/uvc/uvc_isight.c static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf,
Quoted 4 lines
drivers/media/usb/uvc/uvc_isight.c +1
-2if (!is_header) { -uvc_trace (UVC_TRACE_FRAME ,"Dropping packet (out of " -"sync).\n" ); + uvc_trace(UVC_TRACE_FRAME, "Dropping packet (out of
sync).\n");
drivers/media/usb/uvc/uvc_isight.c static int isight_decode(struct uvc_video_queue *queue, · line 92
Quoted 10 lines
drivers/media/usb/uvc/uvc_isight.c +1
-2return 0 ; }@@ -90,8 +89,7 @@ static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf, buf->bytesused += nbytes;if (len > maxlen || buf->bytesused == buf->length) { -uvc_trace (UVC_TRACE_FRAME ,"Frame complete " -"(overflow).\n" ); + uvc_trace(UVC_TRACE_FRAME, "Frame complete (overflow).
\n");
drivers/media/usb/uvc/uvc_isight.c void uvc_video_decode_isight(struct urb *urb, struct · line 108
Quoted 11 lines
drivers/media/usb/uvc/uvc_isight.c +1
-2buf->state =UVC_BUF_STATE_DONE ; } }@@ -106,8 +104,7 @@ void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream, for (i = 0; i < urb->number_of_packets; ++i) {if (urb->iso_frame_desc[i].status <0 ) { - uvc_trace(UVC_TRACE_FRAME, "USB isochronous frame " - "lost (%d).\n", + uvc_trace(UVC_TRACE_FRAME, "USB isochronous frame lost
(%d).\n",
Quoted 19 lines
drivers/media/usb/uvc/uvc_isight.c +0
-0urb->iso_frame_desc[i].status); }(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_status.cindexf552ab997956..16adf094447d100644drivers/media/usb/uvc/uvc_status.c +1
-2@@ -81,8 +81,7 @@ static void uvc_input_report_key(struct uvc_device *dev, unsigned int code, static void uvc_event_streaming(struct uvc_device *dev, __u8 *data, int len) {if (len <3 ) { -uvc_trace (UVC_TRACE_STATUS ,"Invalid streaming status event " -"received.\n" ); + uvc_trace(UVC_TRACE_STATUS, "Invalid streaming status event received.\n"); return; }
drivers/media/usb/uvc/uvc_status.c static void uvc_event_streaming(struct uvc_device *dev, · line 95
Quoted 6 lines
drivers/media/usb/uvc/uvc_status.c +1
-2@@ -93,8 +92,7 @@ static void uvc_event_streaming(struct uvc_device *dev, __u8 *data, int len) data[1], data[3] ? "pressed" : "released", len);uvc_input_report_key (dev,KEY_CAMERA , data[3 ]); }else { -uvc_trace (UVC_TRACE_STATUS ,"Stream %u error event %02x %02x " -"len %d.\n" , data[1 ], data[2 ], data[3 ], len); + uvc_trace(UVC_TRACE_STATUS, "Stream %u error event %02x %02x
len %d.\n",
drivers/media/usb/uvc/uvc_status.c static void uvc_event_control(struct uvc_device *dev, · line 104
Quoted 10 lines
drivers/media/usb/uvc/uvc_status.c +1
-2data[1], data[2], data[3], len); } }@@ -103,8 +101,7 @@ static void uvc_event_control(struct uvc_device *dev, __u8 *data, int len) char *attrs[3] = { "value", "info", "failure" };if (len <6 || data[2 ] !=0 || data[4 ] >2 ) { -uvc_trace (UVC_TRACE_STATUS ,"Invalid control status event " -"received.\n" ); + uvc_trace(UVC_TRACE_STATUS, "Invalid control status event
received.\n");
drivers/media/usb/uvc/uvc_status.c static void uvc_status_complete(struct urb *urb) · line 129
Quoted 10 lines
drivers/media/usb/uvc/uvc_status.c +1
-2return ; }@@ -129,8 +126,7 @@ static void uvc_status_complete(struct urb *urb)return ;default : -uvc_printk (KERN_WARNING ,"Non-zero status (%d) in status " -"completion handler.\n" , urb->status); + uvc_printk(KERN_WARNING, "Non-zero status (%d) in status
completion
drivers/media/usb/uvc/uvc_status.c static void uvc_status_complete(struct urb *urb) · line 145
Quoted 10 lines
drivers/media/usb/uvc/uvc_status.c +1
-2handler.\n", urb->status); return; }@@ -146,8 +142,7 @@ static void uvc_status_complete(struct urb *urb)break ;default : -uvc_trace (UVC_TRACE_STATUS ,"Unknown status event " -"type %u.\n" , dev->status[0 ]); + uvc_trace(UVC_TRACE_STATUS, "Unknown status event type
%u.\n",
Quoted 8 lines
drivers/media/usb/uvc/uvc_status.c +0
-0dev->status[0]); break; } }(quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_v4l2.cindex05eed4be25df..457a26b32310100644
drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_ctrl_map(struct uvc_video_chain · line 88
Quoted 6 lines
drivers/media/usb/uvc/uvc_v4l2.c +1
-2@@ -85,8 +85,7 @@ static int uvc_ioctl_ctrl_map(struct uvc_video_chain *chain, break;default : -uvc_trace (UVC_TRACE_CONTROL ,"Unsupported V4L2 control type " -"%u.\n" , xmap->v4l2_type); + uvc_trace(UVC_TRACE_CONTROL, "Unsupported V4L2 control type
%u.\n",
drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_try_format(struct uvc_streaming · line 227
Quoted 11 lines
drivers/media/usb/uvc/uvc_v4l2.c +1
-2xmap->v4l2_type); ret = -ENOTTY; goto done; }@@ -224,8 +223,7 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,/* Use the default frame interval. */ interval = frame->dwDefaultFrameInterval; - uvc_trace(UVC_TRACE_FORMAT, "Using default frame interval %u.%u us " - "(%u.%u fps).\n", interval/10, interval%10, 10000000/interval, + uvc_trace(UVC_TRACE_FORMAT, "Using default frame interval %u.%u us
(%u.%u
Quoted 9 lines
drivers/media/usb/uvc/uvc_v4l2.c +0
-0fps).\n", interval/10, interval%10, 10000000/interval, (100000000/interval)%10);drivers/media/usb/uvc/uvc_v4l2.c +0
-0/* Set the format index, frame index and frame interval. */ (quoted diff) +0
-0
b/drivers/media/usb/uvc/uvc_video.cindexb5589d5f5da4..4ce767e44ccf100644
drivers/media/usb/uvc/uvc_video.c int uvc_query_ctrl(struct uvc_device *dev, __u8 query, · line 80
Quoted 6 lines
drivers/media/usb/uvc/uvc_video.c +1
-2@@ -77,8 +77,7 @@ int uvc_query_ctrl(struct uvc_device *dev, __u8 query,__u8 unit, ret =__uvc_query_ctrl (dev, query, unit, intfnum, cs, data, size,UVC_CTRL_CONTROL_TIMEOUT );if (ret != size) { - uvc_printk(KERN_ERR, "Failed to query (%s) UVC control %u on " - "unit %u: %d (exp. %u).\n", uvc_query_name(query), cs, + uvc_printk(KERN_ERR, "Failed to query (%s) UVC control %u on
unit %u: %d
drivers/media/usb/uvc/uvc_video.c static int uvc_get_video_ctrl(struct uvc_streaming · line 190
Quoted 11 lines
drivers/media/usb/uvc/uvc_video.c +1
-3(exp. %u).\n", uvc_query_name(query), cs, unit, ret, size); return -EIO ; }@@ -188,9 +187,7 @@ static int uvc_get_video_ctrl(struct uvc_streaming*stream, * answer a GET_MIN or GET_MAX request with the wCompQuality * field only. */ -uvc_warn_once (stream->dev,UVC_WARN_MINMAX ,"UVC non " -"compliance - GET_MIN/MAX(PROBE) incorrectly " -"supported. Enabling workaround.\n" ); + uvc_warn_once(stream->dev, UVC_WARN_MINMAX, "UVC non
compliance -
drivers/media/usb/uvc/uvc_video.c static int uvc_get_video_ctrl(struct uvc_streaming · line 200
Quoted 12 lines
drivers/media/usb/uvc/uvc_video.c +0
-0GET_MIN/MAX(PROBE) incorrectly supported. Enabling workaround.\n"); memset(ctrl,0 ,sizeof *ctrl); ctrl->wCompQuality =le16_to_cpup ((__le16 *)data);drivers/media/usb/uvc/uvc_video.c +1
-3ret =0 ;@@ -200,14 +197,11 @@ static int uvc_get_video_ctrl(struct uvc_streaming*stream, * video probe control. Warn once and return, the caller will * fall back to GET_CUR. */ -uvc_warn_once (stream->dev,UVC_WARN_PROBE_DEF ,"UVC non " -"compliance - GET_DEF(PROBE) not supported. " -"Enabling workaround.\n" ); + uvc_warn_once(stream->dev, UVC_WARN_PROBE_DEF, "UVC non
compliance -
drivers/media/usb/uvc/uvc_video.c static int uvc_get_video_ctrl(struct uvc_streaming *stream,
Quoted 6 lines
drivers/media/usb/uvc/uvc_video.c +1
-2GET_DEF(PROBE) not supported. Enabling workaround.\n"); ret = -EIO; goto out; }else if (ret != size) { - uvc_printk(KERN_ERR, "Failed to query (%u) UVC %s control : " - "%d (exp. %u).\n", query, probe ? "probe" : "commit", + uvc_printk(KERN_ERR, "Failed to query (%u) UVC %s control : %d
(exp.
drivers/media/usb/uvc/uvc_video.c static int uvc_set_video_ctrl(struct uvc_streaming · line 284
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +1
-2%u).\n", query, probe ? "probe" : "commit", ret, size); ret = -EIO; goto out;@@ -287,8 +281,7 @@ static int uvc_set_video_ctrl(struct uvc_streaming *stream, probe ?UVC_VS_PROBE_CONTROL :UVC_VS_COMMIT_CONTROL , data, size, uvc_timeout_param);if (ret != size) { - uvc_printk(KERN_ERR, "Failed to set UVC %s control : " - "%d (exp. %u).\n", probe ? "probe" : "commit", + uvc_printk(KERN_ERR, "Failed to set UVC %s control : %d (exp.
%u).\n",
drivers/media/usb/uvc/uvc_video.c void uvc_video_clock_update(struct uvc_streaming · line 649
Quoted 11 lines
drivers/media/usb/uvc/uvc_video.c +1
-2probe ? "probe" : "commit", ret, size); ret = -EIO ; }@@ -652,8 +645,7 @@ void uvc_video_clock_update(struct uvc_streaming *stream, sof = y; - uvc_trace(UVC_TRACE_CLOCK, "%s: PTS %u y %llu.%06llu SOF %u.%06llu " - "(x1 %u x2 %u y1 %u y2 %u SOF offset %u)\n", + uvc_trace(UVC_TRACE_CLOCK, "%s: PTS %u y %llu.%06llu SOF %u.%06llu (x1
%u
drivers/media/usb/uvc/uvc_video.c void uvc_video_clock_update(struct uvc_streaming · line 689
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +0
-0x2 %u y1 %u y2 %u SOF offset %u)\n", stream->dev->name, buf->pts, y >> 16, div_u64((y & 0xffff) * 1000000, 65536),drivers/media/usb/uvc/uvc_video.c +1
-2sof >> 16, div_u64(((u64)sof & 0xffff) * 1000000LLU, 65536),@@ -694,8 +686,7 @@ void uvc_video_clock_update(struct uvc_streaming *stream, ts.tv_nsec -=NSEC_PER_SEC ; } - uvc_trace(UVC_TRACE_CLOCK, "%s: SOF %u.%06llu y %llu ts %llu " - "buf ts %llu (x1 %u/%u/%u x2 %u/%u/%u y1 %u y2 %u)\n", + uvc_trace(UVC_TRACE_CLOCK, "%s: SOF %u.%06llu y %llu ts %llu buf ts
%llu
drivers/media/usb/uvc/uvc_video.c static void uvc_video_stats_update(struct uvc_streaming · line 823
Quoted 11 lines
drivers/media/usb/uvc/uvc_video.c +1
-3(x1 %u/%u/%u x2 %u/%u/%u y1 %u y2 %u)\n", stream->dev->name, sof >>16 ,div_u64 (((u64 )sof &0xffff ) *1000000LLU ,65536 ), y, timespec_to_ns(&ts), vbuf->vb2_buf.timestamp,@@ -829,9 +820,7 @@ static void uvc_video_stats_update(struct uvc_streaming *stream) {struct uvc_stats_frame *frame = &stream->stats.frame; - uvc_trace(UVC_TRACE_STATS, "frame %u stats: %u/%u/%u packets, " - "%u/%u/%u pts (%searly %sinitial), %u/%u scr, " - "last pts/stc/sof %u/%u/%u\n", + uvc_trace(UVC_TRACE_STATS, "frame %u stats: %u/%u/%u packets, %u/%u/%u
pts
drivers/media/usb/uvc/uvc_video.c static int uvc_video_decode_start(struct uvc_streaming · line 995
Quoted 12 lines
drivers/media/usb/uvc/uvc_video.c +0
-0(%searly %sinitial), %u/%u scr, last pts/stc/sof %u/%u/%u\n", stream->sequence, frame->first_data, frame->nb_packets - frame->nb_empty, frame->nb_packets,drivers/media/usb/uvc/uvc_video.c +1
-2frame->nb_pts_diffs, frame->last_pts_diff, frame->nb_pts,@@ -1002,8 +991,7 @@ static int uvc_video_decode_start(struct uvc_streaming *stream,/* Mark the buffer as bad if the error bit is set. */ if (data[1] & UVC_STREAM_ERR) { -uvc_trace (UVC_TRACE_FRAME ,"Marking buffer as bad (error bit " -"set).\n" ); + uvc_trace(UVC_TRACE_FRAME, "Marking buffer as bad (error bit
set).\n");
drivers/media/usb/uvc/uvc_video.c static int uvc_video_decode_start(struct uvc_streaming · line 1010
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +1
-2buf->error =1 ; }@@ -1019,8 +1007,7 @@ static int uvc_video_decode_start(struct uvc_streaming *stream, struct timespec ts;if (fid == stream->last_fid) { -uvc_trace (UVC_TRACE_FRAME ,"Dropping payload (out of " -"sync).\n" ); + uvc_trace(UVC_TRACE_FRAME, "Dropping payload (out of
sync).\n");
drivers/media/usb/uvc/uvc_video.c static int uvc_video_decode_start(struct uvc_streaming · line 1043
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +1
-2if ((stream->dev->quirks &UVC_QUIRK_STREAM_NO_FID ) && (data[1 ] &UVC_STREAM_EOF )) stream->last_fid ^=UVC_STREAM_FID ;@@ -1053,8 +1040,7 @@ static int uvc_video_decode_start(struct uvc_streaming*stream, * previous payload had the EOF bit set. */ if (fid != stream->last_fid && buf->bytesused !=0 ) { -uvc_trace (UVC_TRACE_FRAME ,"Frame complete (FID bit " -"toggled).\n" ); + uvc_trace(UVC_TRACE_FRAME, "Frame complete (FID bit toggled).
\n");
drivers/media/usb/uvc/uvc_video.c static void uvc_video_decode_isoc(struct urb *urb, · line 1157
Quoted 12 lines
drivers/media/usb/uvc/uvc_video.c +1
-2buf->state =UVC_BUF_STATE_READY ;return -EAGAIN ; }@@ -1166,8 +1152,7 @@ static void uvc_video_decode_isoc(struct urb *urb,struct uvc_streaming *stream, for (i = 0; i < urb->number_of_packets; ++i) {if (urb->iso_frame_desc[i].status <0 ) { -uvc_trace (UVC_TRACE_FRAME ,"USB isochronous frame " -"lost (%d).\n" , urb- iso_frame_desc[i].status); + uvc_trace(UVC_TRACE_FRAME, "USB isochronous frame lost
(%d).\n",
drivers/media/usb/uvc/uvc_video.c static void uvc_video_complete(struct urb *urb) · line 1316
Quoted 10 lines
urb->iso_frame_desc[i].status); /* Mark the buffer as faulty. */
drivers/media/usb/uvc/uvc_video.c +1
-2if (buf !=NULL ) buf->error =1 ;@@ -1328,8 +1313,7 @@ static void uvc_video_complete(struct urb *urb)break ;default : -uvc_printk (KERN_WARNING ,"Non-zero status (%d) in video " -"completion handler.\n" , urb->status); + uvc_printk(KERN_WARNING, "Non-zero status (%d) in video
completion
drivers/media/usb/uvc/uvc_video.c static int uvc_alloc_urb_buffers(struct · line 1411
Quoted 11 lines
drivers/media/usb/uvc/uvc_video.c +0
-0handler.\n", urb->status);case -ENOENT :/* usb_kill_urb() called. */ drivers/media/usb/uvc/uvc_video.c +1
-2if (stream->frozen)@@ -1424,15 +1408,13 @@ static int uvc_alloc_urb_buffers(struct uvc_streaming *stream, }if (i ==UVC_URBS ) { - uvc_trace(UVC_TRACE_VIDEO, "Allocated %u URB buffers " - "of %ux%u bytes each.\n", UVC_URBS, npackets, + uvc_trace(UVC_TRACE_VIDEO, "Allocated %u URB buffers
of %ux%u bytes
drivers/media/usb/uvc/uvc_video.c static int uvc_alloc_urb_buffers(struct uvc_streaming *stream,
Quoted 8 lines
drivers/media/usb/uvc/uvc_video.c +1
-2each.\n", UVC_URBS, npackets, psize);return npackets; } } -uvc_trace (UVC_TRACE_VIDEO ,"Failed to allocate URB buffers (%u bytes " -"per packet).\n" , psize); + uvc_trace(UVC_TRACE_VIDEO, "Failed to allocate URB buffers (%u bytes
per
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming · line 1607
Quoted 11 lines
drivers/media/usb/uvc/uvc_video.c +1
-2packet).\n", psize); return 0; }@@ -1621,12 +1603,10 @@ static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags) bandwidth = stream->ctrl.dwMaxPayloadTransferSize;if (bandwidth ==0 ) { -uvc_trace (UVC_TRACE_VIDEO ,"Device requested null " -"bandwidth, defaulting to lowest.\n" ); + uvc_trace(UVC_TRACE_VIDEO, "Device requested null
bandwidth, defaulting
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags)
Quoted 5 lines
drivers/media/usb/uvc/uvc_video.c +1
-2to lowest.\n"); bandwidth = 1; }else { -uvc_trace (UVC_TRACE_VIDEO ,"Device requested %u " -"B/frame bandwidth.\n" , bandwidth); + uvc_trace(UVC_TRACE_VIDEO, "Device requested %u
B/frame bandwidth.\n",
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming · line 1652
Quoted 8 lines
drivers/media/usb/uvc/uvc_video.c +0
-0bandwidth); }drivers/media/usb/uvc/uvc_video.c +0
-1for (i =0 ; i < intf->num_altsetting; ++i) {@@ -1649,13 +1629,11 @@ static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags) }if (best_ep ==NULL ) { - uvc_trace(UVC_TRACE_VIDEO, "No fast enough alt setting
"
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming · line 1632
Quoted 2 lines
drivers/media/usb/uvc/uvc_video.c +1
-1- "for requested bandwidth.\n"); + uvc_trace(UVC_TRACE_VIDEO, "No fast enough alt setting
for requested
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags)
Quoted 6 lines
drivers/media/usb/uvc/uvc_video.c +1
-2bandwidth.\n"); return -EIO; } -uvc_trace (UVC_TRACE_VIDEO ,"Selecting alternate setting %u " -"(%u B/frame bandwidth).\n" , altsetting, best_psize); + uvc_trace(UVC_TRACE_VIDEO, "Selecting alternate setting %u (%u
B/frame
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming · line 1639
Quoted 3 lines
drivers/media/usb/uvc/uvc_video.c +0
-0bandwidth).\n", altsetting, best_psize); ret = usb_set_interface(stream->dev->udev, intfnum,
altsetting);
drivers/media/usb/uvc/uvc_video.c static int uvc_init_video(struct uvc_streaming · line 1660
Quoted 8 lines
drivers/media/usb/uvc/uvc_video.c +1
-2if (ret <0 )@@ -1679,8 +1657,7 @@ static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags) for (i = 0; i < UVC_URBS; ++i) { ret =usb_submit_urb (stream->urb[i], gfp_flags);if (ret <0 ) { -uvc_printk (KERN_ERR ,"Failed to submit URB %u " -"(%d).\n" , i, ret); + uvc_printk(KERN_ERR, "Failed to submit URB %u (%d).
\n", i, ret);
drivers/media/usb/uvc/uvc_video.c int uvc_video_init(struct uvc_streaming *stream) · line 1794
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +1
-2uvc_uninit_video (stream,1 );return ret; }@@ -1814,8 +1791,7 @@ int uvc_video_init(struct uvc_streaming *stream) }if (format->nframes ==0 ) { -uvc_printk (KERN_INFO ,"No frame descriptor found for the " -"default format.\n" ); + uvc_printk(KERN_INFO, "No frame descriptor found for the
default
drivers/media/usb/uvc/uvc_video.c int uvc_video_init(struct uvc_streaming *stream) · line 1828
Quoted 10 lines
drivers/media/usb/uvc/uvc_video.c +1
-2format.\n"); return -EINVAL; }@@ -1849,8 +1825,7 @@ int uvc_video_init(struct uvc_streaming *stream)if (stream->intf->num_altsetting ==1 ) stream->decode = uvc_video_encode_bulk;else { -uvc_printk (KERN_INFO ,"Isochronous endpoints are not " -"supported for video output devices.\n" ); + uvc_printk(KERN_INFO, "Isochronous endpoints are not
supported for video
Quoted 3 lines
drivers/media/usb/uvc/uvc_video.c +0
-0output devices.\n"); return -EINVAL; } }
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 50/57 zr364xx: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/usb/zr364xx/zr364xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/media/usb/zr364xx/zr364xx.c +2 -4
@@ -633,8 +633,7 @@ static int zr364xx_read_video_callback(struct zr364xx_camera *cam, }else {if (frm->cur_size + purb->actual_length >MAX_FRAME_SIZE ) {dev_info (&cam->udev->dev, -"%s: buffer (%d bytes) too small to hold " -"frame data. Discarding frame data.\n" , +"%s: buffer (%d bytes) too small to hold frame data. Discarding frame data.\n" , __func__,MAX_FRAME_SIZE ); }else { pdest += frm->cur_size;
@@ -1373,8 +1372,7 @@ static int zr364xx_board_init(struct zr364xx_camera *cam) &cam->buffer.frame[i], i, cam->buffer.frame[i].lpvbits);if (cam->buffer.frame[i].lpvbits ==NULL ) { - printk(KERN_INFO KBUILD_MODNAME ": out of memory. " - "Using less frames\n"); + printk(KERN_INFO KBUILD_MODNAME ": out of memory. Using less frames\n");break ; } }
Signature · 1 line
2.7.4
PATCH 51/57 v4l2-core: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/v4l2-core/v4l2-ioctl.c | 90 ++++++++--------------------- drivers/media/v4l2-core/videobuf-core.c | 3 +- drivers/media/v4l2-core/videobuf2-core.c | 21 +++---- drivers/media/v4l2-core/videobuf2-v4l2.c | 9 +-- drivers/media/v4l2-core/videobuf2-vmalloc.c | 3 +- 5 files changed, 37 insertions(+), 89 deletions(-)
drivers/media/v4l2-core/v4l2-ioctl.c +25 -65
@@ -174,8 +174,7 @@ static void v4l_print_querycap(const void *arg, bool write_only) {const struct v4l2_capability *p = arg; - pr_cont("driver=%.*s, card=%.*s, bus=%.*s, version=0x%08x, " - "capabilities=0x%08x, device_caps=0x%08x\n", + pr_cont("driver=%.*s, card=%.*s, bus=%.*s, version=0x%08x, capabilities=0x%08x, device_caps=0x%08x\n", (int)sizeof(p->driver), p->driver, (int)sizeof(p->card), p->card, (int)sizeof(p->bus_info), p->bus_info,
@@ -186,8 +185,7 @@ static void v4l_print_enuminput(const void *arg, bool write_only) {const struct v4l2_input *p = arg; -pr_cont ("index=%u, name=%.*s, type=%u, audioset=0x%x, tuner=%u, " -"std=0x%08Lx, status=0x%x, capabilities=0x%x\n" , +pr_cont ("index=%u, name=%.*s, type=%u, audioset=0x%x, tuner=%u, std=0x%08Lx, status=0x%x, capabilities=0x%x\n" , p->index, (int )sizeof (p->name), p->name, p->type, p->audioset, p->tuner, (unsigned long long )p->std, p->status, p->capabilities);
@@ -197,8 +195,7 @@ static void v4l_print_enumoutput(const void *arg, bool write_only) {const struct v4l2_output *p = arg; -pr_cont ("index=%u, name=%.*s, type=%u, audioset=0x%x, " -"modulator=%u, std=0x%08Lx, capabilities=0x%x\n" , +pr_cont ("index=%u, name=%.*s, type=%u, audioset=0x%x, modulator=%u, std=0x%08Lx, capabilities=0x%x\n" , p->index, (int )sizeof (p->name), p->name, p->type, p->audioset, p->modulator, (unsigned long long )p->std, p->capabilities); }
@@ -256,11 +253,7 @@ static void v4l_print_format(const void *arg, bool write_only)case V4L2_BUF_TYPE_VIDEO_CAPTURE :case V4L2_BUF_TYPE_VIDEO_OUTPUT : pix = &p->fmt.pix; - pr_cont(", width=%u, height=%u, " - "pixelformat=%c%c%c%c, field=%s, " - "bytesperline=%u, sizeimage=%u, colorspace=%d, " - "flags=0x%x, ycbcr_enc=%u, quantization=%u, " - "xfer_func=%u\n", + pr_cont(", width=%u, height=%u, pixelformat=%c%c%c%c, field=%s, bytesperline=%u, sizeimage=%u, colorspace=%d, flags=0x%x, ycbcr_enc=%u, quantization=%u, xfer_func=%u\n", pix->width, pix->height, (pix->pixelformat & 0xff), (pix->pixelformat >> 8) & 0xff,
@@ -274,10 +267,7 @@ static void v4l_print_format(const void *arg, bool write_only)case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE :case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE : mp = &p->fmt.pix_mp; - pr_cont(", width=%u, height=%u, " - "format=%c%c%c%c, field=%s, " - "colorspace=%d, num_planes=%u, flags=0x%x, " - "ycbcr_enc=%u, quantization=%u, xfer_func=%u\n", + pr_cont(", width=%u, height=%u, format=%c%c%c%c, field=%s, colorspace=%d, num_planes=%u, flags=0x%x, ycbcr_enc=%u, quantization=%u, xfer_func=%u\n", mp->width, mp->height, (mp->pixelformat & 0xff), (mp->pixelformat >> 8) & 0xff,
@@ -306,8 +296,7 @@ static void v4l_print_format(const void *arg, bool write_only)case V4L2_BUF_TYPE_VBI_CAPTURE :case V4L2_BUF_TYPE_VBI_OUTPUT : vbi = &p->fmt.vbi; - pr_cont(", sampling_rate=%u, offset=%u, samples_per_line=%u, " - "sample_format=%c%c%c%c, start=%u,%u, count=%u,%u\n", + pr_cont(", sampling_rate=%u, offset=%u, samples_per_line=%u, sample_format=%c%c%c%c, start=%u,%u, count=%u,%u\n", vbi->sampling_rate, vbi->offset, vbi->samples_per_line, (vbi->sample_format & 0xff),
@@ -343,9 +332,7 @@ static void v4l_print_framebuffer(const void *arg, bool write_only) {const struct v4l2_framebuffer *p = arg; - pr_cont("capability=0x%x, flags=0x%x, base=0x%p, width=%u, " - "height=%u, pixelformat=%c%c%c%c, " - "bytesperline=%u, sizeimage=%u, colorspace=%d\n", + pr_cont("capability=0x%x, flags=0x%x, base=0x%p, width=%u, height=%u, pixelformat=%c%c%c%c, bytesperline=%u, sizeimage=%u, colorspace=%d\n", p->capability, p->flags, p->base, p->fmt.width, p->fmt.height, (p->fmt.pixelformat & 0xff),
@@ -368,8 +355,7 @@ static void v4l_print_modulator(const void *arg, bool write_only)if (write_only)pr_cont ("index=%u, txsubchans=0x%x\n" , p->index, p->txsubchans);else -pr_cont ("index=%u, name=%.*s, capability=0x%x, " -"rangelow=%u, rangehigh=%u, txsubchans=0x%x\n" , +pr_cont ("index=%u, name=%.*s, capability=0x%x, rangelow=%u, rangehigh=%u, txsubchans=0x%x\n" , p->index, (int )sizeof (p->name), p->name, p->capability, p->rangelow, p->rangehigh, p->txsubchans); }
@@ -381,9 +367,7 @@ static void v4l_print_tuner(const void *arg, bool write_only)if (write_only)pr_cont ("index=%u, audmode=%u\n" , p->index, p->audmode);else - pr_cont("index=%u, name=%.*s, type=%u, capability=0x%x, " - "rangelow=%u, rangehigh=%u, signal=%u, afc=%d, " - "rxsubchans=0x%x, audmode=%u\n", + pr_cont("index=%u, name=%.*s, type=%u, capability=0x%x, rangelow=%u, rangehigh=%u, signal=%u, afc=%d, rxsubchans=0x%x, audmode=%u\n", p->index, (int)sizeof(p->name), p->name, p->type, p->capability, p->rangelow, p->rangehigh, p->signal, p->afc,
@@ -402,8 +386,7 @@ static void v4l_print_standard(const void *arg, bool write_only) {const struct v4l2_standard *p = arg; - pr_cont("index=%u, id=0x%Lx, name=%.*s, fps=%u/%u, " - "framelines=%u\n", p->index, + pr_cont("index=%u, id=0x%Lx, name=%.*s, fps=%u/%u, framelines=%u\n", p->index, (unsigned long long)p->id, (int)sizeof(p->name), p->name, p->frameperiod.numerator, p->frameperiod.denominator,
@@ -419,8 +402,7 @@ static void v4l_print_hw_freq_seek(const void *arg, bool write_only) {const struct v4l2_hw_freq_seek *p = arg; -pr_cont ("tuner=%u, type=%u, seek_upward=%u, wrap_around=%u, spacing=%u, " -"rangelow=%u, rangehigh=%u\n" , +pr_cont ("tuner=%u, type=%u, seek_upward=%u, wrap_around=%u, spacing=%u, rangelow=%u, rangehigh=%u\n" , p->tuner, p->type, p->seek_upward, p->wrap_around, p->spacing, p->rangelow, p->rangehigh); }
@@ -442,8 +424,7 @@ static void v4l_print_buffer(const void *arg, bool write_only)const struct v4l2_plane *plane;int i; - pr_cont("%02ld:%02d:%02d.%08ld index=%d, type=%s, " - "flags=0x%08x, field=%s, sequence=%d, memory=%s", + pr_cont("%02ld:%02d:%02d.%08ld index=%d, type=%s, flags=0x%08x, field=%s, sequence=%d, memory=%s", p->timestamp.tv_sec / 3600, (int)(p->timestamp.tv_sec / 60) % 60, (int)(p->timestamp.tv_sec % 60),
@@ -458,8 +439,7 @@ static void v4l_print_buffer(const void *arg, bool write_only)for (i =0 ; i < p->length; ++i) { plane = &p->m.planes[i];printk (KERN_DEBUG -"plane %d: bytesused=%d, data_offset=0x%08x, " -"offset/userptr=0x%lx, length=%d\n" , +"plane %d: bytesused=%d, data_offset=0x%08x, offset/userptr=0x%lx, length=%d\n" , i, plane->bytesused, plane->data_offset, plane->m.userptr, plane->length); }
@@ -468,8 +448,7 @@ static void v4l_print_buffer(const void *arg, bool write_only) p->bytesused, p->m.userptr, p->length); } -printk (KERN_DEBUG "timecode=%02d:%02d:%02d type=%d, " -"flags=0x%08x, frames=%d, userbits=0x%08x\n" , +printk (KERN_DEBUG "timecode=%02d:%02d:%02d type=%d, flags=0x%08x, frames=%d, userbits=0x%08x\n" , tc->hours, tc->minutes, tc->seconds, tc->type, tc->flags, tc->frames, *(__u32 *)tc->userbits); }
@@ -503,8 +482,7 @@ static void v4l_print_streamparm(const void *arg, bool write_only) p->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {const struct v4l2_captureparm *c = &p->parm.capture; -pr_cont (", capability=0x%x, capturemode=0x%x, timeperframe=%d/%d, " -"extendedmode=%d, readbuffers=%d\n" , +pr_cont (", capability=0x%x, capturemode=0x%x, timeperframe=%d/%d, extendedmode=%d, readbuffers=%d\n" , c->capability, c->capturemode, c->timeperframe.numerator, c->timeperframe.denominator, c->extendedmode, c->readbuffers);
@@ -512,8 +490,7 @@ static void v4l_print_streamparm(const void *arg, bool write_only) p->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {const struct v4l2_outputparm *c = &p->parm.output; -pr_cont (", capability=0x%x, outputmode=0x%x, timeperframe=%d/%d, " -"extendedmode=%d, writebuffers=%d\n" , +pr_cont (", capability=0x%x, outputmode=0x%x, timeperframe=%d/%d, extendedmode=%d, writebuffers=%d\n" , c->capability, c->outputmode, c->timeperframe.numerator, c->timeperframe.denominator, c->extendedmode, c->writebuffers);
@@ -526,8 +503,7 @@ static void v4l_print_queryctrl(const void *arg, bool write_only) {const struct v4l2_queryctrl *p = arg; -pr_cont ("id=0x%x, type=%d, name=%.*s, min/max=%d/%d, " -"step=%d, default=%d, flags=0x%08x\n" , +pr_cont ("id=0x%x, type=%d, name=%.*s, min/max=%d/%d, step=%d, default=%d, flags=0x%08x\n" , p->id, p->type, (int )sizeof (p->name), p->name, p->minimum, p->maximum, p->step, p->default_value, p->flags);
@@ -537,9 +513,7 @@ static void v4l_print_query_ext_ctrl(const void *arg, bool write_only) {const struct v4l2_query_ext_ctrl *p = arg; - pr_cont("id=0x%x, type=%d, name=%.*s, min/max=%lld/%lld, " - "step=%lld, default=%lld, flags=0x%08x, elem_size=%u, elems=%u, " - "nr_of_dims=%u, dims=%u,%u,%u,%u\n", + pr_cont("id=0x%x, type=%d, name=%.*s, min/max=%lld/%lld, step=%lld, default=%lld, flags=0x%08x, elem_size=%u, elems=%u, nr_of_dims=%u, dims=%u,%u,%u,%u\n", p->id, p->type, (int)sizeof(p->name), p->name, p->minimum, p->maximum, p->step, p->default_value, p->flags,
@@ -583,9 +557,7 @@ static void v4l_print_cropcap(const void *arg, bool write_only) {const struct v4l2_cropcap *p = arg; - pr_cont("type=%s, bounds wxh=%dx%d, x,y=%d,%d, " - "defrect wxh=%dx%d, x,y=%d,%d, " - "pixelaspect %d/%d\n", + pr_cont("type=%s, bounds wxh=%dx%d, x,y=%d,%d, defrect wxh=%dx%d, x,y=%d,%d, pixelaspect %d/%d\n", prt_names(p->type, v4l2_type_names), p->bounds.width, p->bounds.height, p->bounds.left, p->bounds.top,
@@ -618,8 +590,7 @@ static void v4l_print_jpegcompression(const void *arg, bool write_only) {const struct v4l2_jpegcompression *p = arg; -pr_cont ("quality=%d, APPn=%d, APP_len=%d, " -"COM_len=%d, jpeg_markers=0x%x\n" , +pr_cont ("quality=%d, APPn=%d, APP_len=%d, COM_len=%d, jpeg_markers=0x%x\n" , p->quality, p->APPn, p->APP_len, p->COM_len, p->jpeg_markers); }
@@ -686,14 +657,7 @@ static void v4l_print_dv_timings(const void *arg, bool write_only)switch (p->type) {case V4L2_DV_BT_656_1120 : - pr_cont("type=bt-656/1120, interlaced=%u, " - "pixelclock=%llu, " - "width=%u, height=%u, polarities=0x%x, " - "hfrontporch=%u, hsync=%u, " - "hbackporch=%u, vfrontporch=%u, " - "vsync=%u, vbackporch=%u, " - "il_vfrontporch=%u, il_vsync=%u, " - "il_vbackporch=%u, standards=0x%x, flags=0x%x\n", + pr_cont("type=bt-656/1120, interlaced=%u, pixelclock=%llu, width=%u, height=%u, polarities=0x%x, hfrontporch=%u, hsync=%u, hbackporch=%u, vfrontporch=%u, vsync=%u, vbackporch=%u, il_vfrontporch=%u, il_vsync=%u, il_vbackporch=%u, standards=0x%x, flags=0x%x\n", p->bt.interlaced, p->bt.pixelclock, p->bt.width, p->bt.height, p->bt.polarities, p->bt.hfrontporch,
@@ -723,8 +687,7 @@ static void v4l_print_dv_timings_cap(const void *arg, bool write_only)switch (p->type) {case V4L2_DV_BT_656_1120 : - pr_cont("type=bt-656/1120, width=%u-%u, height=%u-%u, " - "pixelclock=%llu-%llu, standards=0x%x, capabilities=0x%x\n", + pr_cont("type=bt-656/1120, width=%u-%u, height=%u-%u, pixelclock=%llu-%llu, standards=0x%x, capabilities=0x%x\n", p->bt.min_width, p->bt.max_width, p->bt.min_height, p->bt.max_height, p->bt.min_pixelclock, p->bt.max_pixelclock,
@@ -805,8 +768,7 @@ static void v4l_print_event(const void *arg, bool write_only)const struct v4l2_event *p = arg;const struct v4l2_event_ctrl *c; -pr_cont ("type=0x%x, pending=%u, sequence=%u, id=%u, " -"timestamp=%lu.%9.9lu\n" , +pr_cont ("type=0x%x, pending=%u, sequence=%u, id=%u, timestamp=%lu.%9.9lu\n" , p->type, p->pending, p->sequence, p->id, p->timestamp.tv_sec, p->timestamp.tv_nsec);switch (p->type) {
@@ -822,8 +784,7 @@ static void v4l_print_event(const void *arg, bool write_only)pr_cont ("value64=%lld, " , c->value64); else pr_cont("value=%d, ", c->value); -pr_cont ("flags=0x%x, minimum=%d, maximum=%d, step=%d, " -"default_value=%d\n" , +pr_cont ("flags=0x%x, minimum=%d, maximum=%d, step=%d, default_value=%d\n" , c->flags, c->minimum, c->maximum, c->step, c->default_value);break ;
@@ -859,8 +820,7 @@ static void v4l_print_freq_band(const void *arg, bool write_only) {const struct v4l2_frequency_band *p = arg; -pr_cont ("tuner=%u, type=%u, index=%u, capability=0x%x, " -"rangelow=%u, rangehigh=%u, modulation=0x%x\n" , +pr_cont ("tuner=%u, type=%u, index=%u, capability=0x%x, rangelow=%u, rangehigh=%u, modulation=0x%x\n" , p->tuner, p->type, p->index, p->capability, p->rangelow, p->rangehigh, p->modulation);
drivers/media/v4l2-core/videobuf-core.c +1 -2
@@ -572,8 +572,7 @@ int videobuf_qbuf(struct videobuf_queue *q, struct v4l2_buffer *b)switch (b->memory) {case V4L2_MEMORY_MMAP :if (0 == buf->baddr) { -dprintk (1 ,"qbuf: mmap requested " -"but buffer addr is zero!\n" ); +dprintk (1 ,"qbuf: mmap requested but buffer addr is zero!\n" ); goto done; } if (q->type == V4L2_BUF_TYPE_VIDEO_OUTPUT
drivers/media/v4l2-core/videobuf2-core.c +7 -14
@@ -358,8 +358,7 @@ static int __vb2_queue_alloc(struct vb2_queue *q, enum vb2_memory memory,if (memory ==VB2_MEMORY_MMAP ) { ret =__vb2_buf_mem_alloc (vb);if (ret) { -dprintk (1 ,"failed allocating memory for " -"buffer %d\n" , buffer); +dprintk (1 ,"failed allocating memory for buffer %d\n" , buffer); q->bufs[vb->index] =NULL ;kfree (vb);break ;
@@ -372,8 +371,7 @@ static int __vb2_queue_alloc(struct vb2_queue *q, enum vb2_memory memory,*/ ret =call_vb_qop (vb, buf_init, vb);if (ret) { -dprintk (1 ,"buffer %d %p initialization" -" failed\n" , buffer, vb); +dprintk (1 ,"buffer %d %p initialization failed\n" , buffer, vb);__vb2_buf_mem_free (vb); q->bufs[vb->index] =NULL ;kfree (vb);
@@ -997,13 +995,11 @@ static int __qbuf_userptr(struct vb2_buffer *vb, const void *pb) && vb->planes[plane].length == planes[plane].length)continue ; -dprintk (3 ,"userspace address for plane %d changed, " -"reacquiring memory\n" , plane); +dprintk (3 ,"userspace address for plane %d changed, reacquiring memory\n" , plane);/* Check if the provided plane buffer is large enough */ if (planes[plane].length < vb->planes[plane].min_length) { -dprintk (1 ,"provided buffer size %u is less than " -"setup size %u for plane %d\n" , +dprintk (1 ,"provided buffer size %u is less than setup size %u for plane %d\n" , planes[plane].length, vb->planes[plane].min_length, plane);
@@ -1032,8 +1028,7 @@ static int __qbuf_userptr(struct vb2_buffer *vb, const void *pb) planes[plane].m.userptr, planes[plane].length, dma_dir);if (IS_ERR (mem_priv)) { -dprintk (1 ,"failed acquiring userspace " -"memory for plane %d\n" , plane); +dprintk (1 ,"failed acquiring userspace memory for plane %d\n" , plane); ret =PTR_ERR (mem_priv); goto err; }
@@ -1123,8 +1118,7 @@ static int __qbuf_dmabuf(struct vb2_buffer *vb, const void *pb) planes[plane].length = dbuf->size;if (planes[plane].length < vb->planes[plane].min_length) { -dprintk (1 ,"invalid dmabuf length %u for plane %d, " -"minimum length %u\n" , +dprintk (1 ,"invalid dmabuf length %u for plane %d, minimum length %u\n" , planes[plane].length, plane, vb->planes[plane].min_length);dma_buf_put (dbuf);
@@ -1472,8 +1466,7 @@ static int __vb2_wait_for_done_vb(struct vb2_queue *q, int nonblocking) }if (nonblocking) { -dprintk (1 ,"nonblocking and no buffers to dequeue, " -"will not wait\n" ); +dprintk (1 ,"nonblocking and no buffers to dequeue, will not wait\n" );return -EAGAIN ; }
drivers/media/v4l2-core/videobuf2-v4l2.c +3 -6
@@ -60,14 +60,12 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer/* Is memory for copying plane information present? */ if (b->m.planes ==NULL ) { -dprintk (1 ,"multi-planar buffer passed but " -"planes array not provided\n" ); +dprintk (1 ,"multi-planar buffer passed but planes array not provided\n" );return -EINVAL ; }if (b->length < vb->num_planes || b->length >VB2_MAX_PLANES ) { -dprintk (1 ,"incorrect planes array length, " -"expected %d, got %d\n" , vb->num_planes, b->length); +dprintk (1 ,"incorrect planes array length, expected %d, got %d\n" , vb->num_planes, b->length);return -EINVAL ; }
@@ -316,8 +314,7 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,* that just says that it is either a top or a bottom field, * but not which of the two it is. */ -dprintk (1 ,"the field is incorrectly set to ALTERNATE " -"for an output buffer\n" ); +dprintk (1 ,"the field is incorrectly set to ALTERNATE for an output buffer\n" );return -EINVAL ; } vb->timestamp =0 ;
drivers/media/v4l2-core/videobuf2-vmalloc.c +1 -2
@@ -151,8 +151,7 @@ static void *vb2_vmalloc_vaddr(void *buf_priv)struct vb2_vmalloc_buf *buf = buf_priv;if (!buf->vaddr) { -pr_err ("Address of an unallocated plane requested " -"or cannot map user pointer\n" ); +pr_err ("Address of an unallocated plane requested or cannot map user pointer\n" );return NULL ; }
Signature · 1 line
2.7.4
PATCH 52/57 common: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/common/tveeprom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/common/tveeprom.c +1 -2
@@ -510,8 +510,7 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, len = eeprom_data[i] &0x07 ; ++i; }else { -tveeprom_warn ("Encountered bad packet header [%02x]. " -"Corrupt or not a Hauppauge eeprom.\n" , +tveeprom_warn ("Encountered bad packet header [%02x]. Corrupt or not a Hauppauge eeprom.\n" , eeprom_data[i]);return ; }
Signature · 1 line
2.7.4
PATCH 53/57 i2c: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/i2c/as3645a.c | 9 +++------ drivers/media/i2c/msp3400-kthreads.c | 3 +-- drivers/media/i2c/mt9m032.c | 3 +-- drivers/media/i2c/mt9p031.c | 3 +-- drivers/media/i2c/saa7115.c | 3 +-- drivers/media/i2c/saa717x.c | 3 +-- drivers/media/i2c/ths8200.c | 4 +--- drivers/media/i2c/tvp5150.c | 3 +-- drivers/media/i2c/tvp7002.c | 3 +-- drivers/media/i2c/upd64083.c | 3 +-- 10 files changed, 12 insertions(+), 25 deletions(-)
drivers/media/i2c/as3645a.c +3 -6
@@ -299,8 +299,7 @@ static int as3645a_read_fault(struct as3645a *flash)dev_dbg (&client->dev,"Inductor Peak limit fault\n" );if (rval &AS_FAULT_INFO_INDICATOR_LED ) -dev_dbg (&client->dev,"Indicator LED fault: " -"Short circuit or open loop\n" ); +dev_dbg (&client->dev,"Indicator LED fault: Short circuit or open loop\n" );dev_dbg (&client->dev,"%u connected LEDs\n" , rval &AS_FAULT_INFO_LED_AMOUNT ?2 :1 );
@@ -315,8 +314,7 @@ static int as3645a_read_fault(struct as3645a *flash)dev_dbg (&client->dev,"Short circuit fault\n" );if (rval &AS_FAULT_INFO_OVER_VOLTAGE ) -dev_dbg (&client->dev,"Over voltage fault: " -"Indicates missing capacitor or open connection\n" ); +dev_dbg (&client->dev,"Over voltage fault: Indicates missing capacitor or open connection\n" );return rval; }
@@ -588,8 +586,7 @@ static int as3645a_registered(struct v4l2_subdev *sd)/* Verify the chip model and version. */ if (model !=0x01 || rfu !=0x00 ) { -dev_err (&client->dev,"AS3645A not detected " -"(model %d rfu %d)\n" , model, rfu); +dev_err (&client->dev,"AS3645A not detected (model %d rfu %d)\n" , model, rfu); rval = -ENODEV ; goto power_off; }
drivers/media/i2c/msp3400-kthreads.c +1 -2
@@ -775,8 +775,7 @@ int msp3410d_thread(void *data)if (msp_amsound && !state->radio && (state->v4l2_std &V4L2_STD_SECAM ) && (val !=0x0009 )) {/* autodetection has failed, let backup */ -v4l_dbg (1 , msp_debug, client,"autodetection failed," -" switching to backup standard: %s (0x%04x)\n" , +v4l_dbg (1 , msp_debug, client,"autodetection failed, switching to backup standard: %s (0x%04x)\n" , msp_stdlist[8 ].name ? msp_stdlist[8 ].name :"unknown" , val); state->std = val =0x0009 ;
drivers/media/i2c/mt9m032.c +1 -2
@@ -746,8 +746,7 @@ static int mt9m032_probe(struct i2c_client *client, chip_version =mt9m032_read (client,MT9M032_CHIP_VERSION );if (chip_version !=MT9M032_CHIP_VERSION_VALUE ) { -dev_err (&client->dev,"MT9M032 not detected, wrong version " -"0x%04x\n" , chip_version); +dev_err (&client->dev,"MT9M032 not detected, wrong version 0x%04x\n" , chip_version); ret = -ENODEV ; goto error_sensor; }
drivers/media/i2c/mt9p031.c +1 -2
@@ -929,8 +929,7 @@ static int mt9p031_registered(struct v4l2_subdev *subdev)mt9p031_power_off (mt9p031);if (data !=MT9P031_CHIP_VERSION_VALUE ) { -dev_err (&client->dev,"MT9P031 not detected, wrong version " -"0x%04x\n" , data); +dev_err (&client->dev,"MT9P031 not detected, wrong version 0x%04x\n" , data);return -ENODEV ; }
drivers/media/i2c/saa7115.c +1 -2
@@ -53,8 +53,7 @@#define VRES_60HZ (480+16)MODULE_DESCRIPTION ("Philips SAA7111/SAA7113/SAA7114/SAA7115/SAA7118 video decoder driver" ); -MODULE_AUTHOR ("Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, " -"Hans Verkuil, Mauro Carvalho Chehab" ); +MODULE_AUTHOR ("Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, Hans Verkuil, Mauro Carvalho Chehab" );MODULE_LICENSE ("GPL" );static bool debug;
drivers/media/i2c/saa717x.c +1 -2
@@ -735,8 +735,7 @@ static void get_inf_dev_status(struct v4l2_subdev *sd, reg_data3, stdres[reg_data3 &0x1f ], (reg_data3 &0x000020 ) ?",stereo" :"" , (reg_data3 & 0x000040) ? ",dual" : ""); - v4l2_dbg(1, debug, sd, "detailed status: " - "%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s\n", + v4l2_dbg(1, debug, sd, "detailed status: %s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s\n", (reg_data3 & 0x000080) ? " A2/EIAJ pilot tone " : "", (reg_data3 & 0x000100) ? " A2/EIAJ dual " : "", (reg_data3 & 0x000200) ? " A2/EIAJ stereo " : "",
drivers/media/i2c/ths8200.c +1 -3
@@ -351,9 +351,7 @@ static void ths8200_setup(struct v4l2_subdev *sd, struct v4l2_bt_timings *bt)/* leave reset */ ths8200_s_stream (sd, true); -v4l2_dbg (1 , debug, sd,"%s: frame %dx%d, polarity %d\n" -"horizontal: front porch %d, back porch %d, sync %d\n" -"vertical: sync %d\n" , __func__,htotal (bt),vtotal (bt), +v4l2_dbg (1 , debug, sd,"%s: frame %dx%d, polarity %d\nhorizontal: front porch %d, back porch %d, sync %d\nvertical: sync %d\n" , __func__,htotal (bt),vtotal (bt), polarity, bt->hfrontporch, bt->hbackporch, bt->hsync, bt->vsync); }
drivers/media/i2c/tvp5150.c +1 -2
@@ -280,8 +280,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd)break ; } -v4l2_dbg (1 , debug, sd,"Selecting video route: route input=%i, output=%i " -"=> tvp5150 input=%i, opmode=%i\n" , +v4l2_dbg (1 , debug, sd,"Selecting video route: route input=%i, output=%i => tvp5150 input=%i, opmode=%i\n" , decoder->input, decoder->output, input, opmode);
drivers/media/i2c/tvp7002.c +1 -2
@@ -1057,8 +1057,7 @@ static int tvp7002_remove(struct i2c_client *c)struct v4l2_subdev *sd =i2c_get_clientdata (c);struct tvp7002 *device =to_tvp7002 (sd); -v4l2_dbg (1 , debug, sd,"Removing tvp7002 adapter" -"on address 0x%x\n" , c->addr); +v4l2_dbg (1 , debug, sd,"Removing tvp7002 adapteron address 0x%x\n" , c->addr);v4l2_async_unregister_subdev (&device->sd);#if defined(CONFIG_MEDIA_CONTROLLER )media_entity_cleanup (&device->sd.entity);
drivers/media/i2c/upd64083.c +1 -2
@@ -139,8 +139,7 @@ static int upd64083_log_status(struct v4l2_subdev *sd)u8 buf[7 ];i2c_master_recv (client, buf,7 ); -v4l2_info (sd,"Status: SA00=%02x SA01=%02x SA02=%02x SA03=%02x " -"SA04=%02x SA05=%02x SA06=%02x\n" , +v4l2_info (sd,"Status: SA00=%02x SA01=%02x SA02=%02x SA03=%02x SA04=%02x SA05=%02x SA06=%02x\n" , buf[0 ], buf[1 ], buf[2 ], buf[3 ], buf[4 ], buf[5 ], buf[6 ]);return 0 ; }
Signature · 1 line
2.7.4
Laurent Pinchart
maintainerRe: [PATCH 53/57] [media] i2c: don't break long lines
Hi Mauro,
Thank you for the patch.
Quoted 25 lines · On Friday 14 Oct 2016 17:20:41 Mauro Carvalho Chehab wrote:
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/i2c/as3645a.c | 9 +++------ drivers/media/i2c/msp3400-kthreads.c | 3 +-- drivers/media/i2c/mt9m032.c | 3 +-- drivers/media/i2c/mt9p031.c | 3 +-- drivers/media/i2c/saa7115.c | 3 +-- drivers/media/i2c/saa717x.c | 3 +-- drivers/media/i2c/ths8200.c | 4 +--- drivers/media/i2c/tvp5150.c | 3 +-- drivers/media/i2c/tvp7002.c | 3 +-- drivers/media/i2c/upd64083.c | 3 +-- 10 files changed, 12 insertions(+), 25 deletions(-)drivers/media/i2c/as3645a.c +0
-0
drivers/media/i2c/as3645a.c static int as3645a_read_fault(struct as3645a *flash) · line 302
Quoted 6 lines
drivers/media/i2c/as3645a.c +1
-2@@ -299,8 +299,7 @@ static int as3645a_read_fault(struct as3645a *flash)dev_dbg (&client->dev,"Inductor Peak limit fault\n" );if (rval &AS_FAULT_INFO_INDICATOR_LED ) -dev_dbg (&client->dev,"Indicator LED fault: " -"Short circuit or open loop\n" ); + dev_dbg(&client->dev, "Indicator LED fault: Short circuit or
open
drivers/media/i2c/as3645a.c static int as3645a_read_fault(struct as3645a *flash) · line 317
Quoted 11 lines
drivers/media/i2c/as3645a.c +0
-0loop\n"); dev_dbg(&client->dev, "%u connected LEDs\n",drivers/media/i2c/as3645a.c +1
-2rval & AS_FAULT_INFO_LED_AMOUNT ? 2 : 1);@@ -315,8 +314,7 @@ static int as3645a_read_fault(struct as3645a *flash)dev_dbg (&client->dev,"Short circuit fault\n" );if (rval &AS_FAULT_INFO_OVER_VOLTAGE ) -dev_dbg (&client->dev,"Over voltage fault: " -"Indicates missing capacitor or open connection\n" ); + dev_dbg(&client->dev, "Over voltage fault: Indicates missing
capacitor or
drivers/media/i2c/as3645a.c static int as3645a_registered(struct v4l2_subdev *sd) · line 589
Quoted 11 lines
drivers/media/i2c/as3645a.c +0
-0open connection\n");return rval;}
drivers/media/i2c/as3645a.c +1
-2@@ -588,8 +586,7 @@ static int as3645a_registered(struct v4l2_subdev *sd)/* Verify the chip model and version. */ if (model !=0x01 || rfu !=0x00 ) { -dev_err (&client->dev,"AS3645A not detected " -"(model %d rfu %d)\n" , model, rfu); + dev_err(&client->dev, "AS3645A not detected (model %d rfu
%d)\n", model,
Quoted 9 lines
drivers/media/i2c/as3645a.c +0
-0rfu); rval = -ENODEV; goto power_off; }(quoted diff) +0
-0
b/drivers/media/i2c/msp3400-kthreads.cindex17120804fab7..022bea68cbf0100644
drivers/media/i2c/msp3400-kthreads.c int msp3410d_thread(void *data) · line 779
Quoted 5 lines
drivers/media/i2c/msp3400-kthreads.c +0
-2@@ -775,8 +775,7 @@ int msp3410d_thread(void *data)if (msp_amsound && !state->radio && (state->v4l2_std &V4L2_STD_SECAM ) && (val !=0x0009 )) {/* autodetection has failed, let backup */ - v4l_dbg(1, msp_debug, client, "autodetection failed," - " switching to backup standard: %s
(0x%04x)\n",
drivers/media/i2c/msp3400-kthreads.c int msp3410d_thread(void *data) · line 778
Quoted 1 line
drivers/media/i2c/msp3400-kthreads.c +1
-0+ v4l_dbg(1, msp_debug, client, "autodetection failed,
switching to backup
Quoted 8 lines
standard: %s (0x%04x)\n", msp_stdlist[8].name ?
drivers/media/i2c/msp3400-kthreads.c +0
-0msp_stdlist[8].name : "unknown", val); state->std = val =0x0009 ;drivers/media/i2c/mt9m032.c +0
-0
drivers/media/i2c/mt9m032.c static int mt9m032_probe(struct i2c_client *client, · line 749
Quoted 6 lines
drivers/media/i2c/mt9m032.c +1
-2@@ -746,8 +746,7 @@ static int mt9m032_probe(struct i2c_client *client, chip_version =mt9m032_read (client,MT9M032_CHIP_VERSION );if (chip_version !=MT9M032_CHIP_VERSION_VALUE ) { -dev_err (&client->dev,"MT9M032 not detected, wrong version " -"0x%04x\n" , chip_version); + dev_err(&client->dev, "MT9M032 not detected, wrong version
0x%04x\n",
Quoted 8 lines
drivers/media/i2c/mt9m032.c +0
-0chip_version); ret = -ENODEV; goto error_sensor; }drivers/media/i2c/mt9p031.c +0
-0
drivers/media/i2c/mt9p031.c static int mt9p031_registered(struct v4l2_subdev · line 932
Quoted 6 lines
drivers/media/i2c/mt9p031.c +1
-2@@ -929,8 +929,7 @@ static int mt9p031_registered(struct v4l2_subdev *subdev) mt9p031_power_off(mt9p031);if (data !=MT9P031_CHIP_VERSION_VALUE ) { -dev_err (&client->dev,"MT9P031 not detected, wrong version " -"0x%04x\n" , data); + dev_err(&client->dev, "MT9P031 not detected, wrong version
0x%04x\n",
Quoted 38 lines
drivers/media/i2c/mt9p031.c +0
-0data); return -ENODEV; }drivers/media/i2c/saa7115.c +0
-0@@ -53,8 +53,7 @@#define VRES_60HZ (480+16) MODULE_DESCRIPTION("Philips SAA7111/SAA7113/SAA7114/SAA7115/SAA7118 videodecoder driver"); -MODULE_AUTHOR( "Maxim Yevtyushkin, Kevin Thayer, Chris
Kennedy, " - "Hans Verkuil, Mauro Carvalho Chehab");
+MODULE_AUTHOR( "Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, Hans Verkuil, Mauro Carvalho Chehab");MODULE_LICENSE("GPL");static bool debug;
drivers/media/i2c/saa717x.c +1
-2@@ -735,8 +735,7 @@ static void get_inf_dev_status(struct v4l2_subdev *sd, reg_data3, stdres[reg_data3 &0x1f ], (reg_data3 &0x000020 ) ?",stereo" :"" , (reg_data3 & 0x000040) ? ",dual" : ""); - v4l2_dbg(1, debug, sd, "detailed status: " - "%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s\n", + v4l2_dbg(1, debug, sd, "detailed status:%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s#%s\n", (
reg_data3&0x000080) ? "
A2/EIAJ pilot tone " : "",drivers/media/i2c/saa717x.c +0
-0(reg_data3 &0x000100 ) ?" A2/EIAJ dual " :"" , (reg_data3 & 0x000200) ? " A2/EIAJ stereo " : "",drivers/media/i2c/ths8200.c +0
-0@@ -351,9 +351,7 @@ static void ths8200_setup(struct v4l2_subdev *sd, struct
v4l2_bt_timings*bt) /* leave reset */
drivers/media/i2c/ths8200.c static void ths8200_setup(struct v4l2_subdev *sd, struct v4l2_bt_timings *bt)
Quoted 6 lines
drivers/media/i2c/ths8200.c +1
-3ths8200_s_stream (sd, true); - v4l2_dbg(1, debug, sd, "%s: frame %dx%d, polarity %d\n" - "horizontal: front porch %d, back porch %d, sync %d\n" - "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), + v4l2_dbg(1, debug, sd, "%s: frame %dx%d, polarity %d\nhorizontal:
front
drivers/media/i2c/tvp5150.c static inline void tvp5150_selmux(struct v4l2_subdev · line 283
Quoted 13 lines
porch %d, back porch %d, sync %d\nvertical: sync %d\n",
__func__, htotal(bt), vtotal(bt), polarity,bt->hfrontporch,bt->hbackporch,drivers/media/i2c/ths8200.c +0
-0bt->hsync, bt->vsync); }drivers/media/i2c/tvp5150.c +0
-1@@ -280,8 +280,7 @@ static inline void tvp5150_selmux(struct v4l2_subdev *sd) break; } - v4l2_dbg(1, debug, sd, "Selecting video route: route input=%i,
output=%i "
drivers/media/i2c/tvp5150.c static inline void tvp5150_selmux(struct v4l2_subdev · line 283
Quoted 2 lines
drivers/media/i2c/tvp5150.c +1
-1- "=> tvp5150 input=%i, opmode=%i\n", + v4l2_dbg(1, debug, sd, "Selecting video route: route input=%i,
output=%i
Quoted 8 lines
drivers/media/i2c/tvp5150.c +0
-0=> tvp5150 input=%i, opmode=%i\n", decoder->input, decoder->output, input, opmode);drivers/media/i2c/tvp7002.c +0
-0
drivers/media/i2c/tvp7002.c static int tvp7002_remove(struct i2c_client *c) · line 1061
Quoted 7 lines
drivers/media/i2c/tvp7002.c +1
-2@@ -1057,8 +1057,7 @@ static int tvp7002_remove(struct i2c_client *c)struct v4l2_subdev *sd =i2c_get_clientdata (c);struct tvp7002 *device =to_tvp7002 (sd); -v4l2_dbg (1 , debug, sd,"Removing tvp7002 adapter" -"on address 0x%x\n" , c->addr); +v4l2_dbg (1 , debug, sd,"Removing tvp7002 adapteron address 0x%x\n" , c->addr);
You could fix errors in commit messages while at it, there's clearly a space missing between "adapter" and "on".
Quoted 8 lines
drivers/media/i2c/tvp7002.c +0
-0v4l2_async_unregister_subdev (&device->sd);#if defined(CONFIG_MEDIA_CONTROLLER )drivers/media/i2c/tvp7002.c +0
-0media_entity_cleanup (&device->sd.entity);drivers/media/i2c/upd64083.c +0
-0
drivers/media/i2c/upd64083.c static int upd64083_log_status(struct v4l2_subdev *sd) · line 142
Quoted 6 lines
drivers/media/i2c/upd64083.c +1
-2@@ -139,8 +139,7 @@ static int upd64083_log_status(struct v4l2_subdev *sd)u8 buf[7 ];i2c_master_recv (client, buf,7 ); - v4l2_info(sd, "Status: SA00=%02x SA01=%02x SA02=%02x SA03=%02x " - "SA04=%02x SA05=%02x SA06=%02x\n", + v4l2_info(sd, "Status: SA00=%02x SA01=%02x SA02=%02x SA03=%02x
SA04=%02x
drivers/media/i2c/upd64083.c static int upd64083_log_status(struct v4l2_subdev *sd) · line 144
Quoted 2 lines
drivers/media/i2c/upd64083.c +0
-0SA05=%02x SA06=%02x\n", buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]);
I have some doubts regarding whether it makes sense to apply the rule explained in the commit message blindly. In this specific case for instance I very much doubt anyone will grep the source code for "SA03=%02x SA04=%02x". I'm sure this isn't the only case in this patch series where splitting messages in multiple lines isn't a problem.
Quoted 2 lines
drivers/media/i2c/upd64083.c +0
-0return 0 ;}
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 54/57 platform: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/platform/mx2_emmaprp.c | 3 +-- drivers/media/platform/pxa_camera.c | 6 ++---- drivers/media/platform/via-camera.c | 7 ++----- 3 files changed, 5 insertions(+), 11 deletions(-)
drivers/media/platform/mx2_emmaprp.c +1 -2
@@ -724,8 +724,7 @@ static int emmaprp_buf_prepare(struct vb2_buffer *vb) q_data =get_q_data (ctx, vb->vb2_queue->type);if (vb2_plane_size (vb,0 ) < q_data->sizeimage) { -dprintk (ctx->dev,"%s data will not fit into plane" -"(%lu < %lu)\n" , __func__, +dprintk (ctx->dev,"%s data will not fit into plane(%lu < %lu)\n" , __func__,vb2_plane_size (vb,0 ), (long )q_data->sizeimage);return -EINVAL ;
drivers/media/platform/pxa_camera.c +2 -4
@@ -2347,8 +2347,7 @@ static int pxa_camera_probe(struct platform_device *pdev)* Platform hasn't set available data widths. This is bad. * Warn and use a default. */ -dev_warn (&pdev->dev,"WARNING! Platform hasn't set available " -"data widths, using default 10 bit\n" ); +dev_warn (&pdev->dev,"WARNING! Platform hasn't set available data widths, using default 10 bit\n" ); pcdev->platform_flags |=PXA_CAMERA_DATAWIDTH_10 ; }if (pcdev->platform_flags &PXA_CAMERA_DATAWIDTH_8 )
@@ -2359,8 +2358,7 @@ static int pxa_camera_probe(struct platform_device *pdev) pcdev->width_flags |=1 <<9 ;if (!pcdev->mclk) {dev_warn (&pdev->dev, -"mclk == 0! Please, fix your platform data. " -"Using default 20MHz\n" ); +"mclk == 0! Please, fix your platform data. Using default 20MHz\n" ); pcdev->mclk =20000000 ; }
drivers/media/platform/via-camera.c +2 -5
@@ -39,15 +39,12 @@ MODULE_LICENSE("GPL");static bool flip_image;module_param (flip_image, bool,0444 );MODULE_PARM_DESC (flip_image, -"If set, the sensor will be instructed to flip the image " -"vertically." ); +"If set, the sensor will be instructed to flip the image vertically." );static bool override_serial;module_param (override_serial, bool,0444 );MODULE_PARM_DESC (override_serial, -"The camera driver will normally refuse to load if " -"the XO 1.5 serial port is enabled. Set this option " -"to force-enable the camera." ); +"The camera driver will normally refuse to load if the XO 1.5 serial port is enabled. Set this option to force-enable the camera." );/* * The structure describing our camera.
Signature · 1 line
2.7.4
Re: [PATCH 54/57] [media] platform: don't break long lines
Quoted 6 lines · Mauro Carvalho Chehab
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Quoted 6 lines
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/mx2_emmaprp.c | 3 +-- drivers/media/platform/pxa_camera.c | 6 ++---- drivers/media/platform/via-camera.c | 7 ++----- 3 files changed, 5 insertions(+), 11 deletions(-)
For pxa_camera, FWIW:
Cheers.
--
Robert
Laurent Pinchart
maintainerRe: [PATCH 54/57] [media] platform: don't break long lines
In reply to Mauro Carvalho ChehabHi Mauro,
Thank you for the patch.
Quoted 19 lines · On Friday 14 Oct 2016 17:20:42 Mauro Carvalho Chehab wrote:
Due to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- drivers/media/platform/mx2_emmaprp.c | 3 +-- drivers/media/platform/pxa_camera.c | 6 ++---- drivers/media/platform/via-camera.c | 7 ++----- 3 files changed, 5 insertions(+), 11 deletions(-)(quoted diff) +0
-0
b/drivers/media/platform/mx2_emmaprp.cindexe68d271b10af..ea572718a638100644
drivers/media/platform/mx2_emmaprp.c static int emmaprp_buf_prepare(struct vb2_buffer *vb) · line 727
Quoted 6 lines
drivers/media/platform/mx2_emmaprp.c +1
-2@@ -724,8 +724,7 @@ static int emmaprp_buf_prepare(struct vb2_buffer *vb) q_data =get_q_data (ctx, vb->vb2_queue->type);if (vb2_plane_size (vb,0 ) < q_data->sizeimage) { - dprintk(ctx->dev, "%s data will not fit into plane" - "(%lu < %lu)\n", __func__, + dprintk(ctx->dev, "%s data will not fit into plane(%lu <
%lu)\n",
drivers/media/platform/mx2_emmaprp.c static int emmaprp_buf_prepare(struct vb2_buffer *vb) · line 729
Quoted 2 lines
drivers/media/platform/mx2_emmaprp.c +0
-0__func__,vb2_plane_size (vb,0 ), (long)q_data->sizeimage);
If you really want to perform such a change, let's not make lines unnecessarily long either. You should add a line break after the first and second argument:
dprintk(ctx->dev, "%s data will not fit into plane(%lu < %lu)\n", __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage);
And everything will fit in 80 columns.
drivers/media/platform/pxa_camera.c static int pxa_camera_probe(struct platform_device · line 2350
Quoted 13 lines
drivers/media/platform/mx2_emmaprp.c +0
-0return -EINVAL ;(quoted diff) +0
-0
b/drivers/media/platform/pxa_camera.cindexc12209c701d3..bcdac4932fb1100644drivers/media/platform/pxa_camera.c +1
-2@@ -2347,8 +2347,7 @@ static int pxa_camera_probe(struct platform_device*pdev) * Platform hasn't set available data widths. This is bad. * Warn and use a default. */ -dev_warn (&pdev->dev,"WARNING! Platform hasn't set available " -"data widths, using default 10 bit\n" ); + dev_warn(&pdev->dev, "WARNING! Platform hasn't set available
data widths,
drivers/media/platform/pxa_camera.c static int pxa_camera_probe(struct platform_device · line 2351
Quoted 1 line
drivers/media/platform/pxa_camera.c +0
-0using default 10 bit\n");
Same comment here, you should add a line break after the first argument.
I assume the same comment applied to the 56 other patches in the series.
drivers/media/platform/pxa_camera.c static int pxa_camera_probe(struct platform_device · line 2361
Quoted 10 lines
drivers/media/platform/pxa_camera.c +0
-0pcdev->platform_flags |=PXA_CAMERA_DATAWIDTH_10 ; }drivers/media/platform/pxa_camera.c +1
-2if (pcdev->platform_flags &PXA_CAMERA_DATAWIDTH_8 )@@ -2359,8 +2358,7 @@ static int pxa_camera_probe(struct platform_device *pdev) pcdev->width_flags |= 1 << 9;if (!pcdev->mclk) { dev_warn(&pdev->dev, -"mclk == 0! Please, fix your platform data. " -"Using default 20MHz\n" ); + "mclk == 0! Please, fix your platform data. Using
default 20MHz\n");
Quoted 9 lines
drivers/media/platform/pxa_camera.c +0
-0pcdev->mclk =20000000 ; }(quoted diff) +0
-0
b/drivers/media/platform/via-camera.cindex7ca12deba89c..e16f70a5df1d100644
drivers/media/platform/via-camera.c MODULE_LICENSE("GPL"); · line 42
Quoted 6 lines
drivers/media/platform/via-camera.c +1
-2@@ -39,15 +39,12 @@ MODULE_LICENSE("GPL");static bool flip_image;module_param (flip_image, bool,0444 ); MODULE_PARM_DESC(flip_image, -"If set, the sensor will be instructed to flip the image " -"vertically." ); + "If set, the sensor will be instructed to flip the image
vertically.");
drivers/media/platform/via-camera.c MODULE_LICENSE("GPL");
Quoted 8 lines
drivers/media/platform/via-camera.c +1
-3static bool override_serial;module_param (override_serial, bool,0444 ); MODULE_PARM_DESC(override_serial, -"The camera driver will normally refuse to load if " -"the XO 1.5 serial port is enabled. Set this option " -"to force-enable the camera." ); + "The camera driver will normally refuse to load if the XO 1.5
serial port
Quoted 4 lines
drivers/media/platform/via-camera.c +0
-0is enabled. Set this option to force-enable the camera.");/* * The structure describing our camera.
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 54/57] [media] platform: don't break long lines
Quoted 10 lines · Laurent Pinchart
If you really want to perform such a change, let's not make lines unnecessarily long either. You should add a line break after the first and second argument:
dprintk(ctx->dev, "%s data will not fit into plane(%lu < %lu)\n", __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage);And everything will fit in 80 columns.
Same happens in other places, e.g. the hunk for cx8802_unregister_driver() in another patch in this series, and not just one time (looked just patches where I was a direct recipient). There is a printing function call with previously split string literal, followed by several arguments. This unnecessarily long function call is now a single line.
Maybe the remaining manual work may be outsourced to seekers of janitor tasks?
Laurent Pinchart
maintainerRe: [PATCH 54/57] [media] platform: don't break long lines
Hi Andrey,
Quoted 13 lines · On Monday 17 Oct 2016 20:39:45 Andrey Utkin wrote:
Quoted 11 lines · Laurent Pinchart
If you really want to perform such a change, let's not make lines unnecessarily long either. You should add a line break after the first and
second argument:
dprintk(ctx->dev, "%s data will not fit into plane(%lu < %lu)\n", __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage);And everything will fit in 80 columns.
Quoted 8 lines
Same happens in other places, e.g. the hunk for
cx8802_unregister_driver()in another patch in this series, and not just one time (looked just patches where I was a direct recipient). There is a printing function call with previously split string literal, followed by several arguments. This unnecessarily long function call is now a single line.
Maybe the remaining manual work may be outsourced to seekers of janitor tasks?
I'm fine with that, but we should rework the original patches, not merge fixes on top of them.
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 54/57] [media] platform: don't break long lines
Quoted 8 lines · Laurent Pinchart
Hi Andrey,
Quoted 2 lines · On Monday 17 Oct 2016 20:39:45 Andrey Utkin wrote:
Maybe the remaining manual work may be outsourced to seekers of janitor tasks?
I'm fine with that, but we should rework the original patches, not merge fixes on top of them.
I haven't meant that :) What I had in mind was a singular patchset with combination of automated and manual work, just as you say, I just didn't state it clearly.
PATCH 55/57 radio: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/radio/radio-gemtek.c | 8 ++------ drivers/media/radio/radio-wl1273.c | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-)
drivers/media/radio/radio-gemtek.c +2 -6
@@ -67,14 +67,10 @@ module_param(probe, bool, 0444);MODULE_PARM_DESC (probe,"Enable automatic device probing." );module_param (hardmute, bool,0644 ); -MODULE_PARM_DESC (hardmute,"Enable 'hard muting' by shutting down PLL, may " -"reduce static noise." ); +MODULE_PARM_DESC (hardmute,"Enable 'hard muting' by shutting down PLL, may reduce static noise." );module_param_array (io, int,NULL ,0444 ); -MODULE_PARM_DESC (io,"Force I/O ports for the GemTek Radio card if automatic " -"probing is disabled or fails. The most common I/O ports are: 0x20c " -"0x30c, 0x24c or 0x34c (0x20c, 0x248 and 0x28c have been reported to " -"work for the combined sound/radiocard)." ); +MODULE_PARM_DESC (io,"Force I/O ports for the GemTek Radio card if automatic probing is disabled or fails. The most common I/O ports are: 0x20c 0x30c, 0x24c or 0x34c (0x20c, 0x248 and 0x28c have been reported to work for the combined sound/radiocard)." );module_param_array (radio_nr, int,NULL ,0444 );MODULE_PARM_DESC (radio_nr,"Radio device numbers" );
drivers/media/radio/radio-wl1273.c +1 -2
@@ -2068,8 +2068,7 @@ static int wl1273_fm_radio_probe(struct platform_device *pdev) goto err_request_irq; } }else { -dev_err (radio->dev,WL1273_FM_DRIVER_NAME ": Core WL1273 IRQ" -" not configured" ); +dev_err (radio->dev,WL1273_FM_DRIVER_NAME ": Core WL1273 IRQ not configured" ); r = -EINVAL ; goto pdata_err; }
Signature · 1 line
2.7.4
PATCH 56/57 rc: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/rc/ati_remote.c | 3 +-- drivers/media/rc/ene_ir.c | 3 +-- drivers/media/rc/imon.c | 43 ++++++++++++++---------------------------- drivers/media/rc/ite-cir.c | 9 +++------ drivers/media/rc/mceusb.c | 4 +--- drivers/media/rc/rc-main.c | 3 +-- drivers/media/rc/redrat3.c | 18 ++++++------------ drivers/media/rc/streamzap.c | 9 +++------ drivers/media/rc/winbond-cir.c | 9 +++------ 9 files changed, 33 insertions(+), 68 deletions(-)
drivers/media/rc/ati_remote.c +1 -2
@@ -527,8 +527,7 @@ static void ati_remote_input_report(struct urb *urb) remote_num = (data[3 ] >>4 ) &0x0f ;if (channel_mask & (1 << (remote_num +1 ))) {dbginfo (&ati_remote->interface->dev, -"Masked input from channel 0x%02x: data %02x, " -"mask= 0x%02lx\n" , +"Masked input from channel 0x%02x: data %02x, mask= 0x%02lx\n" , remote_num, data[2 ], channel_mask);return ; }
drivers/media/rc/ene_ir.c +1 -2
@@ -1210,8 +1210,7 @@ MODULE_PARM_DESC(txsim,MODULE_DEVICE_TABLE (pnp, ene_ids);MODULE_DESCRIPTION - ("Infrared input driver for KB3926B/C/D/E/F " -"(aka ENE0100/ENE0200/ENE0201/ENE0202) CIR port" ); + ("Infrared input driver for KB3926B/C/D/E/F (aka ENE0100/ENE0200/ENE0201/ENE0202) CIR port" );MODULE_AUTHOR ("Maxim Levitsky" );MODULE_LICENSE ("GPL" );
drivers/media/rc/imon.c +14 -29
122 lines not on this page · raw message
drivers/media/rc/ite-cir.c +3 -6
@@ -55,14 +55,12 @@ MODULE_PARM_DESC(debug, "Enable debugging output");/* low limit for RX carrier freq, Hz, 0 for no RX demodulation */ static int rx_low_carrier_freq;module_param (rx_low_carrier_freq, int,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (rx_low_carrier_freq,"Override low RX carrier frequency, Hz, " -"0 for no RX demodulation" ); +MODULE_PARM_DESC (rx_low_carrier_freq,"Override low RX carrier frequency, Hz, 0 for no RX demodulation" );/* high limit for RX carrier freq, Hz, 0 for no RX demodulation */ static int rx_high_carrier_freq;module_param (rx_high_carrier_freq, int,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (rx_high_carrier_freq,"Override high RX carrier frequency, " -"Hz, 0 for no RX demodulation" ); +MODULE_PARM_DESC (rx_high_carrier_freq,"Override high RX carrier frequency, Hz, 0 for no RX demodulation" );/* override tx carrier frequency */ static int tx_carrier_freq;
@@ -1484,8 +1482,7 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_idif (model_number >=0 && model_number <ARRAY_SIZE (ite_dev_descs)) { model_no = model_number; -ite_pr (KERN_NOTICE ,"The model has been fixed by a module " -"parameter." ); +ite_pr (KERN_NOTICE ,"The model has been fixed by a module parameter." ); }ite_pr (KERN_NOTICE ,"Using model: %s\n" , ite_dev_descs[model_no].model);
drivers/media/rc/mceusb.c +1 -3
@@ -604,9 +604,7 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, char *buf,break ;case MCE_RSP_EQWAKEVERSION :if (!out) -dev_dbg (dev,"Wake version, proto: 0x%02x, " -"payload: 0x%02x, address: 0x%02x, " -"version: 0x%02x" , +dev_dbg (dev,"Wake version, proto: 0x%02x, payload: 0x%02x, address: 0x%02x, version: 0x%02x" , data1, data2, data3, data4);break ;case MCE_RSP_GETPORTSTATUS :
drivers/media/rc/rc-main.c +1 -2
@@ -660,8 +660,7 @@ static void ir_do_keydown(struct rc_dev *dev, enum rc_type protocol, dev->last_toggle = toggle; dev->last_keycode = keycode; -IR_dprintk (1 ,"%s: key down event, " -"key 0x%04x, protocol 0x%04x, scancode 0x%08x\n" , +IR_dprintk (1 ,"%s: key down event, key 0x%04x, protocol 0x%04x, scancode 0x%08x\n" , dev->input_name, keycode, protocol, scancode);input_report_key (dev->input_dev, keycode,1 );
drivers/media/rc/redrat3.c +6 -12
@@ -265,8 +265,7 @@ static void redrat3_dump_fw_error(struct redrat3_dev *rr3, int code)/* Codes 0x20 through 0x2f are IR Firmware Errors */ case 0x20 : -pr_cont ("Initial signal pulse not long enough " -"to measure carrier frequency\n" ); +pr_cont ("Initial signal pulse not long enough to measure carrier frequency\n" );break ;case 0x21 :pr_cont ("Not enough length values allocated for signal\n" );
@@ -278,18 +277,15 @@ static void redrat3_dump_fw_error(struct redrat3_dev *rr3, int code)pr_cont ("Too many signal repeats\n" );break ;case 0x28 : -pr_cont ("Insufficient memory available for IR signal " -"data memory allocation\n" ); +pr_cont ("Insufficient memory available for IR signal data memory allocation\n" );break ;case 0x29 : -pr_cont ("Insufficient memory available " -"for IrDa signal data memory allocation\n" ); +pr_cont ("Insufficient memory available for IrDa signal data memory allocation\n" );break ;/* Codes 0x30 through 0x3f are USB Firmware Errors */ case 0x30 : -pr_cont ("Insufficient memory available for bulk " -"transfer structure\n" ); +pr_cont ("Insufficient memory available for bulk transfer structure\n" );break ;/*
@@ -301,8 +297,7 @@ static void redrat3_dump_fw_error(struct redrat3_dev *rr3, int code)pr_cont ("Signal capture has been terminated\n" );break ;case 0x41 : -pr_cont ("Attempt to set/get and unknown signal I/O " -"algorithm parameter\n" ); +pr_cont ("Attempt to set/get and unknown signal I/O algorithm parameter\n" );break ;case 0x42 :pr_cont ("Signal capture already started\n" );
@@ -917,8 +912,7 @@ static struct rc_dev *redrat3_init_rc_dev(struct redrat3_dev *rr3) goto out; } -snprintf (rr3->name,sizeof (rr3->name),"RedRat3%s " -"Infrared Remote Transceiver (%04x:%04x)" , +snprintf (rr3->name,sizeof (rr3->name),"RedRat3%s Infrared Remote Transceiver (%04x:%04x)" , prod ==USB_RR3IIUSB_PRODUCT_ID ?"-II" :"" ,le16_to_cpu (rr3->udev->descriptor.idVendor), prod);
drivers/media/rc/streamzap.c +3 -6
@@ -297,8 +297,7 @@ static struct rc_dev *streamzap_init_rc_dev(struct streamzap_ir *sz) goto out; } -snprintf (sz->name,sizeof (sz->name),"Streamzap PC Remote Infrared " -"Receiver (%04x:%04x)" , +snprintf (sz->name,sizeof (sz->name),"Streamzap PC Remote Infrared Receiver (%04x:%04x)" ,le16_to_cpu (sz->usbdev->descriptor.idVendor),le16_to_cpu (sz->usbdev->descriptor.idProduct));usb_make_path (sz->usbdev, sz->phys,sizeof (sz->phys));
@@ -364,15 +363,13 @@ static int streamzap_probe(struct usb_interface *intf, sz->endpoint = &(iface_host->endpoint[0 ].desc);if (!usb_endpoint_dir_in (sz->endpoint)) { -dev_err (&intf->dev,"%s: endpoint doesn't match input device " -"02%02x\n" , __func__, sz->endpoint->bEndpointAddress); +dev_err (&intf->dev,"%s: endpoint doesn't match input device 02%02x\n" , __func__, sz->endpoint->bEndpointAddress); retval = -ENODEV ; goto free_sz; }if (!usb_endpoint_xfer_int (sz->endpoint)) { -dev_err (&intf->dev,"%s: endpoint attributes don't match xfer " -"02%02x\n" , __func__, sz->endpoint->bmAttributes); +dev_err (&intf->dev,"%s: endpoint attributes don't match xfer 02%02x\n" , __func__, sz->endpoint->bmAttributes); retval = -ENODEV ; goto free_sz; }
drivers/media/rc/winbond-cir.c +3 -6
@@ -227,8 +227,7 @@ struct wbcir_data {static enum wbcir_protocol protocol =IR_PROTOCOL_RC6 ;module_param (protocol, uint,0444 ); -MODULE_PARM_DESC (protocol,"IR protocol to use for the power-on command " -"(0 = RC5, 1 = NEC, 2 = RC6A, default)" ); +MODULE_PARM_DESC (protocol,"IR protocol to use for the power-on command (0 = RC5, 1 = NEC, 2 = RC6A, default)" );static bool invert;/* default = 0 */ module_param (invert, bool,0444 );
@@ -244,8 +243,7 @@ MODULE_PARM_DESC(wake_sc, "Scancode of the power-on IR command");static unsigned int wake_rc6mode =6 ;module_param (wake_rc6mode, uint,0644 ); -MODULE_PARM_DESC (wake_rc6mode,"RC6 mode for the power-on command " -"(0 = 0, 6 = 6A, default)" ); +MODULE_PARM_DESC (wake_rc6mode,"RC6 mode for the power-on command (0 = 0, 6 = 6A, default)" );
@@ -1050,8 +1048,7 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id) goto exit_free_data; } -dev_dbg (&device->dev,"Found device " -"(w: 0x%lX, e: 0x%lX, s: 0x%lX, i: %u)\n" , +dev_dbg (&device->dev,"Found device (w: 0x%lX, e: 0x%lX, s: 0x%lX, i: %u)\n" , data->wbase, data->ebase, data->sbase, data->irq); data->led.name ="cir::activity" ;
Signature · 1 line
2.7.4
PATCH 57/57 tuners: don't break long lines
In reply to Mauro Carvalho ChehabDue to the 80-cols checkpatch warnings, several strings were broken into multiple lines. This is not considered a good practice anymore, as it makes harder to grep for strings at the source code. So, join those continuation lines.
--- drivers/media/tuners/fc0011.c | 7 ++---- drivers/media/tuners/mc44s803.c | 3 +-- drivers/media/tuners/tda18271-common.c | 3 +-- drivers/media/tuners/tda18271-fe.c | 3 +-- drivers/media/tuners/tda18271-maps.c | 6 +----- drivers/media/tuners/tda8290.c | 3 +-- drivers/media/tuners/tea5761.c | 6 ++---- drivers/media/tuners/tuner-simple.c | 39 ++++++++++++---------------------- drivers/media/tuners/xc4000.c | 25 +++++++--------------- 9 files changed, 30 insertions(+), 65 deletions(-)
drivers/media/tuners/fc0011.c +2 -5
@@ -262,8 +262,7 @@ static int fc0011_set_params(struct dvb_frontend *fe) regs[FC11_REG_VCOSEL ] |=FC11_VCOSEL_BW7M ;break ;default : -dev_warn (&priv->i2c->dev,"Unsupported bandwidth %u kHz. " -"Using 6000 kHz.\n" , +dev_warn (&priv->i2c->dev,"Unsupported bandwidth %u kHz. Using 6000 kHz.\n" , bandwidth); bandwidth =6000 ;/* fallthrough */
@@ -435,9 +434,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)if (err)return err; - dev_dbg(&priv->i2c->dev, "Tuned to " - "fa=%02X fp=%02X xin=%02X%02X vco=%02X vcosel=%02X " - "vcocal=%02X(%u) bw=%u\n", + dev_dbg(&priv->i2c->dev, "Tuned to fa=%02X fp=%02X xin=%02X%02X vco=%02X vcosel=%02X vcocal=%02X(%u) bw=%u\n", (unsigned int)regs[FC11_REG_FA], (unsigned int)regs[FC11_REG_FP], (unsigned int)regs[FC11_REG_XINHI],
drivers/media/tuners/mc44s803.c +1 -2
@@ -349,8 +349,7 @@ struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe, id =MC44S803_REG_MS (reg,MC44S803_ID );if (id !=0x14 ) { -mc_printk (KERN_ERR ,"unsupported ID " -"(%x should be 0x14)\n" , id); +mc_printk (KERN_ERR ,"unsupported ID (%x should be 0x14)\n" , id); goto error; }
drivers/media/tuners/tda18271-common.c +1 -2
@@ -251,8 +251,7 @@ static int __tda18271_write_regs(struct dvb_frontend *fe, int idx, int len, }if (ret !=1 ) -tda_err ("ERROR: idx = 0x%x, len = %d, " -"i2c_transfer returned: %d\n" , idx, max, ret); +tda_err ("ERROR: idx = 0x%x, len = %d, i2c_transfer returned: %d\n" , idx, max, ret);return (ret ==1 ?0 : ret); }
drivers/media/tuners/tda18271-fe.c +1 -2
@@ -26,8 +26,7 @@int tda18271_debug;module_param_named (debug, tda18271_debug, int,0644 ); -MODULE_PARM_DESC (debug,"set debug level " -"(info=1, map=2, reg=4, adv=8, cal=16 (or-able))" ); +MODULE_PARM_DESC (debug,"set debug level (info=1, map=2, reg=4, adv=8, cal=16 (or-able))" );static int tda18271_cal_on_startup =-1 ;module_param_named (cal, tda18271_cal_on_startup, int,0644 );
drivers/media/tuners/tda18271-maps.c +1 -5
@@ -1024,11 +1024,7 @@ int tda18271_lookup_rf_band(struct dvb_frontend *fe, u32 *freq, u8 *rf_band)while ((map[i].rfmax *1000 ) < *freq) {if (tda18271_debug &DBG_ADV ) - tda_map("(%d) rfmax = %d < freq = %d, " - "rf1_def = %d, rf2_def = %d, rf3_def = %d, " - "rf1 = %d, rf2 = %d, rf3 = %d, " - "rf_a1 = %d, rf_a2 = %d, " - "rf_b1 = %d, rf_b2 = %d\n", + tda_map("(%d) rfmax = %d < freq = %d, rf1_def = %d, rf2_def = %d, rf3_def = %d, rf1 = %d, rf2 = %d, rf3 = %d, rf_a1 = %d, rf_a2 = %d, rf_b1 = %d, rf_b2 = %d\n", i, map[i].rfmax * 1000, *freq, map[i].rf1_def, map[i].rf2_def, map[i].rf3_def, map[i].rf1, map[i].rf2, map[i].rf3,
drivers/media/tuners/tda8290.c +1 -2
@@ -617,8 +617,7 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)if (tuner_addrs ==0 ) { tuner_addrs =0x60 ; -tuner_info ("could not clearly identify tuner address, " -"defaulting to %x\n" , tuner_addrs); +tuner_info ("could not clearly identify tuner address, defaulting to %x\n" , tuner_addrs); }else { tuner_addrs = tuner_addrs &0xff ;tuner_info ("setting tuner address to %x\n" , tuner_addrs);
drivers/media/tuners/tea5761.c +2 -4
@@ -274,13 +274,11 @@ int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr) }if ((buffer[13 ] !=0x2b ) || (buffer[14 ] !=0x57 ) || (buffer[15 ] !=0x061 )) { -printk (KERN_WARNING "Manufacturer ID= 0x%02x, Chip ID = %02x%02x." -" It is not a TEA5761\n" , +printk (KERN_WARNING "Manufacturer ID= 0x%02x, Chip ID = %02x%02x. It is not a TEA5761\n" , buffer[13 ], buffer[14 ], buffer[15 ]);return -EINVAL ; } -printk (KERN_WARNING "tea5761: TEA%02x%02x detected. " -"Manufacturer ID= 0x%02x\n" , +printk (KERN_WARNING "tea5761: TEA%02x%02x detected. Manufacturer ID= 0x%02x\n" , buffer[14 ], buffer[15 ], buffer[13 ]);return 0 ;
drivers/media/tuners/tuner-simple.c +13 -26
@@ -275,8 +275,7 @@ static int simple_config_lookup(struct dvb_frontend *fe, *config = t_params->ranges[i].config; *cb = t_params->ranges[i].cb; -tuner_dbg ("freq = %d.%02d (%d), range = %d, " -"config = 0x%02x, cb = 0x%02x\n" , +tuner_dbg ("freq = %d.%02d (%d), range = %d, config = 0x%02x, cb = 0x%02x\n" , *frequency /16 , *frequency %16 *100 /16 , *frequency, i, *config, *cb);
@@ -404,12 +403,10 @@ static int simple_std_setup(struct dvb_frontend *fe, i2c.addr =0x0a ; rc =tuner_i2c_xfer_send (&i2c, &buffer[0 ],2 );if (2 != rc) -tuner_warn ("i2c i/o error: rc == %d " -"(should be 2)\n" , rc); +tuner_warn ("i2c i/o error: rc == %d (should be 2)\n" , rc); rc =tuner_i2c_xfer_send (&i2c, &buffer[2 ],2 );if (2 != rc) -tuner_warn ("i2c i/o error: rc == %d " -"(should be 2)\n" , rc); +tuner_warn ("i2c i/o error: rc == %d (should be 2)\n" , rc);break ; } }
@@ -463,8 +460,7 @@ static int simple_post_tune(struct dvb_frontend *fe, u8 *buffer, rc =tuner_i2c_xfer_recv (&priv->i2c_props, &status_byte,1 );if (1 != rc) { -tuner_warn ("i2c i/o read error: rc == %d " -"(should be 1)\n" , rc); +tuner_warn ("i2c i/o read error: rc == %d (should be 1)\n" , rc);break ; }if (status_byte &TUNER_PLL_LOCKED )
@@ -483,8 +479,7 @@ static int simple_post_tune(struct dvb_frontend *fe, u8 *buffer, rc =tuner_i2c_xfer_send (&priv->i2c_props, buffer,4 );if (4 != rc) -tuner_warn ("i2c i/o error: rc == %d " -"(should be 4)\n" , rc); +tuner_warn ("i2c i/o error: rc == %d (should be 4)\n" , rc);break ; } }
@@ -499,8 +494,7 @@ static int simple_radio_bandswitch(struct dvb_frontend *fe, u8 *buffer)switch (priv->type) {case TUNER_TENA_9533_DI :case TUNER_YMEC_TVF_5533MF : -tuner_dbg ("This tuner doesn't have FM. " -"Most cards have a TEA5767 for FM\n" ); +tuner_dbg ("This tuner doesn't have FM. Most cards have a TEA5767 for FM\n" );return 0 ;case TUNER_PHILIPS_FM1216ME_MK3 :case TUNER_PHILIPS_FM1236_MK3 :
@@ -586,8 +580,7 @@ static int simple_set_tv_freq(struct dvb_frontend *fe, div = params->frequency + IFPCoff + offset; -tuner_dbg ("Freq= %d.%02d MHz, V_IF=%d.%02d MHz, " -"Offset=%d.%02d MHz, div=%0d\n" , +tuner_dbg ("Freq= %d.%02d MHz, V_IF=%d.%02d MHz, Offset=%d.%02d MHz, div=%0d\n" , params->frequency /16 , params->frequency %16 *100 /16 , IFPCoff /16 , IFPCoff %16 *100 /16 , offset /16 , offset %16 *100 /16 , div);
@@ -858,8 +851,7 @@ static u32 simple_dvb_configure(struct dvb_frontend *fe, u8 *buf,if (!tun->stepsize) {/* tuner-core was loaded before the digital tuner was * configured and somehow picked the wrong tuner type */ -tuner_err ("attempt to treat tuner %d (%s) as digital tuner " -"without stepsize defined.\n" , +tuner_err ("attempt to treat tuner %d (%s) as digital tuner without stepsize defined.\n" , priv->type, priv->tun->name);return 0 ;/* failure */ }
@@ -1077,8 +1069,7 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, fe->ops.i2c_gate_ctrl (fe,1 );if (1 !=i2c_transfer (i2c_adap, &msg,1 )) -printk (KERN_WARNING "tuner-simple %d-%04x: " -"unable to probe %s, proceeding anyway." , +printk (KERN_WARNING "tuner-simple %d-%04x: unable to probe %s, proceeding anyway." ,i2c_adapter_id (i2c_adap), i2c_addr, tuners[type].name);
@@ -1123,18 +1114,14 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,if ((debug) || ((atv_input[priv->nr] >0 ) || (dtv_input[priv->nr] >0 ))) {if (0 == atv_input[priv->nr]) -tuner_info ("tuner %d atv rf input will be " -"autoselected\n" , priv->nr); +tuner_info ("tuner %d atv rf input will be autoselected\n" , priv->nr);else -tuner_info ("tuner %d atv rf input will be " -"set to input %d (insmod option)\n" , +tuner_info ("tuner %d atv rf input will be set to input %d (insmod option)\n" , priv->nr, atv_input[priv->nr]);if (0 == dtv_input[priv->nr]) -tuner_info ("tuner %d dtv rf input will be " -"autoselected\n" , priv->nr); +tuner_info ("tuner %d dtv rf input will be autoselected\n" , priv->nr);else -tuner_info ("tuner %d dtv rf input will be " -"set to input %d (insmod option)\n" , +tuner_info ("tuner %d dtv rf input will be set to input %d (insmod option)\n" , priv->nr, dtv_input[priv->nr]); }
drivers/media/tuners/xc4000.c +8 -17
@@ -43,14 +43,11 @@ MODULE_PARM_DESC(debug, "Debugging level (0 to 2, default: 0 (off)).");static int no_poweroff;module_param (no_poweroff, int,0644 ); -MODULE_PARM_DESC (no_poweroff,"Power management (1: disabled, 2: enabled, " -"0 (default): use device-specific default mode)." ); +MODULE_PARM_DESC (no_poweroff,"Power management (1: disabled, 2: enabled, 0 (default): use device-specific default mode)." );static int audio_std;module_param (audio_std, int,0644 ); -MODULE_PARM_DESC (audio_std,"Audio standard. XC4000 audio decoder explicitly " -"needs to know what audio standard is needed for some video standards " -"with audio A2 or NICAM. The valid settings are a sum of:\n" +MODULE_PARM_DESC (audio_std,"Audio standard. XC4000 audio decoder explicitly needs to know what audio standard is needed for some video standards with audio A2 or NICAM. The valid settings are a sum of:\n" " 1: use NICAM/B or A2/B instead of NICAM/A or A2/A\n" " 2: use A2 instead of NICAM or BTSC\n" " 4: use SECAM/K3 instead of K1\n"
@@ -60,8 +57,7 @@ MODULE_PARM_DESC(audio_std, "Audio standard. XC4000 audio decoder explicitly "static char firmware_name[30 ];module_param_string (firmware_name, firmware_name,sizeof (firmware_name),0 ); -MODULE_PARM_DESC (firmware_name,"Firmware file name. Allows overriding the " -"default firmware name." ); +MODULE_PARM_DESC (firmware_name,"Firmware file name. Allows overriding the default firmware name." );static DEFINE_MUTEX (xc4000_list_mutex);static LIST_HEAD (hybrid_tuner_instance_list);
@@ -290,8 +286,7 @@ static int xc4000_tuner_reset(struct dvb_frontend *fe)return -EREMOTEIO ; } }else { -printk (KERN_ERR "xc4000: no tuner reset callback function, " -"fatal\n" ); +printk (KERN_ERR "xc4000: no tuner reset callback function, fatal\n" );return -EINVAL ; }return 0 ;
@@ -679,8 +674,7 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,if (best_nr_diffs >0U ) {printk (KERN_WARNING -"Selecting best matching firmware (%u bits differ) for " -"type=(%x), id %016llx:\n" , +"Selecting best matching firmware (%u bits differ) for type=(%x), id %016llx:\n" , best_nr_diffs, type, (unsigned long long )*id); i = best_i; }
@@ -800,8 +794,7 @@ static int xc4000_fwupload(struct dvb_frontend *fe) n++;if (n >= n_array) { -printk (KERN_ERR "More firmware images in file than " -"were expected!\n" ); +printk (KERN_ERR "More firmware images in file than were expected!\n" ); goto corrupt; }
@@ -1055,8 +1048,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type, goto fail; } -dprintk (1 ,"Device is Xceive %d version %d.%d, " -"firmware version %d.%d\n" , +dprintk (1 ,"Device is Xceive %d version %d.%d, firmware version %d.%d\n" , hwmodel, hw_major, hw_minor, fw_major, fw_minor);/* Check firmware version against what we downloaded. */
@@ -1076,8 +1068,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type, }else if (priv->hwmodel ==0 || priv->hwmodel != hwmodel || priv->hwvers != ((hw_major <<8 ) | hw_minor)) {printk (KERN_WARNING -"Read invalid device hardware information - tuner " -"hung?\n" ); +"Read invalid device hardware information - tuner hung?\n" ); goto fail; }
Signature · 1 line
2.7.4
Stefan Richter
maintainerQuoted 2 lines · On Oct 14 Mauro Carvalho Chehab wrote:
There are lots of drivers on media that breaks long line strings in order to fit into 80 columns. This was an usual practice to make checkpatch happy.
This was practice even before checkpatch existed.
Signature · 3 lines
Stefan Richter -======----- =-=- -==== http://arcgraph.de/sr/
Em Sat, 15 Oct 2016 15:46:14 +0200
Stefan Richter <[email protected]> escreveu:
Quoted 5 lines · On Oct 14 Mauro Carvalho Chehab wrote:
Quoted 2 lines
There are lots of drivers on media that breaks long line strings in order to fit into 80 columns. This was an usual practice to make checkpatch happy.
This was practice even before checkpatch existed.
True, but before checkpatch, we didn't care much to enforce breaking long string lines, letting up to the patch author to decide. As far as I remember, on media subsystem, only a handful drivers were actually breaking long strings (or even respecting the 80 cols limit).
After checkpatch, we started to enforce such practice, until some discussions on LKML arguing that breaking long strings actually make more harm than good, as it makes harder to use grep to identify what part of the Kernel produced a certain log message.
Thanks,
Mauro