aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ/common.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-09-23 22:11:13 +0200
committerGuenter Roeck <linux@roeck-us.net>2021-09-24 05:02:24 -0700
commit6f7d70467121f790b36af2d84bc02b5c236bf5e6 (patch)
tree763ba70e6bbd1c0650f5a7e2c4064cfd87ce865d /drivers/hwmon/occ/common.c
parenthwmon: (tmp421) fix rounding for negative values (diff)
downloadlinux-dev-6f7d70467121f790b36af2d84bc02b5c236bf5e6.tar.xz
linux-dev-6f7d70467121f790b36af2d84bc02b5c236bf5e6.zip
hwmon: (ltc2947) Properly handle errors when looking for the external clock
The return value of devm_clk_get should in general be propagated to upper layer. In this case the clk is optional, use the appropriate wrapper instead of interpreting all errors as "The optional clk is not available". Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20210923201113.398932-1-u.kleine-koenig@pengutronix.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions