Skip to content

Commit 53516b6

Browse files
embedded-essentialsjic23
authored andcommitted
iio: proximity: rfd77402: Document device private data structure
Add kernel-doc style comments for struct rfd77402_data to describe the purpose of each member. Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent dff4bdf commit 53516b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/iio/proximity/rfd77402.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ static const struct {
7777
{RFD77402_HFCFG_3, 0x45d4},
7878
};
7979

80+
/**
81+
* struct rfd77402_data - device-specific data for the RFD77402 sensor
82+
* @client: I2C client handle
83+
* @lock: mutex to serialize sensor reads
84+
*/
8085
struct rfd77402_data {
8186
struct i2c_client *client;
82-
/* Serialize reads from the sensor */
8387
struct mutex lock;
8488
};
8589

0 commit comments

Comments
 (0)