linux/drivers/media/pci
Mauro Carvalho Chehab 399426cadf [media] cx88: make checkpatch.pl happy
Usually, I don't like fixing coding style issues on non-staging
drivers, as it could be a mess pretty easy, and could become like
a snow ball. That's the case of recent changes on two changesets:
they disalign some statements. Yet, a care a lot with cx88 driver,
as it was the first driver I touched at the Kernel, and I've been
maintaining it since 2005. So, several of the coding style issues
were due to my code.

Per Andrey's suggestion, I ran checkpatch.pl in strict mode, with
fixed several other issues, did some function alinments, but broke
other alinments.

So, I had to manually apply another round of manual fixes to make
sure that everything is ok, and to make checkpatch happy with
this patch.

With this patch, checkpatch.pl is now happy when called with:
	./scripts/checkpatch.pl -f --max-line-length=998 --ignore PREFER_PR_LEVEL

Also, the 80-cols violations that made sense were fixed.

Checkpatch would be happier if we convert it to use dev_foo(),
but this is a more complex change.

NOTE: there are some places with msleep(1). As this driver was
written at the time that the default was to sleep at least 10ms
on such calls (e. g. CONFIG_HZ=100), I replaced those calls by
usleep_range(10000, 20000), with should be safe to avoid breakages.

Fixes: 65bc2fe86e ("[media] cx88: convert it to use pr_foo() macros")
Fixes: 7b61ba8ff8 ("[media] cx88: make checkpatch happier")

Suggested-by: Andrey Utkin <andrey_utkin@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Reviewed-by: Andrey Utkin <andrey_utkin@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-11-25 07:50:20 -02:00
..
b2c2 [media] b2c2: don't break long lines 2016-10-21 08:52:14 -02:00
bt8xx [media] dvb: make DVB frontend *_ops instances "const" 2016-11-18 15:00:22 -02:00
cobalt [media] cobalt: fix copy-and-paste error 2016-11-16 15:28:13 -02:00
cx18 [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx88 [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx23885 [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
cx25821 [media] cx25821: Remove deprecated create_singlethread_workqueue 2016-09-22 12:49:37 -03:00
ddbridge [media] ddbridge: don't break long lines 2016-10-21 09:10:07 -02:00
dm1105 [media] dm1105: don't break long lines 2016-10-21 09:10:30 -02:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv Linux 4.9-rc5 2016-11-16 16:42:27 -02:00
mantis [media] mantis: Fix error handling in mantis_dma_init() 2015-08-19 07:04:55 -03:00
meye [media] squash lines for simple wrapper functions 2016-11-16 13:28:40 -02:00
netup_unidvb [media] netup_unidvb: use module_pci_driver 2016-11-22 16:30:03 -02:00
ngene [media] constify local structures 2016-09-19 16:22:18 -03:00
pluto2 [media] pluto2: use KERN_CONT where needed 2016-11-18 09:35:46 -02:00
pt1 [media] dvb: make DVB frontend *_ops instances "const" 2016-11-18 15:00:22 -02:00
pt3 [media] media: pci: pt3: don't print error when adding adapter fails 2016-08-24 13:58:46 -03:00
saa7134 [media] saa7134: fix warm Medion 7134 EEPROM read 2016-11-18 14:04:53 -02:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: don't break long lines 2016-10-21 09:16:51 -02:00
smipcie [media] constify local structures 2016-09-19 16:22:18 -03:00
solo6x10 [media] media: solo6x10: fix lockup by avoiding delayed register write 2016-11-16 13:23:04 -02:00
sta2x11 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ttpci [media] ttpci: cleanup debug macros and remove dead code 2016-11-18 09:40:43 -02:00
tw68 [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
tw686x [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
tw5864 [media] tw5864: crop picture width to 704 2016-10-24 18:02:54 -02:00
zoran [media] zoran: fix spelling mistake in dprintk message 2016-11-22 05:41:56 -02:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00