diff mbox series

iio: accel: mma8452: Add missing documentation for name element of chip_info

Message ID 20220410153317.290896-1-jic23@kernel.org (mailing list archive)
State Accepted
Headers show
Series iio: accel: mma8452: Add missing documentation for name element of chip_info | expand

Commit Message

Jonathan Cameron April 10, 2022, 3:33 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Documentation needed to avoid build warning with W=1 builds. It doesn't
really add any non obvious information but good to have it anyway.

No fixes tag as not worth backporting onto the fix that added the name
element to the structure.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Hans de Goede <hdegoede@redhat.com>
---
 drivers/iio/accel/mma8452.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Hans de Goede April 11, 2022, 7:41 a.m. UTC | #1
Hi,

For some reason your email is seen by my thunderbird as haivng an empty body +
a nameless attachment with the patch... ?

So no quote of the patch here.

With that said, thank you for the patch and the patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans
diff mbox series

Patch

diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
index 9c02c681c84c..912a447e6310 100644
--- a/drivers/iio/accel/mma8452.c
+++ b/drivers/iio/accel/mma8452.c
@@ -166,6 +166,7 @@  static const struct mma8452_event_regs trans_ev_regs = {
 
 /**
  * struct mma_chip_info - chip specific data
+ * @name:			part number of device reported via 'name' attr
  * @chip_id:			WHO_AM_I register's value
  * @channels:			struct iio_chan_spec matching the device's
  *				capabilities