blob: 969e46067c7c8d6a0054c56582c53fc4fe0a999a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Driver model for sensor
*
* Copyright (C) 2008 Samsung Electronics
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#ifndef __LINUX_SENSORS_CORE_H_INCLUDED
#define __LINUX_SENSORS_CORE_H_INCLUDED
extern struct device *sensors_classdev_register(char *sensors_name);
extern void sensors_classdev_unregister(struct device *dev);
struct accel_platform_data {
int (*accel_get_position) (void);
/* Change axis or not for user-level
* If it is true, driver reports adjusted axis-raw-data
* to user-space based on accel_get_position() value,
* or if it is false, driver reports original axis-raw-data */
bool axis_adjust;
};
struct gyro_platform_data {
int (*gyro_get_position) (void);
/* Change axis or not for user-level
* If it is true, driver reports adjusted axis-raw-data
* to user-space based on gyro_get_position() value,
* or if it is false, driver reports original axis-raw-data */
bool axis_adjust;
};
#endif /* __LINUX_SENSORS_CORE_H_INCLUDED */
|