Input: ams_delta_serio: use private structure
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Thu, 21 Jun 2018 22:41:21 +0000 (00:41 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 2 Jul 2018 12:28:55 +0000 (05:28 -0700)
commit56de7570b3264fdd920f74bda5cf334b82f4c1f9
tree42b89161c17aaecf5360dff099c404afa5065abc
parentdf88c5768927855e54b8f0bd7dd478150b30beda
Input: ams_delta_serio: use private structure

Introduce a driver private structure and allocate it on device probe.
For now, use it instead of a static variable for storing a pointer to
serio structure.  Subsequent patches will populate it with more members
as needed.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/serio/ams_delta_serio.c