ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / os-specific / linux / ch9344 / fix-incompatible-pointer-types.patch
blob89c95347ed654184352ef3f870fda7f9ea3b4f37
1 diff --git a/ch9344.c b/ch9344.c
2 index bfa10bb..76a94a7 100644
3 --- a/ch9344.c
4 +++ b/ch9344.c
5 @@ -837,7 +837,11 @@ static void ch9344_tty_close(struct tty_struct *tty, struct file *filp)
9 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0))
10 +static ssize_t ch9344_tty_write(struct tty_struct *tty, const u8 *buf, size_t count)
11 +#else
12 static int ch9344_tty_write(struct tty_struct *tty, const unsigned char *buf, int count)
13 +#endif
15 struct ch9344 *ch9344 = tty->driver_data;
16 int stat;