Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1530407lqb; Sun, 26 May 2024 05:38:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQl6VMMXlJEGY+Wg4jwOZv6UowU2j3YI/SlXvUjDja7kxREethUKMiWQelZ8YPED/2CG56+KGHxzOwFcO14nftl6oWYq5/bf6TP6Pytg== X-Google-Smtp-Source: AGHT+IFf8fqtOb840/AX1njCnEXf2NGIa2aK9a19Y1fnIbOIY1q6HxYd7WwbaWo/5puOrL0B7zY3 X-Received: by 2002:a17:90b:364f:b0:2b0:e9bd:e794 with SMTP id 98e67ed59e1d1-2bf5bb4ec40mr10104289a91.19.1716727134894; Sun, 26 May 2024 05:38:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716727134; cv=pass; d=google.com; s=arc-20160816; b=xL9f0Kcyuxl1F2Hy5AUDDzb8Poh6VgS+l3ungqk58WuyHNUBhY8jFt0SKQX9loweSK xCz/QcpLaAn8fhp5DvHKlsyfktvxSvROXLmM4M6kZWq0g0uiuG6XZoo8X7e9clEZpyMG 7VSvf9CIxA2r0TnzprUzXoI8ARy+d9ffOPo2J8omM35INRrJXCXIdUNgfYj4ybZdE6Iy 99JSjlHlcMVCduCPbWJ8fMEeT29XtQwyM8OyBQ94stu3TmmMsLl9C+Cv0Oynjv+DkaW6 EENo7AK0yXCHKbazRBLnvD2WwRYoXzpB8T1D3E8n9jr2HmJFXRVwtNBsaGfSbhP4rxgI 7NIQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=BVfayu94JbeCS48JO4DrQSs+pc3Tg0xQWxiWfh5TJ7U=; fh=OlNk4yTUPK+x2ge/7NnYYDDY0UP12rdA9/pOWfMrUcg=; b=M7Fo9GqxF8ETHycH8HrLwmd14T7UPDgLHaFFI3Afx/DGfwKKrlN1aVwXHNsqf9d5k5 NJMrSmy/MZT02qRR9GIaeZvRdKr0z8hOJ+fE+GQYnOMWaqUw19TDRm4zuunpETU1ZAIM QTpoXvX6Pdbq9EyVk2fExRD+1DsXgGFtQUUfzYoyaqzQAZJEqJfRVNN7Lovm96rkpMIt Q5Z1gzQkALYsltIn/FcDxVAHMjflYqngKzLtun24EboQaiw/xEMUNNL27MqvXdMtrtx7 ZyLhWSk6yQUfInmTof+6nlJEJnIS1mu2ezGMQSgD/SRR3E/kuHCMzVhM9EzpMJcCwXkT 698w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEscVdFU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdda058105si5350782a91.153.2024.05.26.05.38.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 05:38:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEscVdFU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189736-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 89681B212A0 for ; Sun, 26 May 2024 12:38:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 473AAF9CF; Sun, 26 May 2024 12:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CEscVdFU" 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 5B318B676; Sun, 26 May 2024 12:38:38 +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=1716727118; cv=none; b=TSfI5NOEYTMDb9ahm9rW4OyZrmBe3QdBMMBc+k4LjBmjtB+IzOxOxlYgMMElzu4afXGqn0EzhHG1XSgO0ZWoaTpgslSLueXC8KS/mjyabn8QlBMguaQeXmG555LMaA8o1uqshWMT8beEQtkAK1AZGVgsqj/3RywPZFiVlgKpa7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716727118; c=relaxed/simple; bh=Vgc3HyTkBbyE1nomNcxxQDYP1xmBd93WDg0GRhyGgCo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pthYanqSIH5dDjJyyi5RhtZe4TU6n+5Wymld0+LmoVgLMEGe1R1woeUScZT/oPENJwFpj6GQvWopKDDWO8ePniT4gBhHkHUeZG5K9nKQPRueF+2A9bZ8HFE9sicCoZeevsiZdPWy2Hbp0GVq4B0oKUr8QF28ps9uF+qbph+ZC8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CEscVdFU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23ED3C2BD10; Sun, 26 May 2024 12:38:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716727117; bh=Vgc3HyTkBbyE1nomNcxxQDYP1xmBd93WDg0GRhyGgCo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CEscVdFUuUnXFhmBXey7WgbTvg+H/9sML8MVtL4dLtelbQhsts6H9zdbAD4BBXtVo iix36YUqcUCptf/LahGz9akQOyj7idHDzLvsFUx8eqfzb84AdHXE4+DMXfGod+U9v/ HT678QzyujW5ReyQJVb6sQMNI11Fv7LA0J8qbRbtw5ei5bBn37+JyT0ZH1XP2xyfi8 R8HwGppSeB7XwftRWmjWxnyYrfTjTXewTTi7Pf8P2JVstCEh4EpzxEL4lHkyig0kCx CL6dnJZThIjZWv9zSKLCZ3NO69TP+xvj9IFjdquje6EXAv8TPuQaEWaz2eEg6qSsdc kL3xXT154wKyw== Date: Sun, 26 May 2024 13:38:03 +0100 From: Jonathan Cameron To: Ramona Gradinariu Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh@kernel.org, nuno.sa@analog.com Subject: Re: [PATCH v4 04/10] iio: imu: adis_buffer: Add buffer setup API with buffer attributes Message-ID: <20240526133803.133cd866@jic23-huawei> In-Reply-To: <20240524090030.336427-5-ramona.bolboaca13@gmail.com> References: <20240524090030.336427-1-ramona.bolboaca13@gmail.com> <20240524090030.336427-5-ramona.bolboaca13@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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 > /** > - * devm_adis_setup_buffer_and_trigger() - Sets up buffer and trigger for > - * the managed adis device > + * devm_adis_setup_buffer_and_trigger_with_attrs() - Sets up buffer and trigger > + * for the managed adis device with buffer attributes. > * @adis: The adis device > * @indio_dev: The IIO device > - * @trigger_handler: Optional trigger handler, may be NULL. > + * @trigger_handler: Trigger handler: should handle the buffer readings. > + * @ops: Optional buffer setup functions, may be NULL. > + * @buffer_attrs: Extra buffer attributes. > * > * Returns 0 on success, a negative error code otherwise. > * > - * This function sets up the buffer and trigger for a adis devices. If > - * 'trigger_handler' is NULL the default trigger handler will be used. The > - * default trigger handler will simply read the registers assigned to the > - * currently active channels. > + * This function sets up the buffer (with buffer setup functions and extra > + * buffer attributes) and trigger for a adis devices with buffer attributes. > */ > int > -devm_adis_setup_buffer_and_trigger(struct adis *adis, struct iio_dev *indio_dev, > - irq_handler_t trigger_handler) > +devm_adis_setup_buffer_and_trigger_with_attrs(struct adis *adis, struct iio_dev *indio_dev, Trivial, but as you are doing a v5 anyway for Nuno's feedback please add a line break after adis, Whilst for the following lines readability would be hurt by breaking the lines that isn't true for this first line. > + irq_handler_t trigger_handler, > + const struct iio_buffer_setup_ops *ops, > + const struct iio_dev_attr **buffer_attrs) > {