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 6D3D3C30658 for ; Fri, 5 Jul 2024 11:44:25 +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=W8O52Eeisz8Bv9AExskfenvGvw gFUTckQdM88pwLPxU0Jm3cPXazb0fdkUVJ4NwOSoLB7iEwG7pcJ8MgnPGZwcT9+0opr+4jp3qOUsq pnp35VcB2na6uRtyRZpCq4uH4kzi2AlRZpmUEwXtWXp6fz+zpTUGy3Yzu/ZRKarLYFpWj9n9O6uHE hlqT6qujEAZP9TDNSc0opj12toOwMFZTUatSD+Ez1w7oB2t3VWl2No3ZVbzLprxqMOki3+GSqOVI1 vcm5+2kD1q/kB1RCX4XReYXliNBoIgJDOHn/NKWoxIhFXohGxJExIJWmoZAEaLEEdJqdaQZmKPyBr qu4Fq1kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPhMK-0000000FpL4-0ifb; Fri, 05 Jul 2024 11:44:12 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPhM5-0000000FpHw-3sQN for linux-arm-kernel@lists.infradead.org; Fri, 05 Jul 2024 11:43:59 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42564316479so9537635e9.2 for ; Fri, 05 Jul 2024 04:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720179836; x=1720784636; 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=JQA/ZS27zShG2YY/sksB1qOPgaUXNc+EQ5mbasZUkLchLY1H61S/RKIVdhSEqvE/j0 K5CnDI31cYNzzVmGw5I5V77TyWbpEif9libOSlFJGWiniywaNB3AfAWcmQrG7H/IGZTA lO8yWx7/30m2rigbPh8aJmbuH6nW8LFqvDQBk6dosFD4Krrpyn5zajtUZ7RhU6xG+zZL H99plCB58dJ51/OjA5hMm5GqyzTrY1o8XBsFfx9iYhqWn7H5i7eD1NZufaB4dMe9f7+K mJ+YM/Ox4spHR8o4Tr5d8YKlfOmGXWy4/sZ262s3Z8Xb7IwqbqAgrxqqHFvt81rQmP+Q g3kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720179836; x=1720784636; 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=dWFaKarky306xwk1mCZryRQ3IQCFWLe2FIk3FW9yCOyF0TEzl6x97BYfhQgQAZQpcL AvFW9AcNAU0O1hMP8rcJe9P+8LBTqn0d73NLFVMvKsamjfBwnruEkMh+bQtWiwlJBDcj uX4ld8v3+0OlfHAllU1+FdNqvj5kchjOsWA/sqAamLVdoF72tfDvUo5tJs04zJyIGQsJ 9WJB3iWZyQkGsqGdfJ22uAlxPWxD3vjMw6KiJnD+9geUq7r7Mr85IpU0RfgKs9e13NDB fJYZoU+JmqK4CCRWP9i+oc4vYYYwGa7hmFjahnp80z7C5RS8U94HNiQFRk6MIHgpl/wN RGfA== X-Forwarded-Encrypted: i=1; AJvYcCV3yTvrNNIaXgLBlkbUYt6kFl+jVKhZzHCq6KBu+g0/K5ihWyrr0ptnc2pjvyfw+q9t1w04O4Q91L/5LFodtW7LRqHQypipqJKoY9Xb6UYib9P2EgE= X-Gm-Message-State: AOJu0Yyel+U5JwqNCdfBOH8Fmx2rbfXWTEqJ+Umsb/RuOJHiIIB2bIyH cViVDo0ppwNKO2SI72WDtNnuQoxBcDqL8iEIeS4wmhjaHlZUS86M X-Google-Smtp-Source: AGHT+IFesY2jLEXcHNAnK0re0sLVhAl9HacKcjQib3stZSiF2Cg290l5GPhc20mRgpYMZL4irPzgeg== X-Received: by 2002:a05:600c:1989:b0:426:4b90:1e91 with SMTP id 5b1f17b1804b1-4264b901fdbmr27496175e9.24.1720179835689; Fri, 05 Jul 2024 04:43:55 -0700 (PDT) Received: from nsa.fritz.box ([2001:a61:359b:e801:d44:32b3:6924:10d1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a2ca5d5sm59187905e9.30.2024.07.05.04.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 04:43:55 -0700 (PDT) Message-ID: <1dd2e42a27b4399d1a889dd2a794ca1761a5faa5.camel@gmail.com> Subject: Re: [PATCH 2/6] iio: adc: ad7280a: 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:43:54 +0200 In-Reply-To: <20240705-cleanup-h-iio-v1-2-77114c7e84c5@linaro.org> References: <20240705-cleanup-h-iio-v1-0-77114c7e84c5@linaro.org> <20240705-cleanup-h-iio-v1-2-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_044358_002693_9D3F520F X-CRM114-Status: UNSURE ( 8.07 ) 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