Re: [PATCH] hwmon: g762: handle cleanup with devm_add_action

2018-02-28 Thread Guenter Roeck
On 02/28/2018 07:51 AM, Peng Hao wrote: Simplify code and use devm_add_action() to handle cleanup. Signed-off-by: Peng Hao Excellent idea. Some suggestions for improvements below. --- drivers/hwmon/g762.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions

[PATCH] hwmon: g762: handle cleanup with devm_add_action

2018-02-27 Thread Peng Hao
Simplify code and use devm_add_action() to handle cleanup. Signed-off-by: Peng Hao --- drivers/hwmon/g762.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/hwmon/g762.c b/drivers/hwmon/g762.c index 6d1208b..48e60d8 100644 --- a/drivers