mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
tuxedo_io: Update id check data for uw on ioctl id check request
Should fix failing to identify uniwill device if tuxedo_io module loaded before interface registration.
This commit is contained in:
parent
f066ef0318
commit
0747e94f89
|
@ -346,6 +346,7 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||
copy_result = copy_to_user((void *) arg, (void *) &id_check_clevo, sizeof(id_check_clevo));
|
||||
break;
|
||||
case R_HWCHECK_UW:
|
||||
id_check_uniwill = uniwill_identify();
|
||||
copy_result = copy_to_user((void *) arg, (void *) &id_check_uniwill, sizeof(id_check_uniwill));
|
||||
break;
|
||||
}
|
||||
|
@ -380,7 +381,7 @@ static int __init tuxedo_io_init(void)
|
|||
|
||||
#ifdef DEBUG
|
||||
if (id_check_clevo == 0 && id_check_uniwill == 0) {
|
||||
pr_debug("No matching hardware found\n");
|
||||
pr_debug("No matching hardware found on module load\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue