Skip to contentSkip to conversation

i2c: mediatek: Fix i2c_spec_values description

PATCH Applied Matthias Brugger 4 participants 5 messages Aug 6, 2020 – Aug 10, 2020

Subsystems (3)
lore
Share & tools
lore

Matthias Brugger

author maintainer
#0 lore raw

PATCH 1/1 i2c: mediatek: Fix i2c_spec_values description

The struct i2c_spec_values have it's members documented but is missing the starting '@', which leads to warings like:

drivers/i2c/busses/i2c-mt65xx.c:267: warning: Function parameter or member 'min_low_ns' not described in 'i2c_spec_values'

---
 drivers/i2c/busses/i2c-mt65xx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-mt65xx.c +4 -4
index e889f74703e4..f51b35fc400f 100644
@@ -253,10 +253,10 @@ struct mtk_i2c {
 
 /**
  * struct i2c_spec_values:
- * min_low_ns: min LOW period of the SCL clock
- * min_su_sta_ns: min set-up time for a repeated START condition
- * max_hd_dat_ns: max data hold time
- * min_su_dat_ns: min data set-up time
+ * @min_low_ns: min LOW period of the SCL clock
+ * @min_su_sta_ns: min set-up time for a repeated START condition
+ * @max_hd_dat_ns: max data hold time
+ * @min_su_dat_ns: min data set-up time
  */
 struct i2c_spec_values {
 	unsigned int min_low_ns;
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 16 lines · Matthias Brugger

The struct i2c_spec_values have it's members documented but is missing the starting '@', which leads to warings like:

drivers/i2c/busses/i2c-mt65xx.c:267: warning: Function parameter or member 'min_low_ns' not described in 'i2c_spec_values'

---
  drivers/i2c/busses/i2c-mt65xx.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-mt65xx.c +0 -0
index e889f74703e4..f51b35fc400f 100644

drivers/i2c/busses/i2c-mt65xx.c struct mtk_i2c { · line 256

Quoted 4 lines
drivers/i2c/busses/i2c-mt65xx.c +0 -1
@@ -253,10 +253,10 @@ struct mtk_i2c {
 
  /**
   * struct i2c_spec_values:
- * min_low_ns: min LOW period of the SCL clock

Can you help me add a description of min_high_ns. As @min_high_ns: min HIGH period of the SCL clock Thanks

drivers/i2c/busses/i2c-mt65xx.c struct mtk_i2c { · line 262

Quoted 10 lines
drivers/i2c/busses/i2c-mt65xx.c +4 -3
- * min_su_sta_ns: min set-up time for a repeated START condition
- * max_hd_dat_ns: max data hold time
- * min_su_dat_ns: min data set-up time
+ * @min_low_ns: min LOW period of the SCL clock
+ * @min_su_sta_ns: min set-up time for a repeated START condition
+ * @max_hd_dat_ns: max data hold time
+ * @min_su_dat_ns: min data set-up time
   */
  struct i2c_spec_values {
  	unsigned int min_low_ns;

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 18 lines · Qii Wang
Quoted 17 lines · Matthias Brugger

The struct i2c_spec_values have it's members documented but is missing the starting '@', which leads to warings like:

drivers/i2c/busses/i2c-mt65xx.c:267: warning: Function parameter or member 'min_low_ns' not described in 'i2c_spec_values'

---
   drivers/i2c/busses/i2c-mt65xx.c | 8 ++++----
   1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-mt65xx.c +0 -0
index e889f74703e4..f51b35fc400f 100644
@@ -253,10 +253,10 @@ struct mtk_i2c {
 
Quoted 6 lines

drivers/i2c/busses/i2c-mt65xx.c struct mtk_i2c { · line 256

Quoted 3 lines
drivers/i2c/busses/i2c-mt65xx.c +0 -1
   /**
    * struct i2c_spec_values:
- * min_low_ns: min LOW period of the SCL clock

Can you help me add a description of min_high_ns. As @min_high_ns: min HIGH period of the SCL clock

Right, I forgot about this one.

Actually I don't see any code which uses the value, so I think it should be deleted from the struct.

Do you have any thoughts on this.

Regards,
Matthias

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer
#3 lore raw
Quoted 27 lines · Matthias Brugger
Quoted 18 lines · Qii Wang
Quoted 17 lines · Matthias Brugger

The struct i2c_spec_values have it's members documented but is missing the starting '@', which leads to warings like:

drivers/i2c/busses/i2c-mt65xx.c:267: warning: Function parameter or member 'min_low_ns' not described in 'i2c_spec_values'

---
   drivers/i2c/busses/i2c-mt65xx.c | 8 ++++----
   1 file changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-mt65xx.c +0 -0
index e889f74703e4..f51b35fc400f 100644
@@ -253,10 +253,10 @@ struct mtk_i2c {
 
Quoted 6 lines

drivers/i2c/busses/i2c-mt65xx.c struct mtk_i2c { · line 256

Quoted 3 lines
drivers/i2c/busses/i2c-mt65xx.c +0 -1
   /**
    * struct i2c_spec_values:
- * min_low_ns: min LOW period of the SCL clock

Can you help me add a description of min_high_ns. As @min_high_ns: min HIGH period of the SCL clock

Quoted 7 lines

Right, I forgot about this one.

Actually I don't see any code which uses the value, so I think it should be deleted from the struct.

Do you have any thoughts on this.

That is right, it is used for internal test before. You can deleted it.