Tag: 45259859492812c8b700ae1d157be01a8d2babfe

iio: at91_adc: Use devm_kcalloc to allocate arrays

Author: Lars-Peter Clausen <lars@metafoo.de> Use dev_kcalloc instead of devm_kzalloc to allocate arrays since it is semantically more appropriate. While we are at it the patch also fixes the following coccinelle warning: drivers/iio/adc/at91_adc.c:277:25-31: ERROR: application of sizeof to pointer Signed-off-by: Lars-Peter Clausen Acked-By: Maxime Ripard Signed-off-by: Jonathan Cameron — drivers/iio/adc/at91_adc.c | 16 ++++++———- 1 file changed, …

Continue reading