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 796F12045AD for ; Thu, 1 May 2025 15:50:14 +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=1746114614; cv=none; b=kvYfKONJ+9ff8v48db9aE7q0RZgEjqEyuDfXRzpFxiGd3RLsAl5MaFeBTnqw98txGl9pgZ2TAYzI5Vfv/HvJIGZuLpelYOROBGk+ukvYHGedDNeQOl7ay09aU2uqI42Nk165zqZaSsXh9nDOeX8CA9qaUZoFx67ZUnfrrAhRaSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746114614; c=relaxed/simple; bh=7wDj81pboo01C80mpjW4dtpPvUMTnmpl1FfThJ0M7fA=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=APCBblw2TeldJ222AHEE4jT1BSqcZTUixTLmCs409dwo6/yq7qi4UH257q65tfgW/87wk1521ftzKdKXmFj7ktKcKqVkV8snYMLQLzVfu38EtJIjy89ne4G3NlWpw8o9fs/JwR73/hO/hfkHCK2RhTbFPHtANJdsnMXEWAtnxgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=METNBgXk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="METNBgXk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9AF5C4CEEE; Thu, 1 May 2025 15:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746114614; bh=7wDj81pboo01C80mpjW4dtpPvUMTnmpl1FfThJ0M7fA=; h=Subject:To:From:Date:From; b=METNBgXkaDkVfM2UMM0zKmuHXTjG4UCMabQFg54iFa8vIHlfhLmqvx0IS9N8D/7qD cuVh3aF+lLu6l9R6qEg/yNRMVBVXhwm9eemvU2M/5RC5ECHjsiPzjLL4haiIXhg5HT DT2PrkYoXnJfUfnyFFEF0RKF7Tj4/UmqHp0OqMC0= Subject: patch "iio: pressure: mprls0025pa: use aligned_s64 for timestamp" added to char-misc-linus To: dlechner@baylibre.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org From: Date: Thu, 01 May 2025 17:49:02 +0200 Message-ID: <2025050102-makeover-denial-f027@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: pressure: mprls0025pa: use aligned_s64 for timestamp to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From ffcd19e9f4cca0c8f9e23e88f968711acefbb37b Mon Sep 17 00:00:00 2001 From: David Lechner Date: Fri, 18 Apr 2025 11:17:14 -0500 Subject: iio: pressure: mprls0025pa: use aligned_s64 for timestamp Follow the pattern of other drivers and use aligned_s64 for the timestamp. This will ensure the struct itself it also 8-byte aligned. While touching this, convert struct mpr_chan to an anonymous struct to consolidate the code a bit to make it easier for future readers. Fixes: 713337d9143e ("iio: pressure: Honeywell mprls0025pa pressure sensor") Signed-off-by: David Lechner Link: https://patch.msgid.link/20250418-iio-more-timestamp-alignment-v2-2-d6a5d2b1c9fe@baylibre.com Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/pressure/mprls0025pa.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/iio/pressure/mprls0025pa.h b/drivers/iio/pressure/mprls0025pa.h index 9d5c30afa9d6..d62a018eaff3 100644 --- a/drivers/iio/pressure/mprls0025pa.h +++ b/drivers/iio/pressure/mprls0025pa.h @@ -34,16 +34,6 @@ struct iio_dev; struct mpr_data; struct mpr_ops; -/** - * struct mpr_chan - * @pres: pressure value - * @ts: timestamp - */ -struct mpr_chan { - s32 pres; - s64 ts; -}; - enum mpr_func_id { MPR_FUNCTION_A, MPR_FUNCTION_B, @@ -69,6 +59,8 @@ enum mpr_func_id { * reading in a loop until data is ready * @completion: handshake from irq to read * @chan: channel values for buffered mode + * @chan.pres: pressure value + * @chan.ts: timestamp * @buffer: raw conversion data */ struct mpr_data { @@ -87,7 +79,10 @@ struct mpr_data { struct gpio_desc *gpiod_reset; int irq; struct completion completion; - struct mpr_chan chan; + struct { + s32 pres; + aligned_s64 ts; + } chan; u8 buffer[MPR_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN); }; -- 2.49.0