Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9038
b: refs/heads/master
c: f647e08
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 17, 2005
1 parent 0dc9d0d commit f72054f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 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: a464adeb7e8f1cd65ca911e20a7c02e452dc2c17
refs/heads/master: f647e08a55d2c88c4e7ab17a0a8e3fcf568fbc65
24 changes: 13 additions & 11 deletions trunk/include/linux/joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,35 +111,37 @@ struct js_corr {
#define JS_SET_ALL 8

struct JS_DATA_TYPE {
__s32 buttons;
__s32 x;
__s32 y;
int32_t buttons;
int32_t x;
int32_t y;
};

struct JS_DATA_SAVE_TYPE_32 {
__s32 JS_TIMEOUT;
__s32 BUSY;
__s32 JS_EXPIRETIME;
__s32 JS_TIMELIMIT;
int32_t JS_TIMEOUT;
int32_t BUSY;
int32_t JS_EXPIRETIME;
int32_t JS_TIMELIMIT;
struct JS_DATA_TYPE JS_SAVE;
struct JS_DATA_TYPE JS_CORR;
};

struct JS_DATA_SAVE_TYPE_64 {
__s32 JS_TIMEOUT;
__s32 BUSY;
__s64 JS_EXPIRETIME;
__s64 JS_TIMELIMIT;
int32_t JS_TIMEOUT;
int32_t BUSY;
int64_t JS_EXPIRETIME;
int64_t JS_TIMELIMIT;
struct JS_DATA_TYPE JS_SAVE;
struct JS_DATA_TYPE JS_CORR;
};

#ifdef __KERNEL__
#if BITS_PER_LONG == 64
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_64
#elif BITS_PER_LONG == 32
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_32
#else
#error Unexpected BITS_PER_LONG
#endif
#endif

#endif /* _LINUX_JOYSTICK_H */

0 comments on commit f72054f

Please sign in to comment.