Commit 01153bf0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b33494e9
...@@ -101,7 +101,7 @@ struct dvb_demux_filter { ...@@ -101,7 +101,7 @@ struct dvb_demux_filter {
* @cb: digital TV callbacks. depending on the feed type, it can be: * @cb: digital TV callbacks. depending on the feed type, it can be:
* if the feed is TS, it contains a dmx_ts_cb() @ts callback; * if the feed is TS, it contains a dmx_ts_cb() @ts callback;
* if the feed is section, it contains a dmx_section_cb() @sec * if the feed is section, it contains a dmx_section_cb() @sec
* callback. * callback.
* *
* @demux: pointer to &struct dvb_demux. * @demux: pointer to &struct dvb_demux.
* @priv: private data that can optionally be used by a DVB driver. * @priv: private data that can optionally be used by a DVB driver.
......
...@@ -2096,7 +2096,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2096,7 +2096,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
dev_dbg(fe->dvb->device, "%s:\n", __func__); dev_dbg(fe->dvb->device, "%s:\n", __func__);
switch(cmd) { switch (cmd) {
case FE_SET_PROPERTY: { case FE_SET_PROPERTY: {
struct dtv_properties *tvps = parg; struct dtv_properties *tvps = parg;
struct dtv_property *tvp = NULL; struct dtv_property *tvp = NULL;
...@@ -2164,7 +2164,8 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2164,7 +2164,8 @@ static int dvb_frontend_handle_ioctl(struct file *file,
} }
} }
for (i = 0; i < tvps->num; i++) { for (i = 0; i < tvps->num; i++) {
err = dtv_property_process_get(fe, &getp, tvp + i, file); err = dtv_property_process_get(fe, &getp,
tvp + i, file);
if (err < 0) { if (err < 0) {
kfree(tvp); kfree(tvp);
return err; return err;
...@@ -2296,7 +2297,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2296,7 +2297,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
case FE_DISEQC_RECV_SLAVE_REPLY: case FE_DISEQC_RECV_SLAVE_REPLY:
if (fe->ops.diseqc_recv_slave_reply) if (fe->ops.diseqc_recv_slave_reply)
err = fe->ops.diseqc_recv_slave_reply(fe, (struct dvb_diseqc_slave_reply*) parg); err = fe->ops.diseqc_recv_slave_reply(fe, parg);
break; break;
case FE_ENABLE_HIGH_LNB_VOLTAGE: case FE_ENABLE_HIGH_LNB_VOLTAGE:
...@@ -2381,7 +2382,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2381,7 +2382,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
case FE_READ_BER: case FE_READ_BER:
if (fe->ops.read_ber) { if (fe->ops.read_ber) {
if (fepriv->thread) if (fepriv->thread)
err = fe->ops.read_ber(fe, (__u32 *) parg); err = fe->ops.read_ber(fe, parg);
else else
err = -EAGAIN; err = -EAGAIN;
} }
...@@ -2390,7 +2391,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2390,7 +2391,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
case FE_READ_SIGNAL_STRENGTH: case FE_READ_SIGNAL_STRENGTH:
if (fe->ops.read_signal_strength) { if (fe->ops.read_signal_strength) {
if (fepriv->thread) if (fepriv->thread)
err = fe->ops.read_signal_strength(fe, (__u16 *) parg); err = fe->ops.read_signal_strength(fe, parg);
else else
err = -EAGAIN; err = -EAGAIN;
} }
...@@ -2399,7 +2400,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2399,7 +2400,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
case FE_READ_SNR: case FE_READ_SNR:
if (fe->ops.read_snr) { if (fe->ops.read_snr) {
if (fepriv->thread) if (fepriv->thread)
err = fe->ops.read_snr(fe, (__u16 *) parg); err = fe->ops.read_snr(fe, parg);
else else
err = -EAGAIN; err = -EAGAIN;
} }
...@@ -2408,7 +2409,7 @@ static int dvb_frontend_handle_ioctl(struct file *file, ...@@ -2408,7 +2409,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
case FE_READ_UNCORRECTED_BLOCKS: case FE_READ_UNCORRECTED_BLOCKS:
if (fe->ops.read_ucblocks) { if (fe->ops.read_ucblocks) {
if (fepriv->thread) if (fepriv->thread)
err = fe->ops.read_ucblocks(fe, (__u32 *) parg); err = fe->ops.read_ucblocks(fe, parg);
else else
err = -EAGAIN; err = -EAGAIN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment