aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sch56xx-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/sch56xx-common.c')
-rw-r--r--drivers/hwmon/sch56xx-common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/sch56xx-common.c b/drivers/hwmon/sch56xx-common.c
index d00b30adc34b..738681983284 100644
--- a/drivers/hwmon/sch56xx-common.c
+++ b/drivers/hwmon/sch56xx-common.c
@@ -161,8 +161,8 @@ static int sch56xx_send_cmd(u16 addr, u8 cmd, u16 reg, u8 v)
161 break; 161 break;
162 } 162 }
163 if (i == max_busy_polls + max_lazy_polls) { 163 if (i == max_busy_polls + max_lazy_polls) {
164 pr_err("Max retries exceeded reading virtual " 164 pr_err("Max retries exceeded reading virtual register 0x%04hx (%d)\n",
165 "register 0x%04hx (%d)\n", reg, 1); 165 reg, 1);
166 return -EIO; 166 return -EIO;
167 } 167 }
168 168
@@ -178,12 +178,12 @@ static int sch56xx_send_cmd(u16 addr, u8 cmd, u16 reg, u8 v)
178 break; 178 break;
179 179
180 if (i == 0) 180 if (i == 0)
181 pr_warn("EC reports: 0x%02x reading virtual register " 181 pr_warn("EC reports: 0x%02x reading virtual register 0x%04hx\n",
182 "0x%04hx\n", (unsigned int)val, reg); 182 (unsigned int)val, reg);
183 } 183 }
184 if (i == max_busy_polls) { 184 if (i == max_busy_polls) {
185 pr_err("Max retries exceeded reading virtual " 185 pr_err("Max retries exceeded reading virtual register 0x%04hx (%d)\n",
186 "register 0x%04hx (%d)\n", reg, 2); 186 reg, 2);
187 return -EIO; 187 return -EIO;
188 } 188 }
189 189