Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796551416; b=Wy/XNHZdNqB3I566NNonHQGqhMHI57f3I4V8G/WaKZCDVYNNQtDcYx+961wIBGXuZiYU pPRFA7olNNLdqJHc2IkyQKUCNUMU7iOsmJqDNhKBTbAy0lLp4JwjKtBszd2gJhUlXdRFo 5012VxUbp3JfjwtHCKa8SnNbKCEp3xZuyEdTaKVuHmNUAxGHBP35g6owN19g4eXyJRZxp Er/WdnJkpCVDG9KIagY72G5flpjTkmXeQ8l3UbFwo00EhuP8LmI1X+Tye/reu3Q2Rit2V N//yP1ILqUE+zHNeKF+GIu8kiFvmqPo7oeZs9V33XFirjhEKKBLasV6A14y5VFneFFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796551416; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=aEnerKZoB4+rttsiEXpW6GUP/g8RiBEx76n26IS5rS4=; b=U4ZM2uO0S3tLGE3EW8FahnJyJs19lZKHObwCMSTUE1uhayQ0qCd6c6HFcnkn9Ih6Do6H hs7SFO7IAD9p27nc5hf1yYWGgPVPauGtK6CaL7pcTjLVCWa4JZwoZfbeauRfthKSIFZwG Zj6kJFXq1nJDkpTn1VtkwkHgTI4y+KNc9yCZ9HWFQUWkZPnn7+nLUGfSIySdsOO62+lbR 7pwFMDT+gisf1UUUzYIZ+NSqIL99qC03UgYRfSn+h6RlTIm94it1qvpV1iVXkHU6YIuHp LF1RtIoLaeaepGuOsVvSfUe/n41GCa5EnIjM5u24wQjIjnlYZjmQvBRpIVeYqNwTO0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=g1u5N2m7; arc=none smtp.remote-ip=209.85.167.50 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6DD0606A330 for ; Sun, 6 Dec 2026 10:03:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E6DD0606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=g1u5N2m7 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5be4fea434bso3170158e87.1 for ; Sun, 06 Dec 2026 02:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796551414; x=1797156214; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aEnerKZoB4+rttsiEXpW6GUP/g8RiBEx76n26IS5rS4=; b=g1u5N2m7cANYbRugFpZmf3wje0ZqZm6RRKef82zv//xyxOVYuJWrbnBaCvX100/WV6 k0GpBu0AREKu8Jrl79+Q/C+VpYzD19a5sOY/D3pJ/5xzAlMVnuY8uFvjS3A7uzb1zEp8 mTb+SsEFZRr4LWd6nSa5fXuzNm0uxXxoafPggTwNfci4bDJFBltqUs3poIz454dtSuiI gAppthAawLS2b9Bw0bnvHRIpcN0svDrVZez1bXyS/vdB7kbYZmniD67ccdgN0dxjqMfP 5gIpzlTfZMdVdZ6VUfhakpNo3xIVVWtWeZHshUHyc5msqSVBO/n8NMGUnHdsS2aEkAjT dLgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796551414; x=1797156214; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aEnerKZoB4+rttsiEXpW6GUP/g8RiBEx76n26IS5rS4=; b=BiQoSnKJZM5JiW5TjFuAF4NuV2kARZkWiFKDSEVZ89IGVkgdMYBvhpATBaa7Lmoj8E AzmDqUtB/ocSjDuQ3DUnAT02UI+c/YIyNIF+nJfEnJSVDCPpISPWhC3JylyjwdgCr5qu nNIA67wU8wRlx3HezVBDaIbD+H0YoIXU2PyaU/xOUOi2HBFKBBpplDZ0cYTEswSw5sId aygt1xUITlmBHy/ZutYZfj6f6awteYWa4UKsPuOGShyJ+pHAJEtplvHdBehDOxPAWQ+F smFlTlyduCi/KpBQs2Kjdrt2DYXN4Rp0VseZreK0IPo5gy46IXFDR3I/xHsxuZaKh+V6 fgLg== X-Forwarded-Encrypted: i=1; AL+hErFkTOk5+SskAOOc3VezKQC9UWIg4kVVFvl3xVVBunJujND2BKO+8DUVEjdZAFj5jvMO2qenkO2ju44=@vger.kernel.org X-Gm-Message-State: AB4q+uGn1kyaMMk+U2yjZ3kj/1zKLbTUF6NxIRj5DKVw/b7fSTe4HBkD WlOyTtKj0IYNlkx9KLTFxshB8RPlB4NQSgAfYMyb+ehAq/GRpbcw/1MO X-Gm-Gg: AZFdTZcBRYOfc2djPYJ8iJo/3vvi7CJFydS+G1vW1C8w/8ifvAsAyw7D1nxVedK9tFN neBYGj0NL7mcdWzGCJXOddxL8whLRcDeRHixoO227wRoAvcJcUZxbkPqFIVcvHFKt7+hWObElBr ftHQkg61Ed6hP6xYGvX7nt0gGnoIhgK5weSrR6iFL4HNJVE0zszm6g1/sHJ+RIAjwAjMiEUv5Am zQJnGaZZEgSXMKMMdpqebR/O8z57AL6XyjVUnNl5cX6cNQrvNfKMTan+k7C3Nrlg+0/QRNYiQah jxKahOulB2Ti/ya95nZbjg1ozCGsqpLDRRpuoHKxlrVRrCw0obAmuX8rP1scw4tEjICqbIgKpTh /QhTapm0xXtQGNK+evHH+WCrL2hji9pFSBS1LRV9sGbsZKWsRYLLJQsjvOqYbWBwETBzBnNqgc/ eY2XTbCxL6jaW+5mQt9eUkdVfGjUPAYJJ61EgpFcwwsH3XjGEd5RYShOMqVOkTXC9NMYIKBeUsg TR2tf7GcKBsiLuFbZkn76iuUIf7Ib95HrlqEv8yk3IwnjCxoW5TdSAkcpFp6vT9yIzFWjpCiPDM jhnBI/v0q8iTvjue03B3odOncVavL6VWDO20jwSMWP4BPpps+rk3hxSeLbr85cbsQ53PUbi206t 4b3x5Matq4T0PExyD3g== X-Received: by 2002:a05:6512:3e1c:b0:5c1:4ede:6fcb with SMTP id 2adb3069b0e04-5c38616b8damr1537642e87.8.1796551413880; Sun, 06 Dec 2026 02:03:33 -0800 (PST) Received: from yantra.. (91-159-24-23.elisa-laajakaista.fi. [91.159.24.23]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c3849a69fbsm2223243e87.10.2026.12.06.02.03.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2026 02:03:32 -0800 (PST) From: Rupesh Majhi To: Andy Shevchenko , Antoniu Miclaus , David Lechner , Eddie James , Jonathan Cameron , Jonathan Corbet , Lucas Stankus , Marcelo Schmitt , Michael Hennerich , =?UTF-8?q?Nuno=20S=C3=A1?= , Petre Rodan , Randy Dunlap , Shuah Khan Cc: linux@analog.com, linux-doc@vger.kernel.org, linux-iio@vger.kernel.org, Rupesh Majhi , Andy Shevchenko , crofts@kernel.org Subject: [PATCH v4 1/7] iio: core: move iio_get_debugfs_dentry() kernel-doc to the C file Date: Sun, 6 Dec 2026 12:03:20 +0200 Message-ID: <20261206100326.45569-2-zoone.rupert@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261206100326.45569-1-zoone.rupert@gmail.com> References: <20261206100326.45569-1-zoone.rupert@gmail.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The kernel-doc of iio_get_debugfs_dentry() is in iio.h, above the CONFIG_DEBUG_FS ifdef. Move it next to the function in industrialio-debugfs.c. That file is not in the generated documentation, so add it to core.rst to keep the function there. Suggested-by: Andy Shevchenko Signed-off-by: Rupesh Majhi --- htmldocs: the function is in driver-api/iio/core.html before and after, with the same text. The page does not depend on CONFIG_DEBUG_FS. Cc: crofts@kernel.org Documentation/driver-api/iio/core.rst | 2 ++ drivers/iio/industrialio-debugfs.c | 5 +++++ include/linux/iio/iio.h | 4 ---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/driver-api/iio/core.rst b/Documentation/driver-api/iio/core.rst index 42b580fb2989..02229605531f 100644 --- a/Documentation/driver-api/iio/core.rst +++ b/Documentation/driver-api/iio/core.rst @@ -180,3 +180,5 @@ More details .. kernel-doc:: include/linux/iio/iio.h .. kernel-doc:: drivers/iio/industrialio-core.c :export: +.. kernel-doc:: drivers/iio/industrialio-debugfs.c + :export: diff --git a/drivers/iio/industrialio-debugfs.c b/drivers/iio/industrialio-debugfs.c index a8a3c7a3e85d..a331a7c6f8da 100644 --- a/drivers/iio/industrialio-debugfs.c +++ b/drivers/iio/industrialio-debugfs.c @@ -25,6 +25,11 @@ static struct dentry *iio_debugfs_dentry; * There's also a CONFIG_DEBUG_FS guard in include/linux/iio/iio.h for * iio_get_debugfs_dentry() to make it inline if CONFIG_DEBUG_FS is undefined */ + +/** + * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry + * @indio_dev: IIO device structure for device + */ struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev) { struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev); diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 8b3fd7673293..5104392cce38 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h @@ -1000,10 +1000,6 @@ __printf(3, 4) struct iio_trigger *__devm_iio_trigger_alloc(struct device *parent, struct module *this_mod, const char *fmt, ...); -/** - * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry - * @indio_dev: IIO device structure for device - **/ #if defined(CONFIG_DEBUG_FS) struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev); #else -- 2.43.0