Replace ->can_dlc with ->len
authornorly <ny-git@enpas.org>
Sat, 12 Mar 2022 18:20:25 +0000 (19:20 +0100)
committernorly <ny-git@enpas.org>
Sat, 12 Mar 2022 18:20:25 +0000 (19:20 +0100)
commitc7d484d0a91da93ff32ff169cf125e3544373acd
treebf328db502c14a304483aeb881cc4d643d9b0936
parent5c6b774682a59c5dd948f03560a1f9580f198fe5
Replace ->can_dlc with ->len

can_frame.can_dlc has been deprecated in favour of can_frame.len and as
a new driver, this needs to stick to the new convention.

Also include the ugliest backwards hack #define I've ever written to
make this compile on Linux <= 5.10 which is currently LTS.
module/elmcan.c