Staging:iio:tsl2583 Remove quoted string split across lines warnings
authorMichael Welling <mwelling@ieee.org>
Sat, 4 Oct 2014 02:26:00 +0000 (03:26 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Apr 2014 17:30:53 +0000 (18:30 +0100)
Signed-off-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c

index 9d39387b47b98293306ba9393e379324d21491ba..8d46c92f6f643f670a39fd7c9eea293fe7f1ea3e 100644 (file)
@@ -165,8 +165,9 @@ taos_i2c_read(struct i2c_client *client, u8 reg, u8 *val, unsigned int len)
                /* select register to write */
                ret = i2c_smbus_write_byte(client, (TSL258X_CMD_REG | reg));
                if (ret < 0) {
-                       dev_err(&client->dev, "taos_i2c_read failed to write"
-                               " register %x\n", reg);
+                       dev_err(&client->dev,
+                               "taos_i2c_read failed to write register %x\n",
+                               reg);
                        return ret;
                }
                /* read the data */
@@ -231,8 +232,9 @@ static int taos_get_lux(struct iio_dev *indio_dev)
                int reg = TSL258X_CMD_REG | (TSL258X_ALS_CHAN0LO + i);
                ret = taos_i2c_read(chip->client, reg, &buf[i], 1);
                if (ret < 0) {
-                       dev_err(&chip->client->dev, "taos_get_lux failed to read"
-                               " register %x\n", reg);
+                       dev_err(&chip->client->dev,
+                               "taos_get_lux failed to read register %x\n",
+                               reg);
                        goto out_unlock;
                }
        }
@@ -809,9 +811,7 @@ static int taos_probe(struct i2c_client *clientp,
 
        if (!i2c_check_functionality(clientp->adapter,
                I2C_FUNC_SMBUS_BYTE_DATA)) {
-               dev_err(&clientp->dev,
-                       "taos_probe() - i2c smbus byte data "
-                       "functions unsupported\n");
+               dev_err(&clientp->dev, "taos_probe() - i2c smbus byte data func unsupported\n");
                return -EOPNOTSUPP;
        }
 
@@ -830,30 +830,32 @@ static int taos_probe(struct i2c_client *clientp,
                ret = i2c_smbus_write_byte(clientp,
                                (TSL258X_CMD_REG | (TSL258X_CNTRL + i)));
                if (ret < 0) {
-                       dev_err(&clientp->dev, "i2c_smbus_write_bytes() to cmd "
-                               "reg failed in taos_probe(), err = %d\n", ret);
+                       dev_err(&clientp->dev,
+                               "i2c_smbus_write_byte to cmd reg failed in taos_probe(), err = %d\n",
+                               ret);
                        return ret;
                }
                ret = i2c_smbus_read_byte(clientp);
                if (ret < 0) {
-                       dev_err(&clientp->dev, "i2c_smbus_read_byte from "
-                               "reg failed in taos_probe(), err = %d\n", ret);
-
+                       dev_err(&clientp->dev,
+                               "i2c_smbus_read_byte from reg failed in taos_probe(), err = %d\n",
+                               ret);
                        return ret;
                }
                buf[i] = ret;
        }
 
        if (!taos_tsl258x_device(buf)) {
-               dev_info(&clientp->dev, "i2c device found but does not match "
-                       "expected id in taos_probe()\n");
+               dev_info(&clientp->dev,
+                       "i2c device found but does not match expected id in taos_probe()\n");
                return -EINVAL;
        }
 
        ret = i2c_smbus_write_byte(clientp, (TSL258X_CMD_REG | TSL258X_CNTRL));
        if (ret < 0) {
-               dev_err(&clientp->dev, "i2c_smbus_write_byte() to cmd reg "
-                       "failed in taos_probe(), err = %d\n", ret);
+               dev_err(&clientp->dev,
+                       "i2c_smbus_write_byte() to cmd reg failed in taos_probe(), err = %d\n",
+                       ret);
                return ret;
        }