Commit | Line | Data |
---|---|---|
09a642b7 GG |
1 | /* |
2 | * Copyright (C) 2012 Invensense, Inc. | |
3 | * | |
4 | * This software is licensed under the terms of the GNU General Public | |
5 | * License version 2, as published by the Free Software Foundation, and | |
6 | * may be copied, distributed, and modified under those terms. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | */ | |
13 | ||
14 | #ifndef __INV_MPU6050_PLATFORM_H_ | |
15 | #define __INV_MPU6050_PLATFORM_H_ | |
16 | ||
17 | /** | |
18 | * struct inv_mpu6050_platform_data - Platform data for the mpu driver | |
19 | * @orientation: Orientation matrix of the chip | |
20 | * | |
21 | * Contains platform specific information on how to configure the MPU6050 to | |
22 | * work on this platform. The orientation matricies are 3x3 rotation matricies | |
23 | * that are applied to the data to rotate from the mounting orientation to the | |
24 | * platform orientation. The values must be one of 0, 1, or -1 and each row and | |
25 | * column should have exactly 1 non-zero value. | |
26 | */ | |
27 | struct inv_mpu6050_platform_data { | |
28 | __s8 orientation[9]; | |
29 | }; | |
30 | ||
31 | #endif |