Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp60307rdb; Thu, 21 Dec 2023 02:50:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9e1Leup0Z63tcNk/AtE2zBaO9381dEPXcdIIujr23KqGjfMT55TtZC6SZFMedhKjXJTAA X-Received: by 2002:a05:620a:1a08:b0:77f:496:7c97 with SMTP id bk8-20020a05620a1a0800b0077f04967c97mr28691881qkb.119.1703155815219; Thu, 21 Dec 2023 02:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703155815; cv=none; d=google.com; s=arc-20160816; b=k0EMsxhv0vQSzKXEzw/p8sYj2t5savruI/SfP8Q3CzUG61HbVXl5davjkTB1u8tOyp 99O8NGePKo83kU2q9pztdMYnOBTr9qU0XfK4zW6E1y2sjKWmZEW+NK+3PlZz+GEX9hx/ lcNN4/O7NiZYb7qq6lMseQL9sqknFtSxl967pxbD6ja4fSFl309PxOBYuRpfkFjjPvOY dPOBXJ7DPQkx6sxhMY2lb9wuJ47xNnwtlDZq82obvWj1ACP6G7sxO6Djxagt1QSXqW2R ezIO1wgTIjLRvGLBHJMgvNHOZZ1438HmApNOQBH07L2hqi3syoqemW549ryxsJq//HsU dwWA== 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=uGEynLJ13lQGbP64gILhX+5+t4AKG7f4ayU8nbcihuI=; fh=hds5/xKMMI5Gt6aamAPIYoJfzDu/w38KLk7GGTB+wdI=; b=kFm/OhUlHtCMsuFMjnjtKuadBeWVPtJfV63jHKnwgZybISULquFIiCbQ+cEjr5ehyg C+wsZ19RulKo56wnrqE33KQYOOVczp68eGw+CU6EnPYDT1LnDAPdhD31jpfZU9qYCylu FmzNSEfX/FZyGi+1FJFXhJ6RvzuAoIVvKpNq6XvB/U/pcEXSAWmk3fPEUyphmBXPPpIY YcuEp99m27BZP45UuSBOwG7FkVYWB4ZFoawad5//wEEnckf9AY9wLPbltgVbSNBMHJPm J8qZ13HTrZ43jWnmPat2go2yGJIqi5HN0M0k4lG4KQCYTn9Oj7Zoq7SpBFmj5SmQP0fr jNcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnRhr4mf; spf=pass (google.com: domain of linux-kernel+bounces-8242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id qs17-20020a05620a395100b007810ca77e71si2024732qkn.539.2023.12.21.02.50.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:50:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnRhr4mf; spf=pass (google.com: domain of linux-kernel+bounces-8242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8242-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EECF61C2454A for ; Thu, 21 Dec 2023 10:50:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0675E6BB34; Thu, 21 Dec 2023 10:49:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jnRhr4mf" X-Original-To: linux-kernel@vger.kernel.org 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 2EE4F6979B; Thu, 21 Dec 2023 10:49:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C15DC433C7; Thu, 21 Dec 2023 10:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703155793; bh=VBUvj5yamNCjbS7Ufz44ltWWNJCZRuRqgGoz+FefXwg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jnRhr4mf7h4Bw3N/PZQ+i5o80xVfCisdmwET/pyaSalcUrpIhu0TyySt8Mw1g29V/ 2D2MSAE6bxaz7wldi2gCB3+g/ibg1yIGtAnSwNAvHv/fIHPOTjpVUXsSJ9mnY6A0ue 21+Phn7ToZunqe6Bsw5dpiWToypWat4VMMgB5xhT3gypwwmO7dWPzfErO5I2W5dNuu R9MlJmyBMJuuqLatWd1BoALFPQBF+YauGmC4VHdLjqoPFHv5hjZNYmoTzmJKuWwWVs if++SqppcI8V2st7tUqHZSjzcwaKcsgCiFINufRsp0pkCzGooHTB3EgoXhbIg1e2eX Pqvg0OW5PSkyg== Date: Thu, 21 Dec 2023 10:49:40 +0000 From: Jonathan Cameron To: Christophe JAILLET Cc: Lars-Peter Clausen , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0 Message-ID: <20231221104940.7e9d7b0f@jic23-huawei> In-Reply-To: <1d17f57423172fcb9d9797cfe7c8282f356049c2.1702831285.git.christophe.jaillet@wanadoo.fr> References: <1d17f57423172fcb9d9797cfe7c8282f356049c2.1702831285.git.christophe.jaillet@wanadoo.fr> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; 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 On Sun, 17 Dec 2023 17:41:45 +0100 Christophe JAILLET wrote: > Use an explicit IIO_SEPARATE instead of 0 for the 'shared_by' parameter > when calling __iio_add_chan_devattr(). > > For some reason, commit 3704432fb1fd ("iio: refactor info mask and ext_info > attribute creation.") updated only 1 place out of 4. > Update the remaining ones now. > > Signed-off-by: Christophe JAILLET Makes sense Applied to the togreg branch of iio.git. It's fairly unlikely I'll get another pull request out unless the final 6.7 release isn't until after the new year for some reason. As such, this is probably now 6.9 material Thanks, Jonathan > --- > drivers/iio/industrialio-buffer.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c > index 09c41e9ccf87..b581a7e80566 100644 > --- a/drivers/iio/industrialio-buffer.c > +++ b/drivers/iio/industrialio-buffer.c > @@ -616,7 +616,7 @@ static int iio_buffer_add_channel_sysfs(struct iio_dev *indio_dev, > &iio_show_fixed_type, > NULL, > 0, > - 0, > + IIO_SEPARATE, > &indio_dev->dev, > buffer, > &buffer->buffer_attr_list); > @@ -629,7 +629,7 @@ static int iio_buffer_add_channel_sysfs(struct iio_dev *indio_dev, > &iio_scan_el_show, > &iio_scan_el_store, > chan->scan_index, > - 0, > + IIO_SEPARATE, > &indio_dev->dev, > buffer, > &buffer->buffer_attr_list); > @@ -639,7 +639,7 @@ static int iio_buffer_add_channel_sysfs(struct iio_dev *indio_dev, > &iio_scan_el_ts_show, > &iio_scan_el_ts_store, > chan->scan_index, > - 0, > + IIO_SEPARATE, > &indio_dev->dev, > buffer, > &buffer->buffer_attr_list);