Message ID | 20240705-cleanup-h-iio-v1-0-77114c7e84c5@linaro.org (mailing list archive) |
---|---|
Headers | show |
Series | iio: adc: simplify with cleanup.h | expand |
On Fri, 05 Jul 2024 12:40:43 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > Allocate the memory with scoped/cleanup.h to reduce error handling and > make the code a bit simpler. For now I've applied 1-5 as I think 6 needs a little more discussion. Note applied only to the testing branch of iio.git for now. That will become the togreg branch and get picked up by linux-next etc after I've rebased on 6.11-rc1. Jonathan > > Best regards, > Krzysztof > > --- > Krzysztof Kozlowski (6): > iio: accel: bma400: simplify with cleanup.h > iio: adc: ad7280a: simplify with cleanup.h > iio: adc: at91: simplify with cleanup.h > iio: adc: max1363: simplify with cleanup.h > iio: adc: ti-tsc2046: simplify with cleanup.h > iio: adc: ad5755: drop redundant devm_kfree() > > drivers/iio/accel/bma400_core.c | 11 +++++------ > drivers/iio/adc/ad7280a.c | 10 ++++------ > drivers/iio/adc/at91_adc.c | 13 +++++-------- > drivers/iio/adc/max1363.c | 34 +++++++++++++--------------------- > drivers/iio/adc/ti-tsc2046.c | 29 ++++++++++++----------------- > drivers/iio/dac/ad5755.c | 1 - > 6 files changed, 39 insertions(+), 59 deletions(-) > --- > base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233 > change-id: 20240705-cleanup-h-iio-c90ca38865a4 > > Best regards,