Skip to contentSkip to conversation

can: j1939: swap addr and pgn in the send example

PATCH In review [email protected] 2 participants 2 messages Oct 22, 2020

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: j1939: swap addr and pgn in the send example

From: Yegor Yefremov <[email protected]>

The address was wrongly assigned to the PGN field and vice versa.

---
 Documentation/networking/j1939.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/j1939.rst +2 -2
index be59fcece3bf..faf2eb5c5052 100644
@@ -414,8 +414,8 @@ Send:
 		.can_family = AF_CAN,
 		.can_addr.j1939 = {
 			.name = J1939_NO_NAME;
-			.pgn = 0x30,
-			.addr = 0x12300,
+			.addr = 0x30,
+			.pgn = 0x12300,
 		},
 	};
 
Signature · 1 line
2.17.0
#1 lore raw
Quoted 6 lines · On 10/22/20 10:37 AM, [email protected] wrote:

From: Yegor Yefremov <[email protected]>

The address was wrongly assigned to the PGN field and vice versa.

---

applied to linux-can/testing

Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |