]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/linux/platform_data/invensense_mpu6050.h
UBUNTU: Ubuntu-4.10.0-37.41
[mirror_ubuntu-zesty-kernel.git] / include / linux / platform_data / invensense_mpu6050.h
CommitLineData
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
eb379846
GB
19 * @orientation: Orientation matrix of the chip (deprecated in favor of
20 * mounting matrix retrieved from device-tree)
09a642b7
GG
21 *
22 * Contains platform specific information on how to configure the MPU6050 to
23 * work on this platform. The orientation matricies are 3x3 rotation matricies
24 * that are applied to the data to rotate from the mounting orientation to the
25 * platform orientation. The values must be one of 0, 1, or -1 and each row and
26 * column should have exactly 1 non-zero value.
eb379846
GB
27 *
28 * Deprecated in favor of mounting matrix retrieved from device-tree.
09a642b7
GG
29 */
30struct inv_mpu6050_platform_data {
31 __s8 orientation[9];
32};
33
34#endif