drm/prime: add return check for dma_buf_fd
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / sensors / sensors_core.h
1 /*
2  * Copyright (C) 2013 Samsung Electronics. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16  * 02110-1301 USA
17  */
18
19 #ifndef _SENSORS_CORE_H_
20 #define _SENSORS_CORE_H_
21 #ifdef CONFIG_SLEEP_MONITOR
22 #define SENSORS_ENABLE_ACCEL    0
23 #define SENSORS_ENABLE_PROXY    1
24 #define DEVICE_POWER_OFF_MASK   0
25 #define DEVICE_ON_ACTIVE2_MASK  (1 << SENSORS_ENABLE_ACCEL |1 << SENSORS_ENABLE_PROXY)
26
27 void sensors_set_enable_mask(int enable, int offset_bit);
28 #endif
29
30 int sensors_create_symlink(struct kobject *, const char *);
31 void sensors_remove_symlink(struct kobject *, const char *);
32 int sensors_register(struct device *, void *,
33         struct device_attribute *[], char *);
34 void sensors_unregister(struct device *, struct device_attribute *[]);
35 void destroy_sensor_class(void);
36 void remap_sensor_data(s16 *, u32);
37 #endif