mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Avoid further feature identification if interface is missing
This commit is contained in:
parent
88363ec030
commit
e8eeb35028
|
@ -153,9 +153,12 @@ void uw_id_tdp(void)
|
||||||
|
|
||||||
static u32 uniwill_identify(void)
|
static u32 uniwill_identify(void)
|
||||||
{
|
{
|
||||||
uw_feats = uniwill_get_device_features();
|
u32 result = uniwill_get_active_interface_id(NULL) == 0 ? 1 : 0;
|
||||||
uw_id_tdp();
|
if (result) {
|
||||||
return uniwill_get_active_interface_id(NULL) == 0 ? 1 : 0;
|
uw_feats = uniwill_get_device_features();
|
||||||
|
uw_id_tdp();
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*static int fop_open(struct inode *inode, struct file *file)
|
/*static int fop_open(struct inode *inode, struct file *file)
|
||||||
|
|
Loading…
Reference in a new issue