Skip to content
Commit 0d87a4aa authored by Corentin Labbe's avatar Corentin Labbe Committed by Jonathan Cameron
Browse files

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: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 724330a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment