diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-01-10 13:01:24 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-08 00:16:40 -0400 |
commit | b55f375725ff85aada394da488802b0a3cc99e88 (patch) | |
tree | 571a8883b647a53901e102ee24c5c21cab342f49 /drivers/hwmon/lm93.c | |
parent | 088ce2ac9ebac5c74faf4d39083627875fa6f0f0 (diff) |
hwmon: Fix checkpatch warning 'quoted string split across lines'
Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Juerg Haefliger <juergh@gmail.com>
Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: Roger Lucas <vt8231@hiddenengine.co.uk>
Cc: Marc Hulsman <m.hulsman@tudelft.nl>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm93.c')
-rw-r--r-- | drivers/hwmon/lm93.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 340382f173a0..a6f46058b1be 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c | |||
@@ -818,8 +818,9 @@ static u8 lm93_read_byte(struct i2c_client *client, u8 reg) | |||
818 | if (value >= 0) { | 818 | if (value >= 0) { |
819 | return value; | 819 | return value; |
820 | } else { | 820 | } else { |
821 | dev_warn(&client->dev, "lm93: read byte data failed, " | 821 | dev_warn(&client->dev, |
822 | "address 0x%02x.\n", reg); | 822 | "lm93: read byte data failed, address 0x%02x.\n", |
823 | reg); | ||
823 | mdelay(i + 3); | 824 | mdelay(i + 3); |
824 | } | 825 | } |
825 | 826 | ||
@@ -838,8 +839,9 @@ static int lm93_write_byte(struct i2c_client *client, u8 reg, u8 value) | |||
838 | result = i2c_smbus_write_byte_data(client, reg, value); | 839 | result = i2c_smbus_write_byte_data(client, reg, value); |
839 | 840 | ||
840 | if (result < 0) | 841 | if (result < 0) |
841 | dev_warn(&client->dev, "lm93: write byte data failed, " | 842 | dev_warn(&client->dev, |
842 | "0x%02x at address 0x%02x.\n", value, reg); | 843 | "lm93: write byte data failed, 0x%02x at address 0x%02x.\n", |
844 | value, reg); | ||
843 | 845 | ||
844 | return result; | 846 | return result; |
845 | } | 847 | } |
@@ -854,8 +856,9 @@ static u16 lm93_read_word(struct i2c_client *client, u8 reg) | |||
854 | if (value >= 0) { | 856 | if (value >= 0) { |
855 | return value; | 857 | return value; |
856 | } else { | 858 | } else { |
857 | dev_warn(&client->dev, "lm93: read word data failed, " | 859 | dev_warn(&client->dev, |
858 | "address 0x%02x.\n", reg); | 860 | "lm93: read word data failed, address 0x%02x.\n", |
861 | reg); | ||
859 | mdelay(i + 3); | 862 | mdelay(i + 3); |
860 | } | 863 | } |
861 | 864 | ||
@@ -874,8 +877,9 @@ static int lm93_write_word(struct i2c_client *client, u8 reg, u16 value) | |||
874 | result = i2c_smbus_write_word_data(client, reg, value); | 877 | result = i2c_smbus_write_word_data(client, reg, value); |
875 | 878 | ||
876 | if (result < 0) | 879 | if (result < 0) |
877 | dev_warn(&client->dev, "lm93: write word data failed, " | 880 | dev_warn(&client->dev, |
878 | "0x%04x at address 0x%02x.\n", value, reg); | 881 | "lm93: write word data failed, 0x%04x at address 0x%02x.\n", |
882 | value, reg); | ||
879 | 883 | ||
880 | return result; | 884 | return result; |
881 | } | 885 | } |
@@ -898,8 +902,8 @@ static void lm93_read_block(struct i2c_client *client, u8 fbn, u8 *values) | |||
898 | if (result == lm93_block_read_cmds[fbn].len) { | 902 | if (result == lm93_block_read_cmds[fbn].len) { |
899 | break; | 903 | break; |
900 | } else { | 904 | } else { |
901 | dev_warn(&client->dev, "lm93: block read data failed, " | 905 | dev_warn(&client->dev, |
902 | "command 0x%02x.\n", | 906 | "lm93: block read data failed, command 0x%02x.\n", |
903 | lm93_block_read_cmds[fbn].cmd); | 907 | lm93_block_read_cmds[fbn].cmd); |
904 | mdelay(i + 3); | 908 | mdelay(i + 3); |
905 | } | 909 | } |
@@ -2672,8 +2676,8 @@ static void lm93_init_client(struct i2c_client *client) | |||
2672 | return; | 2676 | return; |
2673 | } | 2677 | } |
2674 | 2678 | ||
2675 | dev_warn(&client->dev, "timed out waiting for sensor " | 2679 | dev_warn(&client->dev, |
2676 | "chip to signal ready!\n"); | 2680 | "timed out waiting for sensor chip to signal ready!\n"); |
2677 | } | 2681 | } |
2678 | 2682 | ||
2679 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 2683 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
@@ -2733,12 +2737,12 @@ static int lm93_probe(struct i2c_client *client, | |||
2733 | dev_dbg(&client->dev, "using SMBus block data transactions\n"); | 2737 | dev_dbg(&client->dev, "using SMBus block data transactions\n"); |
2734 | update = lm93_update_client_full; | 2738 | update = lm93_update_client_full; |
2735 | } else if ((LM93_SMBUS_FUNC_MIN & func) == LM93_SMBUS_FUNC_MIN) { | 2739 | } else if ((LM93_SMBUS_FUNC_MIN & func) == LM93_SMBUS_FUNC_MIN) { |
2736 | dev_dbg(&client->dev, "disabled SMBus block data " | 2740 | dev_dbg(&client->dev, |
2737 | "transactions\n"); | 2741 | "disabled SMBus block data transactions\n"); |
2738 | update = lm93_update_client_min; | 2742 | update = lm93_update_client_min; |
2739 | } else { | 2743 | } else { |
2740 | dev_dbg(&client->dev, "detect failed, " | 2744 | dev_dbg(&client->dev, |
2741 | "smbus byte and/or word data not supported!\n"); | 2745 | "detect failed, smbus byte and/or word data not supported!\n"); |
2742 | return -ENODEV; | 2746 | return -ENODEV; |
2743 | } | 2747 | } |
2744 | 2748 | ||