OSDN Git Service

HID: alps: remove variables local to u1_init() from the device struct
authorMasaki Ota <masaki.ota@jp.alps.com>
Fri, 6 Oct 2017 02:53:16 +0000 (11:53 +0900)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Oct 2017 09:35:21 +0000 (11:35 +0200)
commit5992262d59ccbfaa86ea8b10122653429685b3f9
tree02c892591c5542e8d997f6800808de3c900d048f
parentc7083d3f53482e8a2a6ee1238fbedfa7dbea7b3c
HID: alps: remove variables local to u1_init() from the device struct

Move dev_ctrl, dev_type, sen_line_num_x, sen_line_num_y, pitch_x, pitch_y,
resolution, btn_info from u1_dev structure to "u1_init()", because these
variables are only used in there.

[jkosina@suse.cz: rewrite changelog]
Signed-off-by: Masaki Ota <masaki.ota@jp.alps.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-alps.c