diff options
author | Tony MÃ¥nsson <tony.mansson@linaro.org> | 2011-03-22 14:23:03 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2011-07-22 15:40:12 +0200 |
commit | 6695bd868e614eb0ea7f4630d9a39aedc7f257fc (patch) | |
tree | d0db9c8fef5f01030a7ef7efec56b06b2e128da0 /include | |
parent | e40cf01c9d12ad8d84f5d852e2f271bdea11b870 (diff) |
Adding l3g4200d Gyroscope
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/l3g4200d.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/l3g4200d.h b/include/linux/l3g4200d.h new file mode 100644 index 00000000000..28459601e4f --- /dev/null +++ b/include/linux/l3g4200d.h @@ -0,0 +1,27 @@ +/* + * ST L3G4200D 3-Axis Gyroscope header file + * + * Copyright (C) ST-Ericsson SA 2011 + * Author: Chethan Krishna N <chethan.krishna@stericsson.com> for ST-Ericsson + * Licence terms: GNU General Public Licence (GPL) version 2 + */ + +#ifndef __L3G4200D_H__ +#define __L3G4200D_H__ + +#ifdef __KERNEL__ +struct l3g4200d_gyr_platform_data { + const char *name_gyr; + + u8 axis_map_x; + u8 axis_map_y; + u8 axis_map_z; + + u8 negative_x; + u8 negative_y; + u8 negative_z; +}; + +#endif /* __KERNEL__ */ + +#endif /* __L3G4200D_H__ */ |