Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: ts2020: use semicolons rather than commas to separate statements

Replace commas with semicolons. Commas introduce unnecessary
variability in the code structure and are hard to see. What is done
is essentially described by the following Coccinelle semantic patch
(http://coccinelle.lip6.fr/):

// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Julia Lawall and committed by
Mauro Carvalho Chehab
fa71ae71 e4b0e7d6

+5 -5
+5 -5
drivers/media/dvb-frontends/ts2020.c
··· 569 569 570 570 /* create regmap */ 571 571 mutex_init(&dev->regmap_mutex); 572 - dev->regmap_config.reg_bits = 8, 573 - dev->regmap_config.val_bits = 8, 574 - dev->regmap_config.lock = ts2020_regmap_lock, 575 - dev->regmap_config.unlock = ts2020_regmap_unlock, 576 - dev->regmap_config.lock_arg = dev, 572 + dev->regmap_config.reg_bits = 8; 573 + dev->regmap_config.val_bits = 8; 574 + dev->regmap_config.lock = ts2020_regmap_lock; 575 + dev->regmap_config.unlock = ts2020_regmap_unlock; 576 + dev->regmap_config.lock_arg = dev; 577 577 dev->regmap = regmap_init_i2c(client, &dev->regmap_config); 578 578 if (IS_ERR(dev->regmap)) { 579 579 ret = PTR_ERR(dev->regmap);