Commit 221ca912 authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Mauro Carvalho Chehab

[media] staging: media: lirc: lirc_zilog.c: fix quoted strings split across lines

checkpatch makes an exception to the 80-colum rule for quotes strings, and
Documentation/CodingStyle recommends not splitting quotes strings across lines
because it breaks the ability to grep for the string. Fixing these.

WARNING: quoted string split across lines
Signed-off-by: default avatarLuis de Bethencourt <luis@debethencourt.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cb9564e1
...@@ -372,14 +372,14 @@ static int add_to_buf(struct IR *ir) ...@@ -372,14 +372,14 @@ static int add_to_buf(struct IR *ir)
ret); ret);
if (failures >= 3) { if (failures >= 3) {
mutex_unlock(&ir->ir_lock); mutex_unlock(&ir->ir_lock);
dev_err(ir->l.dev, "unable to read from the IR chip " dev_err(ir->l.dev,
"after 3 resets, giving up\n"); "unable to read from the IR chip after 3 resets, giving up\n");
break; break;
} }
/* Looks like the chip crashed, reset it */ /* Looks like the chip crashed, reset it */
dev_err(ir->l.dev, "polling the IR receiver chip failed, " dev_err(ir->l.dev,
"trying reset\n"); "polling the IR receiver chip failed, trying reset\n");
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
if (kthread_should_stop()) { if (kthread_should_stop()) {
...@@ -405,8 +405,9 @@ static int add_to_buf(struct IR *ir) ...@@ -405,8 +405,9 @@ static int add_to_buf(struct IR *ir)
ret = i2c_master_recv(rx->c, keybuf, sizeof(keybuf)); ret = i2c_master_recv(rx->c, keybuf, sizeof(keybuf));
mutex_unlock(&ir->ir_lock); mutex_unlock(&ir->ir_lock);
if (ret != sizeof(keybuf)) { if (ret != sizeof(keybuf)) {
dev_err(ir->l.dev, "i2c_master_recv failed with %d -- " dev_err(ir->l.dev,
"keeping last read buffer\n", ret); "i2c_master_recv failed with %d -- keeping last read buffer\n",
ret);
} else { } else {
rx->b[0] = keybuf[3]; rx->b[0] = keybuf[3];
rx->b[1] = keybuf[4]; rx->b[1] = keybuf[4];
...@@ -713,8 +714,9 @@ static int send_boot_data(struct IR_tx *tx) ...@@ -713,8 +714,9 @@ static int send_boot_data(struct IR_tx *tx)
buf[0]); buf[0]);
return 0; return 0;
} }
dev_notice(tx->ir->l.dev, "Zilog/Hauppauge IR blaster firmware version " dev_notice(tx->ir->l.dev,
"%d.%d.%d loaded\n", buf[1], buf[2], buf[3]); "Zilog/Hauppauge IR blaster firmware version %d.%d.%d loaded\n",
buf[1], buf[2], buf[3]);
return 0; return 0;
} }
...@@ -792,8 +794,8 @@ static int fw_load(struct IR_tx *tx) ...@@ -792,8 +794,8 @@ static int fw_load(struct IR_tx *tx)
if (!read_uint8(&data, tx_data->endp, &version)) if (!read_uint8(&data, tx_data->endp, &version))
goto corrupt; goto corrupt;
if (version != 1) { if (version != 1) {
dev_err(tx->ir->l.dev, "unsupported code set file version (%u, expected" dev_err(tx->ir->l.dev,
"1) -- please upgrade to a newer driver", "unsupported code set file version (%u, expected 1) -- please upgrade to a newer driver",
version); version);
fw_unload_locked(); fw_unload_locked();
ret = -EFAULT; ret = -EFAULT;
...@@ -981,8 +983,9 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key) ...@@ -981,8 +983,9 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key)
ret = get_key_data(data_block, code, key); ret = get_key_data(data_block, code, key);
if (ret == -EPROTO) { if (ret == -EPROTO) {
dev_err(tx->ir->l.dev, "failed to get data for code %u, key %u -- check " dev_err(tx->ir->l.dev,
"lircd.conf entries\n", code, key); "failed to get data for code %u, key %u -- check lircd.conf entries\n",
code, key);
return ret; return ret;
} else if (ret != 0) } else if (ret != 0)
return ret; return ret;
...@@ -1057,12 +1060,14 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key) ...@@ -1057,12 +1060,14 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key)
ret = i2c_master_send(tx->c, buf, 1); ret = i2c_master_send(tx->c, buf, 1);
if (ret == 1) if (ret == 1)
break; break;
dev_dbg(tx->ir->l.dev, "NAK expected: i2c_master_send " dev_dbg(tx->ir->l.dev,
"failed with %d (try %d)\n", ret, i+1); "NAK expected: i2c_master_send failed with %d (try %d)\n",
ret, i+1);
} }
if (ret != 1) { if (ret != 1) {
dev_err(tx->ir->l.dev, "IR TX chip never got ready: last i2c_master_send " dev_err(tx->ir->l.dev,
"failed with %d\n", ret); "IR TX chip never got ready: last i2c_master_send failed with %d\n",
ret);
return ret < 0 ? ret : -EFAULT; return ret < 0 ? ret : -EFAULT;
} }
...@@ -1165,12 +1170,12 @@ static ssize_t write(struct file *filep, const char __user *buf, size_t n, ...@@ -1165,12 +1170,12 @@ static ssize_t write(struct file *filep, const char __user *buf, size_t n,
*/ */
if (ret != 0) { if (ret != 0) {
/* Looks like the chip crashed, reset it */ /* Looks like the chip crashed, reset it */
dev_err(tx->ir->l.dev, "sending to the IR transmitter chip " dev_err(tx->ir->l.dev,
"failed, trying reset\n"); "sending to the IR transmitter chip failed, trying reset\n");
if (failures >= 3) { if (failures >= 3) {
dev_err(tx->ir->l.dev, "unable to send to the IR chip " dev_err(tx->ir->l.dev,
"after 3 resets, giving up\n"); "unable to send to the IR chip after 3 resets, giving up\n");
mutex_unlock(&ir->ir_lock); mutex_unlock(&ir->ir_lock);
mutex_unlock(&tx->client_lock); mutex_unlock(&tx->client_lock);
put_ir_tx(tx, false); put_ir_tx(tx, false);
...@@ -1540,8 +1545,9 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1540,8 +1545,9 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
/* Proceed only if the Rx client is also ready or not needed */ /* Proceed only if the Rx client is also ready or not needed */
if (rx == NULL && !tx_only) { if (rx == NULL && !tx_only) {
dev_info(tx->ir->l.dev, "probe of IR Tx on %s (i2c-%d) done. Waiting" dev_info(tx->ir->l.dev,
" on IR Rx.\n", adap->name, adap->nr); "probe of IR Tx on %s (i2c-%d) done. Waiting on IR Rx.\n",
adap->name, adap->nr);
goto out_ok; goto out_ok;
} }
} else { } else {
...@@ -1579,8 +1585,9 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1579,8 +1585,9 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
"zilog-rx-i2c-%d", adap->nr); "zilog-rx-i2c-%d", adap->nr);
if (IS_ERR(rx->task)) { if (IS_ERR(rx->task)) {
ret = PTR_ERR(rx->task); ret = PTR_ERR(rx->task);
dev_err(tx->ir->l.dev, "%s: could not start IR Rx polling thread" dev_err(tx->ir->l.dev,
"\n", __func__); "%s: could not start IR Rx polling thread\n",
__func__);
/* Failed kthread, so put back the ir ref */ /* Failed kthread, so put back the ir ref */
put_ir_device(ir, true); put_ir_device(ir, true);
/* Failure exit, so put back rx ref from i2c_client */ /* Failure exit, so put back rx ref from i2c_client */
...@@ -1592,8 +1599,8 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1592,8 +1599,8 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
/* Proceed only if the Tx client is also ready */ /* Proceed only if the Tx client is also ready */
if (tx == NULL) { if (tx == NULL) {
pr_info("probe of IR Rx on %s (i2c-%d) done. Waiting" pr_info("probe of IR Rx on %s (i2c-%d) done. Waiting on IR Tx.\n",
" on IR Tx.\n", adap->name, adap->nr); adap->name, adap->nr);
goto out_ok; goto out_ok;
} }
} }
......
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