Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp217471rdb; Sun, 17 Dec 2023 08:42:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2rmFPL7Rz+zl/oEA5V+Q0VCLvcRRmCqAke2eRbM1HM3UjsuVLwMbLXxV2TYB/b5CyCeXy X-Received: by 2002:a05:620a:839b:b0:77f:2f80:9a57 with SMTP id pb27-20020a05620a839b00b0077f2f809a57mr20375745qkn.35.1702831331776; Sun, 17 Dec 2023 08:42:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702831331; cv=none; d=google.com; s=arc-20160816; b=n5sK2kiZxXBSANE94XiZDO+2lsGa9AqGr7C7RNrLbE99gTYIpnsd1Riu6M+/De+72d 2ZEWr2dy4KnpVQAFg3mqzpO2PNhO4rASTsMJ84pXFSvvcMw48vFwu70/ixuaE5PmKzKM kSDPW0zNb9zs1tccTsptCn8qkyATXfxW+M4y5Ow487mAPKnTxgRWBOyCHAaVpkb7dUNC PWN1c4pezPvAuzQUVvJgwOnfEs7tmd0btS3O7xJ33sm5iu9J9kjj2rGbzfQbcS+owMbE LIQpgBGt9HlSUI/Mfi23FgdxE5b/H8YXRYfbl+wgzMWbHGX16P0sbKcAfiJ72ov14pGA rkXQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=qZLyEZlQ9TBd/oPoWGgLrvvH3X2lVDoFqEcZrhT5j2A=; fh=zVuETz7IiK6APjIzUJD6GUhZZgeE0uxVhnUgGGXpPC0=; b=w5y5/f6yrYYGpYsAh+97pN7EikhXmSzkDue54ygxJTLOYus1Hs0K6RSthA1JfidIo+ qNmYMU8Jo33D52Oru+XMLD7C42ZnKB4iwVsDyp9MbWc6W/qn6Ryt9pg8Qucoj1jLsik7 +Jfkgq74md2Rb544tsDb+F9RG+dDod/ZYlylLAtUi8q9+p1fffPekPeuXYt6fjBqFxgN a4M1Y6z0NVdooG94BQ9kpGJyY7PgzQIA0CPAcxLou7fUecEwjgr3SXxJ8LvqzofXSxSn /QEWBlRbERHlmesvDjqyqmz8VBGBPVS/gwGl5a8V+FwnY+flhxiMwNJ6htltbrVXZL92 JPgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=gFDR1Tel; spf=pass (google.com: domain of linux-kernel+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id az7-20020a05620a170700b0077f5a4b7453si21237330qkb.346.2023.12.17.08.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 08:42:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=gFDR1Tel; spf=pass (google.com: domain of linux-kernel+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr 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 6D9191C20D3E for ; Sun, 17 Dec 2023 16:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 932DB45C0B; Sun, 17 Dec 2023 16:42:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="gFDR1Tel" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.smtpout.orange.fr (smtp-19.smtpout.orange.fr [80.12.242.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81FF931A76 for ; Sun, 17 Dec 2023 16:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from pop-os.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id EuD7r5CEpltw6EuD7r5Vo4; Sun, 17 Dec 2023 17:41:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1702831310; bh=qZLyEZlQ9TBd/oPoWGgLrvvH3X2lVDoFqEcZrhT5j2A=; h=From:To:Cc:Subject:Date; b=gFDR1Tel9cmLkNoOvF6uv/bH4Pk7LxrArkaq3XmmGVtM15zEInb9n37wSfmPAYOQV kkXe8QLSKSs48gsIQy1BV+6nP+arP7eEaXtEoNFmP42juv51L9twrC1moOo6RUTRfs G6STODuIbU2+U/lV0bzujvYcUPLBZ3/7bqFIjZMlW0OQd+1fCQLCOPqDrThjr+CJe8 l4ic3virzVzwJIzHEy8b3h8e+ljqyy45u+pJeJk4Qft5anbsDIPwRGSMXd7yzJnYPx f94s2tiH0MlPTI5suTu6qPI6TjSQEjg9pp0usjpXhcYLAbilelK2Wm4gSI9YDWtgT4 rdjcyX9Ryfu3w== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 17 Dec 2023 17:41:50 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-iio@vger.kernel.org Subject: [PATCH] iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0 Date: Sun, 17 Dec 2023 17:41:45 +0100 Message-Id: <1d17f57423172fcb9d9797cfe7c8282f356049c2.1702831285.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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); -- 2.34.1