aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorJiri Kosina2018-05-16 11:02:07 +0200
committerJiri Kosina2018-05-16 11:02:07 +0200
commit99c703acade3e38c07b179d684045e9099f935e9 (patch)
tree991a35000bfb3d24cda764678e8e97a7e6799491 /drivers/hid
parent02946f4b43b11026b1a76857a33b09078b900939 (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>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-multitouch.c6
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,
case HID_DG_LATENCYMODE:
field->value[index] = latency;
- return 1;
+ return true;
case HID_DG_SURFACESWITCH:
field->value[index] = surface_switch;
- return 1;
+ return true;
case HID_DG_BUTTONSWITCH:
field->value[index] = button_switch;
- return 1;
+ return true;
}
return false; /* no need to update the report */