Skip to contentSkip to conversation

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

PATCH In review Jonathan Cameron 2 participants 2 messages Apr 10, 2022 – Apr 11, 2022 IIO

lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

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

From: Jonathan Cameron <[email protected]>

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.

---
 drivers/iio/accel/mma8452.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/mma8452.c +1 -0
index 9c02c681c84c..912a447e6310 100644
@@ -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
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw

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:

Regards,

Hans