Skip to contentSkip to conversation

dm: serial: fix comment on dm_serial_ops setconfig

PATCH In review Simon Goldschmidt 3 participants 3 messages Nov 2, 2018 – Nov 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: serial: fix comment on dm_serial_ops setconfig

The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'.

Update it to match its the parameter list.

---

 include/serial.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
include/serial.h +1 -3
index 020cd392e8..ec25db6e60 100644
@@ -195,9 +195,7 @@ struct dm_serial_ops {
 	 * Set up a new config for this device.
 	 *
 	 * @dev: Device pointer
-	 * @parity: parity to use
-	 * @bits: bits number to use
-	 * @stop: stop bits number to use
+	 * @serial_config: number of bits, parity and number of stopbits to use
 	 * @return 0 if OK, -ve on error
 	 */
 	int (*setconfig)(struct udevice *dev, uint serial_config);
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 dm: serial: fix comment on dm_serial_ops setconfig

Quoted 10 lines · Simon Goldschmidt

The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'.

Update it to match its the parameter list.

---

 include/serial.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
#2 lore raw
In reply to Simon Goldschmidt
Quoted 7 lines · Simon Goldschmidt

The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'.

Update it to match its the parameter list.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/d3a3dac8/attachment.sig>