i2c: mediatek: Fix i2c_spec_values description
Matthias Brugger
maintainerPATCH 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
@@ -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
Qii Wang
maintainerQuoted 16 lines · Matthias Brugger
The struct
i2c_spec_valueshave 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'Signed-off-by Matthias Brugger <[email protected]>--- drivers/i2c/busses/i2c-mt65xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/i2c-mt65xx.c +0
-0
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
Quoted 18 lines · Qii Wang
Quoted 17 lines · Matthias Brugger
The struct
i2c_spec_valueshave 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'Signed-off-by Matthias Brugger <[email protected]>--- drivers/i2c/busses/i2c-mt65xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/i2c-mt65xx.c +0
-0@@ -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
Qii Wang
maintainerQuoted 27 lines · Matthias Brugger
Quoted 18 lines · Qii Wang
Quoted 17 lines · Matthias Brugger
The struct
i2c_spec_valueshave 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'Signed-off-by Matthias Brugger <[email protected]>--- drivers/i2c/busses/i2c-mt65xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/i2c-mt65xx.c +0
-0@@ -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.
[email protected]
AppliedQuoted 7 lines · Matthias Brugger
The struct
i2c_spec_valueshave 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'Signed-off-by Matthias Brugger <[email protected]>
Applied to for-next, thanks!