touchscreen: optimize module init flow
authorQianggui Song <qianggui.song@amlogic.com>
Wed, 4 Jul 2018 05:42:37 +0000 (13:42 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 19 Jul 2018 02:35:29 +0000 (19:35 -0700)
commit43a3a58106896923648da5f8bf2065050647183a
treedbe1bbbbbf73a0a52a8948b788e42859c6433943
parent86b3a92b0cf773db7c5f303f7957151c7a4ce1e2
touchscreen: optimize module init flow

PD#169285: touchscreen: optimize module init flow

1.Initializing/Uninitializing resource in probe/remove function is more
appropriate in this case.
2.Use module_i2c_driver to replace module_init/exit to make code more
compact.
verify on a311d_w400

Change-Id: If02f12a6c290a6346d439785060e60a6cd815c12
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
drivers/amlogic/input/touchscreen/focaltech_touch/focaltech_core.c
drivers/amlogic/input/touchscreen/goodix_gt1x/gt1x.c
drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.c