HID: ntrig: change default value of logical/physical width/height to 1
authorWen-chien Jesse Sung <jesse.sung@canonical.com>
Tue, 25 Sep 2012 10:51:07 +0000 (18:51 +0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 25 Sep 2012 13:20:07 +0000 (15:20 +0200)
commit4cc9834518efed3b69d3a8ff3bd162e089f68d34
tree9fa4256bea8f412d68852f8e720e697562769de4
parentca9bbdcc89ecc1018215ec7f7e881840d40404c4
HID: ntrig: change default value of logical/physical width/height to 1

Since something will be divided by these variables in
show_min_width()/show_min_height() and show_activate_width()/
show_activate_height(), a divided error would be triggered if
they are zero.

Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
Acked-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ntrig.c