diff options
author | Jiri Kosina <jkosina@suse.cz> | 2018-05-16 05:02:07 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-05-16 05:02:07 -0400 |
commit | 99c703acade3e38c07b179d684045e9099f935e9 (patch) | |
tree | 991a35000bfb3d24cda764678e8e97a7e6799491 | |
parent | 02946f4b43b11026b1a76857a33b09078b900939 (diff) |
HID: multitouch: fix types returned from mt_need_to_apply_feature()
Some exit paths from mt_need_to_apply_feature() returned int instead
of bool; fix that up.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-multitouch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 82c98bf14d60..38c4ca24343e 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c | |||
@@ -1206,15 +1206,15 @@ static bool mt_need_to_apply_feature(struct hid_device *hdev, | |||
1206 | 1206 | ||
1207 | case HID_DG_LATENCYMODE: | 1207 | case HID_DG_LATENCYMODE: |
1208 | field->value[index] = latency; | 1208 | field->value[index] = latency; |
1209 | return 1; | 1209 | return true; |
1210 | 1210 | ||
1211 | case HID_DG_SURFACESWITCH: | 1211 | case HID_DG_SURFACESWITCH: |
1212 | field->value[index] = surface_switch; | 1212 | field->value[index] = surface_switch; |
1213 | return 1; | 1213 | return true; |
1214 | 1214 | ||
1215 | case HID_DG_BUTTONSWITCH: | 1215 | case HID_DG_BUTTONSWITCH: |
1216 | field->value[index] = button_switch; | 1216 | field->value[index] = button_switch; |
1217 | return 1; | 1217 | return true; |
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | return false; /* no need to update the report */ | 1220 | return false; /* no need to update the report */ |