Commit 4458a54c authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] anysee: coding style changes

I did what I liked to do. Also corrected two long log writings
as checkpatch.pl was complaining about those.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6c604e8e
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen, static int anysee_ctrl_msg(struct dvb_usb_device *d,
u8 *rbuf, u8 rlen) u8 *sbuf, u8 slen, u8 *rbuf, u8 rlen)
{ {
struct anysee_state *state = d_to_priv(d); struct anysee_state *state = d_to_priv(d);
int act_len, ret, i; int act_len, ret, i;
...@@ -84,16 +84,16 @@ static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen, ...@@ -84,16 +84,16 @@ static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen,
d->props->generic_bulk_ctrl_endpoint), d->props->generic_bulk_ctrl_endpoint),
state->buf, sizeof(state->buf), &act_len, 2000); state->buf, sizeof(state->buf), &act_len, 2000);
if (ret) { if (ret) {
dev_dbg(&d->udev->dev, "%s: recv bulk message " \ dev_dbg(&d->udev->dev,
"failed=%d\n", __func__, ret); "%s: recv bulk message failed=%d\n",
__func__, ret);
} else { } else {
dev_dbg(&d->udev->dev, "%s: <<< %*ph\n", __func__, dev_dbg(&d->udev->dev, "%s: <<< %*ph\n", __func__,
rlen, state->buf); rlen, state->buf);
if (state->buf[63] != 0x4f) if (state->buf[63] != 0x4f)
dev_dbg(&d->udev->dev, "%s: cmd failed\n", dev_dbg(&d->udev->dev,
__func__); "%s: cmd failed\n", __func__);
break; break;
} }
} }
...@@ -881,9 +881,8 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -881,9 +881,8 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap)
if (!adap->fe[0]) { if (!adap->fe[0]) {
/* we have no frontend :-( */ /* we have no frontend :-( */
ret = -ENODEV; ret = -ENODEV;
dev_err(&d->udev->dev, "%s: Unsupported Anysee version. " \ dev_err(&d->udev->dev,
"Please report the " \ "%s: Unsupported Anysee version. Please report the <linux-media@vger.kernel.org>.\n",
"<linux-media@vger.kernel.org>.\n",
KBUILD_MODNAME); KBUILD_MODNAME);
} }
error: error:
......
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