Skip to content

Commit c80b7ca

Browse files
VCASTMfourmone
authored andcommitted
include: uapi: serial: fix serial_rs485 padding after adding ns delays
Fix in serial_rs485 struct, padding after adding delay_rts_before_send_ns and delay_rts_after_send_ns. Padding should be decreased by 2 to keep backward compatibility. Fixes: 312bd2d ("include: uapi: serial: add support of rts delays in nanoseconds") Signed-off-by: Borut Seljak <borut.seljak@t-2.net> Signed-off-by: Valentin Caron <valentin.caron@foss.st.com> Change-Id: Ife838ecf8ea68740140a62179fa1b6174705ab42 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/235233 Tested-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com> Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com> Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by: CIBUILD <MDG-smet-aci-builds@list.st.com>
1 parent 00d634b commit c80b7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/serial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct serial_rs485 {
130130
__u32 delay_rts_after_send; /* Delay after send (milliseconds) */
131131
__u32 delay_rts_before_send_ns; /* Delay (nanoseconds) */
132132
__u32 delay_rts_after_send_ns; /* Delay (nanoseconds) */
133-
__u32 padding[5]; /* Memory is cheap, new structs
133+
__u32 padding[3]; /* Memory is cheap, new structs
134134
are a royal PITA .. */
135135
};
136136

0 commit comments

Comments
 (0)