HID: magicmouse: simplify touch data bit manipulation
The new format should be easier to read to determine which bits correspond to which data. It also brings all the manipulation logic to the top of the function. This makes size and orientation reading more clear. Note that the impetus for this change is the forthcoming support for the Magic Trackpad, which has a different touch data protocol. Signed-off-by: NChase Douglas <chase.douglas@canonical.com> Acked-by: NMichael Poole <mdpoole@troilus.org> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
Showing
想要评论请 注册 或 登录