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

media: dvb: do some coding style cleanup

Fix a bunch of coding style issues found by checkpatch on the
part of the code that the previous patches touched.

WARNING: please, no space before tabs
+ * ^I^Icallback.$

ERROR: space required before the open parenthesis '('
+ switch(cmd) {

WARNING: line over 80 characters
+ err = dtv_property_process_get(fe, &getp, tvp + i, file);

WARNING: line over 80 characters
+ err = fe->ops.diseqc_recv_slave_reply(fe, (struct dvb_diseqc_slave_reply*) parg);

ERROR: "(foo*)" should be "(foo *)"
+ err = fe->ops.diseqc_recv_slave_reply(fe, (struct dvb_diseqc_slave_reply*) parg);

WARNING: line over 80 characters
+ err = fe->ops.read_signal_strength(fe, (__u16 *) parg);

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

+9 -8
+1 -1
drivers/media/dvb-core/dvb_demux.h
··· 101 101 * @cb: digital TV callbacks. depending on the feed type, it can be: 102 102 * if the feed is TS, it contains a dmx_ts_cb() @ts callback; 103 103 * if the feed is section, it contains a dmx_section_cb() @sec 104 - * callback. 104 + * callback. 105 105 * 106 106 * @demux: pointer to &struct dvb_demux. 107 107 * @priv: private data that can optionally be used by a DVB driver.
+8 -7
drivers/media/dvb-core/dvb_frontend.c
··· 2096 2096 2097 2097 dev_dbg(fe->dvb->device, "%s:\n", __func__); 2098 2098 2099 - switch(cmd) { 2099 + switch (cmd) { 2100 2100 case FE_SET_PROPERTY: { 2101 2101 struct dtv_properties *tvps = parg; 2102 2102 struct dtv_property *tvp = NULL; ··· 2164 2164 } 2165 2165 } 2166 2166 for (i = 0; i < tvps->num; i++) { 2167 - err = dtv_property_process_get(fe, &getp, tvp + i, file); 2167 + err = dtv_property_process_get(fe, &getp, 2168 + tvp + i, file); 2168 2169 if (err < 0) { 2169 2170 kfree(tvp); 2170 2171 return err; ··· 2297 2296 2298 2297 case FE_DISEQC_RECV_SLAVE_REPLY: 2299 2298 if (fe->ops.diseqc_recv_slave_reply) 2300 - err = fe->ops.diseqc_recv_slave_reply(fe, (struct dvb_diseqc_slave_reply*) parg); 2299 + err = fe->ops.diseqc_recv_slave_reply(fe, parg); 2301 2300 break; 2302 2301 2303 2302 case FE_ENABLE_HIGH_LNB_VOLTAGE: ··· 2382 2381 case FE_READ_BER: 2383 2382 if (fe->ops.read_ber) { 2384 2383 if (fepriv->thread) 2385 - err = fe->ops.read_ber(fe, (__u32 *) parg); 2384 + err = fe->ops.read_ber(fe, parg); 2386 2385 else 2387 2386 err = -EAGAIN; 2388 2387 } ··· 2391 2390 case FE_READ_SIGNAL_STRENGTH: 2392 2391 if (fe->ops.read_signal_strength) { 2393 2392 if (fepriv->thread) 2394 - err = fe->ops.read_signal_strength(fe, (__u16 *) parg); 2393 + err = fe->ops.read_signal_strength(fe, parg); 2395 2394 else 2396 2395 err = -EAGAIN; 2397 2396 } ··· 2400 2399 case FE_READ_SNR: 2401 2400 if (fe->ops.read_snr) { 2402 2401 if (fepriv->thread) 2403 - err = fe->ops.read_snr(fe, (__u16 *) parg); 2402 + err = fe->ops.read_snr(fe, parg); 2404 2403 else 2405 2404 err = -EAGAIN; 2406 2405 } ··· 2409 2408 case FE_READ_UNCORRECTED_BLOCKS: 2410 2409 if (fe->ops.read_ucblocks) { 2411 2410 if (fepriv->thread) 2412 - err = fe->ops.read_ucblocks(fe, (__u32 *) parg); 2411 + err = fe->ops.read_ucblocks(fe, parg); 2413 2412 else 2414 2413 err = -EAGAIN; 2415 2414 }