Re: [PATCH] hwmon: pwm-fan: Use dev_err_probe() to simplify error handling

2020-08-21 Thread Guenter Roeck
On Mon, Aug 17, 2020 at 03:34:33PM +0800, Anson Huang wrote: > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang Applied. Thanks, Guenter > --- > drivers/hwmon/pwm-fan.c | 10 ++---

[PATCH] hwmon: pwm-fan: Use dev_err_probe() to simplify error handling

2020-08-17 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/hwmon/pwm-fan.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/hwmon/pwm-fan.c b/driver