Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2919442rdd; Sat, 13 Jan 2024 07:16:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMEEsslE7sVRNE3E6VoDonpEbLGZCInkgc0+U8lfqZnauXqkKOkfHp30B2Oo0CPMOQz6CS X-Received: by 2002:a17:903:2444:b0:1d4:bd65:a83 with SMTP id l4-20020a170903244400b001d4bd650a83mr1829996pls.44.1705158964939; Sat, 13 Jan 2024 07:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705158964; cv=none; d=google.com; s=arc-20160816; b=R3Y9GKHzGgLF4b/jQwly9JbYlHXsMKWk6ZfoSagjXiQkDpEXsSzR1yepr1Ohl//iDI Phvax073V/2Rl08quUnCojFghE7n5q/lOvwEoPWDCyXWH8RKUB9aJZggytyUsV7rl5FP K6QuGukZN3sVZw2flUUIXHQ7YK/LrCFcdEeMyC8X4VnKo8LtDE27DtDpC89akGpNsVTL Eu0qFP0Xa84BIFv4Ce08EyrAfM9bf2mImJangvU3/Tivse9u7H8+hVBlPwS8KLkE2HMH AcZOlZUZEtCc7lK8ydC0Ob9JjQnaBxEgBR96ZstLUj62i1FYHnCJ9XS/him/se7QkVSS ofag== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=vkkWtHoLalKUh9tjMmbqzi+l0sJ8rRqk05imLv94Brw=; fh=FZQTVM2qXAXwxMECZp4RIUaQSK+eApmhl+kTCLgGvtY=; b=vQxwbdRBZijbd40/wGhCwk2QZuFHABNzSvWcLHPhX5718/UuZUnE2WJR9mf564aP2F HmUt1+4oR2a8rIkIc3jWIPSIc9ydReb1XGVPWT0Z5BfyC3qGZ+g3QQ8zAvPKJTMk4ZTN MFAglIDmfF3Q6krl6aUmNxhmMHh+Uz1xkox6t1Ks+X9XJDWvh5Ay2gxuyZXgQ96T4FGg DXXai3lkaZLcyxUI0BxRrCUED9KRUD/rWpEf08+xXnJHotC/wG0ef+iZrdniveHbdzu5 I/JL7cMNIuH4//Xbq4UR32CtH0uMwLw1P6cIOK/AgWRm55A0vW0tNlrLPykj2fnoyaU6 jNBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hbhhtt8o; spf=pass (google.com: domain of linux-kernel+bounces-25317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l1-20020a170902d04100b001d5121f2bd6si5293337pll.525.2024.01.13.07.16.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 07:16:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hbhhtt8o; spf=pass (google.com: domain of linux-kernel+bounces-25317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9E251283EA8 for ; Sat, 13 Jan 2024 15:16:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2189E1C16; Sat, 13 Jan 2024 15:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Hbhhtt8o" 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 4BDCE136A; Sat, 13 Jan 2024 15:15:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B0D8C433C7; Sat, 13 Jan 2024 15:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705158955; bh=gi7MLkfj49jWwmlYtMReK8oYZtLf7aFm+9eg8JZZ/6o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Hbhhtt8oHn9r0LCm2XOzjNQWqZk4/PVY9xB40qPCKV7qVzcuYngvfOro+l0fQP84i OPos3yjOpeQRI0LwVE6AFGOVRDdLa2/78xWsB80esbUh2eFbMDoATl5x3L+XpECcle /FOVvyW3JF4ff2VF9J88a3FEbKRYEsu4HDW6TIL+gptWHiyoQeoDr9ZDMo9kqfMs1F o0joNQQaLbXTAetjOQ/dzt3X4GglBjXBmAwSRbGl4hYN2p7ChqFSiNfmeLcMBLKplD v1KofWhaEGp7Ls/p6geWQLb1Uq6zBXyymaVtYYS8+4qd1cW73q4XkK1Aipf5ckHt0e A3O7uPM+rahfg== Date: Sat, 13 Jan 2024 15:15:49 +0000 From: Jonathan Cameron To: Christian Eggers Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Javier Carrasco , , , Subject: Re: [PATCH v2 3/3] iio: light: as73211: add support for as7331 Message-ID: <20240113151549.2be0463e@jic23-huawei> In-Reply-To: <4555448.LvFx2qVVIh@n95hx1g2> References: <20240103-as7331-v2-0-6f0ad05e0482@gmail.com> <20240103-as7331-v2-3-6f0ad05e0482@gmail.com> <4555448.LvFx2qVVIh@n95hx1g2> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; 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=US-ASCII Content-Transfer-Encoding: 7bit > > +struct as73211_data; > > + > > +/** > > + * struct spec_dev_data - device-specific data > > + * @intensity_scale: Function to retrieve intensity scale values. > > + * @channel: Device channels. > > + * @num_channels: Number of channels of the device. > > + */ > > +struct spec_dev_data { > > I would call it as73211_spec_dev_data (is the C++ One Definition Rule relevant for > the kernel?) > > > + int (*intensity_scale)(struct as73211_data *data, int chan, int *val, int *val2); > > + struct iio_chan_spec const *channel; > s/channel/channels/ > > > + int num_channels; > > +}; Both good suggestions so I've applied them both and pushed out a new version of the togreg tree. Thanks, Jonathan