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 CA115C30658 for ; Fri, 5 Jul 2024 11:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bk3qLkBEIyPLDB7z1gSU1T/1fxUgl2lfuo9ssbi6J9s=; b=AIwvnIH8lQb9wBlbF3G1TI9J/A ofgSqkRoUB2yd8OxqFsNKP+IN/HUgc/O6qHBUrcXwKS+MBgdr/GrfgJYUkHXYemdiCVMxSz6DSf9J N5a80z7576exMihAaTMyW0ONBukE9RcyZnl+cTa1EXNLu5gOhMz9rZQ0AYeJFVWYFmfQaH8y1MAyY +DuE9WRLof8Y1WNmny1PJSfHF2vcJ5Xm8+0lKb4mDyhmP5dKoAQtJruaUAqMjnHN1Z5B5A8T9G7hD T++EN4lYb4/TIXBH9DFUnlpn6SVVKU6U3VuhmHBAHAGVhfxDXA7k4Lh3j2kfIe8UkFl2Zs8RnjG66 IpMARLBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPhNw-0000000FpUl-1Tx9; Fri, 05 Jul 2024 11:45:52 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPhNi-0000000FpSj-2Hm9 for linux-arm-kernel@lists.infradead.org; Fri, 05 Jul 2024 11:45:39 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2eabd22d3f4so17104771fa.1 for ; Fri, 05 Jul 2024 04:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720179937; x=1720784737; darn=lists.infradead.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=bk3qLkBEIyPLDB7z1gSU1T/1fxUgl2lfuo9ssbi6J9s=; b=fr/mwqcAj1TePijIbh7RCckM3p9Vu0ozZvQjk+9D0j80XBoANIQlJtz76iGcvUOBNo RnPp745gZg7j4+kmV2DiBfqxQsqvpfjhMkTzMlgN5ELIzYEYkkZh8lWNJq/DWJh+dYlo Ib3cIkaJBDjM9cdAVI1hvJHa/0uKRIKQCcASHpY1ASFweaLvlBannJ6XC10xUc89sEYU IAqbXfB7/HiBk3f0csJaLuSUso/rxHBmHcT6mqFhMAU7zMgGjtZRUL5V81p8oy53fPC3 3sy7+apioAvZSmxCNrSn1iij9eDN43jzWyyq01pFy8fSkUW16wf//Zn0x86GaHHtq8Hf p1Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720179937; x=1720784737; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bk3qLkBEIyPLDB7z1gSU1T/1fxUgl2lfuo9ssbi6J9s=; b=KasLS8MEG/qkjXn0EVnko0/YYyCxWmQ7oYJjVBzRJMlAWiOV4ij4QvvzDwZlMPeILO GOuQy90zPkY6J5qJkGB9GdxdGmasmvjEl/gCzNtk1mN47u+SUOBvSL9c9bNVNKB7PCW4 orN0ReVC4IzYw0QOUDD2Ob7qqUmkUJ1LKXGRh6jE1j+9FlnGlGFIKQdZiyhlto3hTeQg n/W8SnRdtdeSOjj0rjMtpucorVc2HTYLM2mtnAcYhiTsBGn6uihMnPPaXh6Ybjp0YQDZ q7rqSZhXq6IP3oSVncpb28Q1es+5RKe77cuNjpo6rM31G//7jcdUBXZcELZXo8dQLMtZ 1w+A== X-Forwarded-Encrypted: i=1; AJvYcCXgSzHTqsKaNPHbSqVQMC3N/r+1TSGSEtB72XymxpIms4YFz4Co+Yk5kZNlm6P8LvHPmDLZCwSrhE3z4+bw1KA1AJ8tAhZy/nxc6L7/81VZQzy4HS0= X-Gm-Message-State: AOJu0YxROTUwbPwFRMZw/0m7S3vxECsg8vxW7EcjOqLyokHbAc+SD1KB wAHiqxJ9F/JcNc6EEu9knC+oolLpwD+r3yijgHpG74mMMt7/1jex X-Google-Smtp-Source: AGHT+IEwO1eutKdgDmrzLv1pT3tcJkCP4rgFN//lUN1pr21x/OyBkPLP7VV/vwv0JiiSni3QfNE10A== X-Received: by 2002:a2e:a497:0:b0:2ee:8777:f868 with SMTP id 38308e7fff4ca-2ee8edc2deemr28599761fa.35.1720179936416; Fri, 05 Jul 2024 04:45:36 -0700 (PDT) Received: from nsa.fritz.box ([2001:a61:359b:e801:d44:32b3:6924:10d1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a21cbb7sm60483875e9.26.2024.07.05.04.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 04:45:36 -0700 (PDT) Message-ID: <577f07db3484347499dc676b867b8255be0dbb51.camel@gmail.com> Subject: Re: [PATCH 4/6] iio: adc: max1363: simplify with cleanup.h From: Nuno =?ISO-8859-1?Q?S=E1?= To: Krzysztof Kozlowski , Dan Robertson , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Oleksij Rempel , kernel@pengutronix.de Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Fri, 05 Jul 2024 13:45:35 +0200 In-Reply-To: <20240705-cleanup-h-iio-v1-4-77114c7e84c5@linaro.org> References: <20240705-cleanup-h-iio-v1-0-77114c7e84c5@linaro.org> <20240705-cleanup-h-iio-v1-4-77114c7e84c5@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240705_044538_598663_C01A5AB4 X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 2024-07-05 at 12:40 +0200, Krzysztof Kozlowski wrote: > Allocate the memory with scoped/cleanup.h to reduce error handling and > make the code a bit simpler. >=20 > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Nuno Sa