diff options
author | Benjamin Tissoires <[email protected]> | 2012-11-14 16:59:14 +0100 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2012-11-15 10:06:56 +0100 |
commit | ccdd699411b77c463022ebac311eb4a06ca56db4 (patch) | |
tree | 3103c884cc1f4f89969c5889485e032742f40c3e /fs/jbd2/commit.c | |
parent | 37cf6e6fc34e2fca4e7c565697e7cd5c317bc316 (diff) |
HID: round return value of hidinput_calc_abs_res
hidinput_calc_abs_res should return the closest int in the division
instead of the floor.
On a device with a logical_max of 3008 and a physical_max of 255mm,
previous implementation gave a resolution of 11 instead of 12.
With 11, user-space computes a physical size of 273.5mm and the
round_closest results gives 250.6mm.
The old implementation introduced an error of 2cm in this example.
Signed-off-by: Benjamin Tissoires <[email protected]>
Acked-by: Jiri Kosina <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions