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

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.