Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3528
b: refs/heads/master
c: bef3768
h: refs/heads/master
v: v3
  • Loading branch information
Adam Kropelin authored and Dmitry Torokhov committed May 29, 2005
1 parent 432778d commit aea0dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18098a6c750d90e7bdf299fbd2144d05434a8d5a
refs/heads/master: bef3768d8fdee7e1f1488e7017937eb4bf5797a2
2 changes: 1 addition & 1 deletion trunk/drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ static __inline__ __u32 s32ton(__s32 value, unsigned n)
static __inline__ __u32 extract(__u8 *report, unsigned offset, unsigned n)
{
report += (offset >> 5) << 2; offset &= 31;
return (le64_to_cpu(get_unaligned((__le64*)report)) >> offset) & ((1 << n) - 1);
return (le64_to_cpu(get_unaligned((__le64*)report)) >> offset) & ((1ULL << n) - 1);
}

static __inline__ void implement(__u8 *report, unsigned offset, unsigned n, __u32 value)
Expand Down

0 comments on commit aea0dbe

Please sign in to comment.