Re: [PATCH] iio: adc: sun4i-gpadc: use of_device_get_match_data

2017-10-21 Thread Jonathan Cameron
On Fri, 20 Oct 2017 07:37:29 +0200 Corentin Labbe wrote: > The usage of of_device_get_match_data reduce the code size a bit. > Furthermore, it prevents an improbable dereference when > of_match_device() return NULL. > > Signed-off-by: Corentin Labbe Nice little tidy up - thanks. Applied to the

[PATCH] iio: adc: sun4i-gpadc: use of_device_get_match_data

2017-10-19 Thread Corentin Labbe
The usage of of_device_get_match_data reduce the code size a bit. Furthermore, it prevents an improbable dereference when of_match_device() return NULL. Signed-off-by: Corentin Labbe --- drivers/iio/adc/sun4i-gpadc-iio.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/d