Commit 885fe4b1 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

hwmon: (adm1026) Fix debug messages

* Add missing new-line to one debug message.
* Remove leading colon from 3 debug messages.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Philip Pokorny <ppokorny@penguincomputing.com>
parent 366716e6
...@@ -455,7 +455,7 @@ static void adm1026_print_gpio(struct i2c_client *client) ...@@ -455,7 +455,7 @@ static void adm1026_print_gpio(struct i2c_client *client)
struct adm1026_data *data = i2c_get_clientdata(client); struct adm1026_data *data = i2c_get_clientdata(client);
int i; int i;
dev_dbg(&client->dev, "GPIO config is:"); dev_dbg(&client->dev, "GPIO config is:\n");
for (i = 0;i <= 7;++i) { for (i = 0;i <= 7;++i) {
if (data->config2 & (1 << i)) { if (data->config2 & (1 << i)) {
dev_dbg(&client->dev, "\t%sGP%s%d\n", dev_dbg(&client->dev, "\t%sGP%s%d\n",
...@@ -1681,17 +1681,16 @@ static int adm1026_detect(struct i2c_client *client, int kind, ...@@ -1681,17 +1681,16 @@ static int adm1026_detect(struct i2c_client *client, int kind,
kind = adm1026; kind = adm1026;
} else if (company == ADM1026_COMPANY_ANALOG_DEV } else if (company == ADM1026_COMPANY_ANALOG_DEV
&& (verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) { && (verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) {
dev_err(&adapter->dev, ": Unrecognized stepping " dev_err(&adapter->dev, "Unrecognized stepping "
"0x%02x. Defaulting to ADM1026.\n", verstep); "0x%02x. Defaulting to ADM1026.\n", verstep);
kind = adm1026; kind = adm1026;
} else if ((verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) { } else if ((verstep & 0xf0) == ADM1026_VERSTEP_GENERIC) {
dev_err(&adapter->dev, ": Found version/stepping " dev_err(&adapter->dev, "Found version/stepping "
"0x%02x. Assuming generic ADM1026.\n", "0x%02x. Assuming generic ADM1026.\n",
verstep); verstep);
kind = any_chip; kind = any_chip;
} else { } else {
dev_dbg(&adapter->dev, ": Autodetection " dev_dbg(&adapter->dev, "Autodetection failed\n");
"failed\n");
/* Not an ADM1026 ... */ /* Not an ADM1026 ... */
if (kind == 0) { /* User used force=x,y */ if (kind == 0) { /* User used force=x,y */
dev_err(&adapter->dev, "Generic ADM1026 not " dev_err(&adapter->dev, "Generic ADM1026 not "
......
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