[PATCH v7 5/6] iio: proximity: rfd77402: Document device private data structure

From: Shrikant Raskar via B4 Relay

Date: Mon Jan 26 2026 - 14:35:02 EST


From: Shrikant Raskar <raskar.shree97@xxxxxxxxx>

Add kernel-doc style comments for struct rfd77402_data to describe
the purpose of each member.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Signed-off-by: Shrikant Raskar <raskar.shree97@xxxxxxxxx>
---
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 a374a7389c33..c29ae9af4a90 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