diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 5ddace093f0f..e6b90622e4eb 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -739,8 +739,8 @@ static u32 s32ton(__s32 value, unsigned n) | |||
739 | * Search linux-kernel and linux-usb-devel archives for "hid-core extract". | 739 | * Search linux-kernel and linux-usb-devel archives for "hid-core extract". |
740 | */ | 740 | */ |
741 | 741 | ||
742 | static __inline__ __u32 extract(const struct hid_device *hid, __u8 *report, | 742 | static __u32 extract(const struct hid_device *hid, __u8 *report, |
743 | unsigned offset, unsigned n) | 743 | unsigned offset, unsigned n) |
744 | { | 744 | { |
745 | u64 x; | 745 | u64 x; |
746 | 746 | ||
@@ -763,8 +763,8 @@ static __inline__ __u32 extract(const struct hid_device *hid, __u8 *report, | |||
763 | * endianness of register values by considering a register | 763 | * endianness of register values by considering a register |
764 | * a "cached" copy of the little endiad bit stream. | 764 | * a "cached" copy of the little endiad bit stream. |
765 | */ | 765 | */ |
766 | static __inline__ void implement(const struct hid_device *hid, __u8 *report, | 766 | static void implement(const struct hid_device *hid, __u8 *report, |
767 | unsigned offset, unsigned n, __u32 value) | 767 | unsigned offset, unsigned n, __u32 value) |
768 | { | 768 | { |
769 | u64 x; | 769 | u64 x; |
770 | u64 m = (1ULL << n) - 1; | 770 | u64 m = (1ULL << n) - 1; |
@@ -792,7 +792,7 @@ static __inline__ void implement(const struct hid_device *hid, __u8 *report, | |||
792 | * Search an array for a value. | 792 | * Search an array for a value. |
793 | */ | 793 | */ |
794 | 794 | ||
795 | static __inline__ int search(__s32 *array, __s32 value, unsigned n) | 795 | static int search(__s32 *array, __s32 value, unsigned n) |
796 | { | 796 | { |
797 | while (n--) { | 797 | while (n--) { |
798 | if (*array++ == value) | 798 | if (*array++ == value) |