From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B83320A5EB; Thu, 24 Jul 2025 11:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753355830; cv=none; b=TyKoetzb7lqvCelnFhhVOHkl2iQHKytFe+J1beX/hujk6+vuxCRmI6ajC4Ww1l35OnGvmMLWFRtkC4S75wSyLFJV2QxO4SXMNFiZxD6+qSNVa2+tn54V/5QvvZ/s1GnLmIB/x81bPdPCZj1ESQBoiJsdnofs81q/8lHeqzil9KU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753355830; c=relaxed/simple; bh=HuoUPFLyXF9aZfFKFFofQna0gKavNBbb4GzmGGP7AL8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V/xwXjxg7rJZZ8B/9YE2BqbqfzwSgGRbeYP5xwqGHu8j00znRYsfhBmBUa2UMKTv3jB5KEJCmiQS3vpehENSCEZRF2X2jzYKBg7xMCDnIbQb0tRqCztHIbK91DcJyIoCv2jN9LBJkZV92RhUb6RtnezDkinrJ4k0c99oX/K818k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TVdQ2I7i; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TVdQ2I7i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04DE3C4CEED; Thu, 24 Jul 2025 11:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753355829; bh=HuoUPFLyXF9aZfFKFFofQna0gKavNBbb4GzmGGP7AL8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TVdQ2I7ipTpgbkYoGLMGDYMLYLIML7PQibABfm/csHV34WzLAcIhcVl0wmUSzEBXv 8o93GOtSpbGD0IwqNKZShdUp+5j1otWHdajN0EZoyyquSlHjLJDiBILQ2bS9d9wyVU MmgC2lHTRYu8rg6eHGTwi3c8XZGUkEeXEtM5MDCjdEudsizcFAvMPkBFZxLI73fJjn RJ77gITxPSyRKDkcc0qNZnHwCEqnIQ9KkL0GTp7e6mBIeo6fZRl6uiN5ewhaQwFZNN KW2Bo7Tvv3vyermTF4qzLL6J8oY4UZNYPFBpLA0jgv7NYQIg9cUd7nohIGrpauOs15 8hCB9UPntJFNA== Date: Thu, 24 Jul 2025 12:17:03 +0100 From: Jonathan Cameron To: Nuno =?UTF-8?B?U8Oh?= Cc: David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] iio: accel: bma180: use stack allocated buffer for scan Message-ID: <20250724121703.03b29d3b@jic23-huawei> In-Reply-To: References: <20250721-iio-use-more-iio_declare_buffer_with_ts-v2-1-f8fb11b8add8@baylibre.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 22 Jul 2025 10:12:04 +0100 Nuno S=C3=A1 wrote: > On Mon, Jul 21, 2025 at 06:16:34PM -0500, David Lechner wrote: > > Move the scan struct to the stack instead of being in the driver state > > struct. The buffer is only used in a single function and does not need > > to be DMA-safe so it does not need to exist outside of that function's > > scope. > >=20 > > Signed-off-by: David Lechner > > --- > > Changes in v2: > > - Preserve the struct instead of using IIO_DECLARE_BUFFER_WITH_TS() > > - Did not pick up Andy's review tag since the entire patch changed. > > - Link to v1: https://lore.kernel.org/r/20250710-iio-use-more-iio_decla= re_buffer_with_ts-v1-1-df6498f54095@baylibre.com > > --- =20 >=20 > Reviewed-by: Nuno S=C3=A1 >=20 Applied to the testing branch of iio.git. Thanks, J