diff mbox

[4/6] hid: egalax: Report zero as minimum pressure

Message ID 1286978302-30034-5-git-send-email-rydberg@euromail.se (mailing list archive)
State Superseded
Headers show

Commit Message

Henrik Rydberg Oct. 13, 2010, 1:58 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c
index 3b490a3..2aba897 100644
--- a/drivers/hid/hid-egalax.c
+++ b/drivers/hid/hid-egalax.c
@@ -93,6 +93,7 @@  static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi,
 			input_set_events_per_packet(input, MAX_EVENTS);
 			return 1;
 		case HID_DG_TIPPRESSURE:
+			field->logical_minimum = 0;
 			hid_map_usage(hi, usage, bit, max,
 					EV_ABS, ABS_MT_PRESSURE);
 			set_abs(input, ABS_MT_PRESSURE, field, 0);