WCHSoftGroup / ch9344ser_linux

25 stars 12 forks source link

Can't compile on raspbian 64bit [ kernel version 6.1.21-v8+ ] #9

Open big-yellow-duck opened 1 year ago

big-yellow-duck commented 1 year ago

I've followed the readme to compile the driver but it gives this error.

error: initialization of ‘void ()(struct tty_struct , const struct ktermios )’ from incompatible pointer type ‘void ()(struct tty_struct , struct ktermios )’ [-Werror=incompatible-pointer-types] 2613 | .set_termios = ch9344_tty_set_termios, | ^~~~~~

I've tried compiling on ubuntu 20.04 on a pc with kernel version 5.15.0-71-generic and it works correctly

big-yellow-duck commented 1 year ago

I fixed the issue by changing line 2613 to this

.set_termios = (void*)ch9344_tty_set_termios,