WCHSoftGroup / ch343ser_linux

USB driver for USB to serial chip ch342, ch343, ch344, ch9101, ch9102, ch9103, etc
125 stars 46 forks source link

Support kernel 6.1 and above #19

Open yTakatsukasa opened 1 year ago

yTakatsukasa commented 1 year ago

set_termios takes const struct ktermios by the change in https://github.com/torvalds/linux/commit/a8c11c1520347be74b02312d10ef686b01b525f1

Kernel 6.1 takes const ktemrios https://github.com/torvalds/linux/blob/v6.1/include/linux/tty_driver.h#L369

while Kernel 6.0 takes non-const ktermios https://github.com/torvalds/linux/blob/v6.0/include/linux/tty_driver.h#L368