blob: ef90dd98aed7ce8e81d34fde6bac18d7a658c8b4 (
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
|
/*
* 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;
};
#endif /* __LINUX_SENSORS_CORE_H_INCLUDED */
|