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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 936E5E92716 for ; Sat, 27 Dec 2025 17:44:42 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4ddqcS4gF6z2xQK; Sun, 28 Dec 2025 04:44:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1766857480; cv=none; b=PSJ/Rj29iU5qgKPImRYyJjlaXerax4aUCDxbgPcZnDVhTLzkVqqwdfcy8X2E8korafSPgntBD8R+8fMvg3ztNSPLtAx/M5Qs9OdzNPrNiygejGsp8KywSz2sP7RteXVSZMoOxhtyHZ+Y3ktAEGsEOBSWVnAPoDMLet9J/krN9BerQVmNs+AtxPXqR3SyRI0vgI1Nq+plduzrwbVoC3KRZk8KWhH+KTR69EZUYpDmcjlUOmmU7yHsCb4ss+O0OWHKXG4WwkEvv/MHjlrKeMX1krldf4FwZeVHi+C+xYKjXVausPj4W4zRK9LEsL2u8TVgilVforRPQcGuyXFn7nI9eQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1766857480; c=relaxed/relaxed; bh=8JON7EhFTDNEelfylKALMXTbkwUkKqxujg/BRlfMbsc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mbGzr550LAm3C7diFeVPfbxS1pAmDQShAheK2bFe5KPIOwTP3y2OQKJddufuhh3xWzso/AYaR25MKtpG5SXyjxVcMzJi0non720c8ayv2rEDWLeWKupv4To5PD2Nmbgf9v4vbH/EHxunapfnVXdqljC5Qf473ZQ7cf4e965bmV14kz0QDE6tKl8lCCoYZi0YeF4tflWG+UpEO/VrdiFH+zXxU7GzveL2K+f2tTJFdEFRqLn5UVQoKpMtZ2Ld7TgATId6KvNDYQW86zqQNIP8hRmNeRvx64Bl9xM7qJPfrguVrGzE9hPzWA7FFs79MRwpuO1iNn5EI32inpPSOiY63g== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=plgRFm2x; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=jic23@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=plgRFm2x; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=jic23@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4ddqcR3clLz2x99 for ; Sun, 28 Dec 2025 04:44:39 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 34BCE43246; Sat, 27 Dec 2025 17:44:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CA24C4CEF1; Sat, 27 Dec 2025 17:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1766857446; bh=rEzyn2bOa/coEWORVff+5bDDXl1nAaryf+Cd927xIOk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=plgRFm2xv3fqWW5WRh8lT7O/Wmj2z7xu9xX/s7k4mnHrgMJaVSaAIgUsOCHQxxJxf e6mTos4LuKjclLyR3T6+coydKFAv2N0HxD4b3au0Nb53KzuTbrBqNdvHEyliG8JKtu fXiK6hG42cOmNtGWdwQ2HnSUsXb6lFMVGlWV5WG4Y90IjVbaF3u5zWUYaXHUOOHGfi T4kb34NP9bp5miMS5tqjAdInUe7MkV/qIg2DSNX0OUYLIkOhT8IGd4O9Ht9ptxB6dC b0B5vlls0XTmDuY9T3iuZHkSWJbQzmzXS9tvbgpr7h2Wiu0YnJGKZbh05vwAISYNZU Bxz63eR8a1ZCg== Date: Sat, 27 Dec 2025 17:43:55 +0000 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , Joel Stanley , Andrew Jeffery , Krzysztof Kozlowski , Alim Akhtar , Heiko Stuebner , Philipp Zabel , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH 1/3] iio: adc: aspeed: Simplify probe() with local 'dev' and 'np' Message-ID: <20251227174355.0677f93f@jic23-huawei> In-Reply-To: <20251221142602.47368-4-krzysztof.kozlowski@oss.qualcomm.com> References: <20251221142602.47368-4-krzysztof.kozlowski@oss.qualcomm.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.51; x86_64-pc-linux-gnu) X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 21 Dec 2025 15:26:03 +0100 Krzysztof Kozlowski wrote: > Simplify the probe function by using local 'dev' and 'np' variables > instead of full pointer dereferences. This makes several lines shorter, > which allows to avoid wrapping making code more readable. While > touching the return line, simplify by avoiding unnecessary 'ret' > assignment. > > Signed-off-by: Krzysztof Kozlowski All 3 patches applied to the togreg branch of iio.git. Initially pushed out as testing to let the bots have a play. Jonathan