提交 e8295146 编写于 作者: F Florian Fainelli 提交者: Guenter Roeck

hwmon: (lm70) Utilize dev_warn instead of pr_warn

We have a device reference, utilize it instead of pr_warn().
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 bb85ceb1
...@@ -72,7 +72,8 @@ static ssize_t temp1_input_show(struct device *dev, ...@@ -72,7 +72,8 @@ static ssize_t temp1_input_show(struct device *dev,
*/ */
status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2);
if (status < 0) { 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; goto out;
} }
raw = (rxbuf[0] << 8) + rxbuf[1]; raw = (rxbuf[0] << 8) + rxbuf[1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册