]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: sun4i-gpadc: use of_device_get_match_data
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Fri, 20 Oct 2017 05:37:29 +0000 (07:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Oct 2017 17:48:00 +0000 (18:48 +0100)
commite1c5994c7f17335ed4c95bf1ad72df438abea031
tree5f16dc8e0249e6f392aca2c9260231eb37930675
parentcd79f89e4e2eff9bb91d8671aebdfe514e1f6042
iio: adc: sun4i-gpadc: use of_device_get_match_data

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 <clabbe.montjoie@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/sun4i-gpadc-iio.c