Re: [PATCH v6 4/5] iio: proximity: rfd77402: Document device private data structure
From: Andy Shevchenko
Date: Wed Jan 21 2026 - 04:30:24 EST
On Wed, Jan 21, 2026 at 02:05:44AM +0530, Shrikant Raskar via B4 Relay wrote:
> Add kernel-doc style comments for struct rfd77402_data to describe
> the purpose of each member.
Assuming checkpatch.pl doesn't complain (see below why),
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
...
> +/**
> + * 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 */
Not sure if this can be removed due to some checkpatch checks.
Have you run it to verify?
> struct mutex lock;
> };
--
With Best Regards,
Andy Shevchenko