]> git.baikalelectronics.ru Git - kernel.git/commit
Input: axp20x_pek - add axp20x_pek_probe_input_device helper
authorHans de Goede <hdegoede@redhat.com>
Thu, 9 Mar 2017 17:47:24 +0000 (09:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Mar 2017 18:01:03 +0000 (10:01 -0800)
commit23ddc2acb13587b5b9ef8f8a2152a26e3746d27b
tree0fa334f16e321d0c0655efca25d83910a9d2b61b
parent73b582f8fc173f3518412fb0fa29f3c7374a305c
Input: axp20x_pek - add axp20x_pek_probe_input_device helper

Move all input device related initialization into a new
axp20x_pek_probe_input_device helper function.

This introduces one functional change, the input device is now
registered before the sysfs attr get registered. This is not a problem
as the sysfs attr are to configure some long press settings (forced
poweroff) in the hardware and do not interact with the input_device.

This is a preparation patch for not always registering the input dev.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/axp20x-pek.c