Re: [PATCH v3 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-09 Thread Daniel Martin
Sorry, I didn't had the time to look at the patches earlier. Now, I did and was wondering why hotkey_tablet_mode doesn't show up in sysfs anymore ... On 7 November 2016 at 18:10, Lyude wrote: > @@ -3464,17 +3495,6 @@ static int __init hotkey_init(struct ibm_init_struct > *iibm) >

Re: [PATCH v3 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-08 Thread Henrique de Moraes Holschuh
On Mon, 07 Nov 2016, Lyude wrote: > @@ -3117,6 +3120,34 @@ static const struct tpacpi_quirk > tpacpi_hotkey_qtable[] __initconst = { > typedef u16 tpacpi_keymap_entry_t; > typedef tpacpi_keymap_entry_t tpacpi_keymap_t[TPACPI_HOTKEY_MAP_LEN]; > > +static int > +hotkey_init_tablet_mode(void) > +

[PATCH v3 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-07 Thread Lyude
The hotkey events and ACPI handles used for detecting tablet mode on a few of the newer thinkpad models (Yoga X1 and the Yoga 260 specifically) have been changed around, so unfortunately this means we're definitely going to need to probe for multiple types of tablet mode support. Since the hotkey_i