Skip to content

Commit

Permalink
hwmon: (lm70) Utilize dev_warn instead of pr_warn
Browse files Browse the repository at this point in the history
We have a device reference, utilize it instead of pr_warn().

Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
ffainelli authored and groeck committed Jan 21, 2017
1 parent bb85ceb commit e829514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hwmon/lm70.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ static ssize_t temp1_input_show(struct device *dev,
*/
status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2);
if (status < 0) {
pr_warn("spi_write_then_read failed with status %d\n", status);
dev_warn(dev, "spi_write_then_read failed with status %d\n",
status);
goto out;
}
raw = (rxbuf[0] << 8) + rxbuf[1];
Expand Down

0 comments on commit e829514

Please sign in to comment.