From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59E5EC2BD09 for ; Sat, 6 Jul 2024 10:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kPYwPzeI6W10yOKTO/Y0CeYHro9ajr5RrVBiAAx2HOk=; b=SgbyL0momTTxnP k33Pu1ujgDYHZ6BOvn+BHzM5zpuYNDyZrP75Gjchd/gAUT/YJyRVBpNvh7LcaAaMOyyVwU/o5ehW4 8NL4OWcmMrq8tWv4Fp8gtXZIHOIDqUwwMR+IEaQiwh94f8Py/TOy7Rje8To4lbmTbapa2FyAz9R5L OfHCBUkHD4JeC48BhQv4Ml9Ew1/BP6rBOtokj+WzBpbLWi2ulfUm9HgDAeOzOFStZR6RM07qRRIwU j6JG5QqOAXG/H+mHzGY+CzZI2X/dk9pRQimBmOK06veahCzQvGPMbR29gS4B4fim7ShpO3SfcFRas s/ha0bhzwD51evVWvATw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQ35J-000000005vK-0ev3; Sat, 06 Jul 2024 10:56:05 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQ354-000000005s0-3aBN for linux-arm-kernel@lists.infradead.org; Sat, 06 Jul 2024 10:55:52 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 35D9DCE1AFE; Sat, 6 Jul 2024 10:55:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 320E7C2BD10; Sat, 6 Jul 2024 10:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720263348; bh=idoUi8lkJwbaUT4zm5Y4BMqTc7tuX+nE2lNVnAuRfXI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G8gldELT4REe8o8c2hAY7hI2BzJPf7179H3ikYOPF+G+R4GCSbfSDHlgwK891dQ3E s3Q3C7nV60MTEVdjrcyiv2zggvR7Ku75hgC258Cy35KRrCb31roCGFtG+PI7DxX52U aDDapYx6asVtGY2S5oQrGR8NjHO/6DZteKl6JmcpD/Gg3wJ+/wBsrT8sprxi8F/IfY d8iX6g2+WlFyW4bk3nQ2YGT+hrbE1ry6EUrpqywzB8wk5H00IvPbU2p0aykysC2te3 BAZiHUw3vSke4ja5RLFL8Ktj5LV3NBuLaJVaUGDn3g6WtgOyHbatcXmDvH+s7oOW5S 11evVYePEY9gg== Date: Sat, 6 Jul 2024 11:55:38 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Subject: Re: [PATCH 0/6] iio: adc: simplify with cleanup.h Message-ID: <20240706115538.33341034@jic23-huawei> In-Reply-To: <20240705-cleanup-h-iio-v1-0-77114c7e84c5@linaro.org> References: <20240705-cleanup-h-iio-v1-0-77114c7e84c5@linaro.org> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240706_035551_101592_69DAF371 X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Dan Robertson , Michael Hennerich , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea , Oleksij Rempel , Lars-Peter Clausen , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 05 Jul 2024 12:40:43 +0200 Krzysztof Kozlowski 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,