[RFC PATCH v6 4/5] ACPI: button: extract input creation/destruction helpers

2017-06-21 Thread Lv Zheng
From: Benjamin Tissoires When the LID switch ACPI implementation is unreliable, we might want to remove the device when we are not sure about the state. This should prevent any suspend/resume loops given that in that case, there will be no more LID switch input

[RFC PATCH v6 4/5] ACPI: button: extract input creation/destruction helpers

2017-06-21 Thread Lv Zheng
From: Benjamin Tissoires When the LID switch ACPI implementation is unreliable, we might want to remove the device when we are not sure about the state. This should prevent any suspend/resume loops given that in that case, there will be no more LID switch input node. This patch prepares the