[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260121-b4-rfd77402_v5-v6-4-5b944d0605dd@gmail.com>
Date: Wed, 21 Jan 2026 02:05:44 +0530
From: Shrikant Raskar via B4 Relay <devnull+raskar.shree97.gmail.com@...nel.org>
To: Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>
Cc: skhan@...uxfoundation.org, david.hunter.linux@...il.com,
raskar.shree97@...il.com, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v6 4/5] iio: proximity: rfd77402: Document device private
data structure
From: Shrikant Raskar <raskar.shree97@...il.com>
Add kernel-doc style comments for struct rfd77402_data to describe
the purpose of each member.
Signed-off-by: Shrikant Raskar <raskar.shree97@...il.com>
---
drivers/iio/proximity/rfd77402.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/proximity/rfd77402.c b/drivers/iio/proximity/rfd77402.c
index fce85f783ab4..dd57156a7859 100644
--- a/drivers/iio/proximity/rfd77402.c
+++ b/drivers/iio/proximity/rfd77402.c
@@ -77,9 +77,13 @@ static const struct {
{RFD77402_HFCFG_3, 0x45d4},
};
+/**
+ * struct rfd77402_data - device-specific data for the RFD77402 sensor
+ * @client: I2C client handle
+ * @lock: mutex to serialize sensor reads
+ */
struct rfd77402_data {
struct i2c_client *client;
- /* Serialize reads from the sensor */
struct mutex lock;
};
--
2.43.0
Powered by blists - more mailing lists