Re: [PATCH 1/3] iio: accel: mma8452: Use dev_err_probe() to simplify error handling

2020-08-29 Thread Jonathan Cameron
On Tue, 11 Aug 2020 11:43:14 +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 Sorry Anson. You got in first, but I was working backwards through my

Re: [PATCH 1/3] iio: accel: mma8452: Use dev_err_probe() to simplify error handling

2020-08-16 Thread Jonathan Cameron
On Tue, 11 Aug 2020 11:43:14 +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 Hi Anson, All look good, but will have to wait for dev_err_probe to be in

[PATCH 1/3] iio: accel: mma8452: Use dev_err_probe() to simplify error handling

2020-08-10 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/iio/accel/mma8452.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git