mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
hwmon: (lm70) Utilize dev_warn instead of pr_warn
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]>
This commit is contained in:
parent
bb85ceb1b3
commit
e829514650
1 changed files with 2 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue