projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb85ceb
)
hwmon: (lm70) Utilize dev_warn instead of pr_warn
author
Florian Fainelli
<f.fainelli@gmail.com>
Sat, 21 Jan 2017 19:20:09 +0000
(11:20 -0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Sat, 21 Jan 2017 20:26:36 +0000
(12:26 -0800)
We have a device reference, utilize it instead of pr_warn().
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm70.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/lm70.c
b/drivers/hwmon/lm70.c
index d6ecd1a4be5962527613e4a33ddf7e8fbf0f35ce..52c5cdd00448572f0806c0b98db5cc723cc04d24 100644
(file)
--- a/
drivers/hwmon/lm70.c
+++ b/
drivers/hwmon/lm70.c
@@
-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];