Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp197211lqt; Mon, 18 Mar 2024 05:41:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnLd39M7xH4qOMZY1dHU1Gq4+cmZzMwJrpw4WWZr//xPlZG1BdxhPq0tFIGisT5OsrrD/7b42xL2i549qnqSJol/jYbil3ZbNyNl8srQ== X-Google-Smtp-Source: AGHT+IFlCCyD45/djK79vpUC+oOXv7/ohS3SPCfdbVqKO7nqG2wfKLSLiNsJ0veCy1m7/+Bdgl/a X-Received: by 2002:a05:6402:50d0:b0:568:d55c:1bb3 with SMTP id h16-20020a05640250d000b00568d55c1bb3mr2451559edb.31.1710765681631; Mon, 18 Mar 2024 05:41:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710765681; cv=pass; d=google.com; s=arc-20160816; b=pcTqq6N8PpetXbL7zmHDu/ipBjT3fapTVLC82mEO3gK9NKCtVN8/LWEBBl/vQK9cQl HxAMVAxHTe5J/8DukMto+4R/JU1oU/hQLmg6YujE+zYCDnB1JvDg+oOxwqgGJQ5gQcTV S06w2/HYZx6Z4hFsM2D0K25tbWXsIPRBYLmTiQYUiU7S1y3D6ZN17yGE8vTS5NT9+00Q 8pdmYWs3nWvCAZIwALhUKIhsaRQGPCwInHUyUhANh+YNV9RorXxdqbgGWP0WMKB9HyKL Ff5mlbcPAW1DE42KhwuW33TlUTjWavFysQPo0byg8nUevs7a2kVd7N57OSio2a3xI6x/ FRHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=3MnC+xQmbfofV6MvsXSERaVP/IcVOh3i1joRh0wZ3vw=; fh=Fef2ioWWBXemFSm7Wf7g4GoMn4Nxy+0jie7lEBYEREc=; b=nBfxJMZJwe56xwZgdhkU8Pkfx7WUaKn+6KMhA2bN4i4/kZWvkMGriWUOGj9nSoGDZ0 NTtKXRwHsqmE5IR7dxvoz5cXfYEWtt2YvH3/s0Zg7axngvIOVK0io04abLVNFdD6HSSr CRSDZmGQBelq1KOrm5yUVQrGH6CW0Q+zYBu63Gvq++X/bDLCouEylXSJypvUwz8xQUYa CQvUnFPgROr068VG8tewHJbldKZatUHmPYvlt0Z5h4djxZ5Dr1JGC5paoz4ySzB24bVE BPIrYHUajQhCP/0lNLyZfgUHw4TmRjf3LxcEUe9uYAW6WfrGbfUAx9hgVBAyq74CN/td mYrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-106126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f18-20020a056402355200b00568bbe0309fsi2536164edd.129.2024.03.18.05.41.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 05:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-106126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 54C791F23196 for ; Mon, 18 Mar 2024 12:41:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BF0D36AE0; Mon, 18 Mar 2024 12:41:12 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 96BAF208CA; Mon, 18 Mar 2024 12:41:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710765672; cv=none; b=TlUNxmvS9dIvBW1oTZLgqjPZRe9ovjsM4coCj+/QjAwptOauSrG2lC3RDpIBrs/DPHkBsNiM7xUazHlUf8lnyJ5KoAAeVLWa4hRzGi47dQiuzhGizQs0rd2Aid239GCTc78/3q9OgpUA7VrU3nBKABzOsr1Z5ZBcWaMqvvy7RqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710765672; c=relaxed/simple; bh=hbCWsyyyVc2IxKC9ULbhavy+FEcr/XWMY4tqRuI8NbM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FeToIy0gel4O/fEEFX1CXs72QzPP3A5U8L0MUW2BJmLXHz+rKFmHr83L0I2p8Jo+E1NyC+qFQsVvP5LDwlImmfWjssQ2YGocpiuqmyQ1ereMcaclhuTQxi9xjRJIf4ytxHUV5mwBj2wTOW0woSAqfXz2Kqe1habkg/5M6hCYGsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TyvbD1T1pz6K6ST; Mon, 18 Mar 2024 20:40:40 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id D5A75141D1E; Mon, 18 Mar 2024 20:41:05 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 18 Mar 2024 12:40:42 +0000 Date: Mon, 18 Mar 2024 12:40:41 +0000 From: Jonathan Cameron To: Andy Shevchenko CC: David Lechner , Jonathan Cameron , Michael Hennerich , Nuno =?ISO-8859-1?Q?S=E1?= , , Subject: Re: [PATCH v2] iio: adc: ad7944: Add support for "3-wire mode" Message-ID: <20240318124041.0000032d@Huawei.com> In-Reply-To: References: <20240314-mainline-ad7944-3-wire-mode-v2-1-d469da0705d2@baylibre.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) 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="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) > > > struct ad7944_adc { > > struct spi_device *spi; > > + enum ad7944_spi_mode spi_mode; > > /* Chip-specific timing specifications. */ > > const struct ad7944_timing_spec *timing_spec; > > /* GPIO connected to CNV pin. */ > > @@ -58,6 +75,9 @@ struct ad7944_adc { > > } sample __aligned(IIO_DMA_MINALIGN); > > }; > > Have you run `pahole` to see if there is a better place for a new member? I know this matters for structures where we see lots of them, but do we actually care for one offs? Whilst it doesn't matter here I'd focus much more on readability and like parameter grouping for cases like this than wasting a few bytes. Jonathan