From patchwork Tue Aug 15 15:40:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 714229 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8230FC41513 for ; Tue, 15 Aug 2023 15:42:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238162AbjHOPla (ORCPT ); Tue, 15 Aug 2023 11:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238172AbjHOPlT (ORCPT ); Tue, 15 Aug 2023 11:41:19 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14B7E61; Tue, 15 Aug 2023 08:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692114078; x=1723650078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hW6WKgj1nITaNcnYYuF7AScms9zSUoubrx1m0DkRHyI=; b=nP95Q/If2LAqN/7hNervLLp+9H7KIvBr4HGkA7dhFtMwa1qszMfhfVg7 7wz6gDIZyL1yjZBI+LLEvUJKN0XmmYQxjlZavWuaybqGVshEXquX/Nbmd MHgdFZ8ZzSL88I/BXsA2d+AIgz1kU4aYq6SJWb4EL0aZOKAwRipq6zesQ uSi9kuLXG5VYjBD1wPM2Q4dJ+ai+yUBDWpgDdSNkWO3epbb9N0rhCBMRo zkmsjdedD3Q63nXDBb+KZBJ0hd0Z0p47RgYIDHYR7y7fQ9usCeoyuolAZ fUhLdXT+vzdACSSPjAE+DZn3r5E/mJzEEDDM+jNaHimuA3ig0lC9+T7xs Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="351896988" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="351896988" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 08:41:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="727406714" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="727406714" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 15 Aug 2023 08:41:13 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 69F67C51; Tue, 15 Aug 2023 18:41:12 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Jonathan Cameron , Lorenzo Bianconi , Philipp Jungkamp , Peter Zijlstra , linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , Lars-Peter Clausen Subject: [PATCH v1 2/3] iio: imu: st_lsm6dsx: Use aligned data type for timestamp Date: Tue, 15 Aug 2023 18:40:26 +0300 Message-Id: <20230815154027.12468-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230815154027.12468-1-andriy.shevchenko@linux.intel.com> References: <20230815154027.12468-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Use __aligned_s64 for the timestamp field. Signed-off-by: Andy Shevchenko --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h index c19237717e81..d3d4b3281aa6 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h @@ -442,10 +442,9 @@ struct st_lsm6dsx_hw { const struct st_lsm6dsx_settings *settings; struct iio_mount_matrix orientation; - /* Ensure natural alignment of buffer elements */ struct { __le16 channels[3]; - s64 ts __aligned(8); + __aligned_s64 ts; } scan[ST_LSM6DSX_ID_MAX]; };