fix tablet mode detection
This commit is contained in:
parent
1a0d8dd9a2
commit
dbd4bc1742
|
@ -297,7 +297,7 @@ static int hp_wmi_hw_state(int mask)
|
||||||
if (state < 0)
|
if (state < 0)
|
||||||
return state;
|
return state;
|
||||||
|
|
||||||
return state & 0x1;
|
return !!(state & mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init hp_wmi_bios_2008_later(void)
|
static int __init hp_wmi_bios_2008_later(void)
|
||||||
|
|
Loading…
Reference in a new issue