mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-10-29 15:28:50 +01:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
11
include/linux/sensor/k2hh.h
Executable file
11
include/linux/sensor/k2hh.h
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef __K2DH_DEV_H
|
||||
#define __K2DH_DEV_H
|
||||
|
||||
|
||||
/*Platform data */
|
||||
struct k2hh_platform_data {
|
||||
signed char orientation[9];
|
||||
unsigned int irq_gpio;
|
||||
};
|
||||
|
||||
#endif
|
||||
43
include/linux/sensor/sensors_core.h
Executable file
43
include/linux/sensor/sensors_core.h
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _SENSORS_CORE_H_
|
||||
#define _SENSORS_CORE_H_
|
||||
|
||||
#define SENSOR_ERR(fmt, ...) \
|
||||
pr_err("[SENSOR] %s: "fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
#define SENSOR_INFO(fmt, ...) \
|
||||
pr_info("[SENSOR] %s: "fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
#define SENSOR_WARN(fmt, ...) \
|
||||
pr_warn("[SENSOR] %s: "fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
int sensors_create_symlink(struct kobject *, const char *);
|
||||
void sensors_remove_symlink(struct kobject *, const char *);
|
||||
int sensors_register(struct device *, void *,
|
||||
struct device_attribute *[], char *);
|
||||
void sensors_unregister(struct device *, struct device_attribute *[]);
|
||||
void destroy_sensor_class(void);
|
||||
void remap_sensor_data(s16 *, u32);
|
||||
void remap_sensor_data_32(int *, u32);
|
||||
#define TIME_LO_MASK 0x00000000FFFFFFFF
|
||||
#define TIME_HI_MASK 0xFFFFFFFF00000000
|
||||
#define TIME_HI_SHIFT 32
|
||||
#include <linux/alarmtimer.h>
|
||||
#endif
|
||||
34
include/linux/sensor/stk3013.h
Executable file
34
include/linux/sensor/stk3013.h
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
*
|
||||
* $Id: stk3013.h
|
||||
*
|
||||
* Copyright (C) 2012~2015 Lex Hsieh <lex_hsieh@sensortek.com.tw>
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU General Public
|
||||
* License. See the file COPYING in the main directory of this archive for
|
||||
* more details.
|
||||
*
|
||||
*/
|
||||
#ifndef __STK3013_H__
|
||||
#define __STK3013_H__
|
||||
|
||||
/* platform data */
|
||||
struct stk3013_platform_data
|
||||
{
|
||||
uint8_t state_reg;
|
||||
uint8_t psctrl_reg;
|
||||
uint8_t alsctrl_reg;
|
||||
uint8_t ledctrl_reg;
|
||||
uint8_t wait_reg;
|
||||
uint16_t ps_thd_h;
|
||||
uint16_t ps_thd_l;
|
||||
uint16_t ps_cancel_thd_h;
|
||||
uint16_t ps_cancel_thd_l;
|
||||
uint16_t ps_cal_skip_adc;
|
||||
uint16_t ps_cal_fail_adc;
|
||||
uint16_t ps_default_offset;
|
||||
int int_pin;
|
||||
uint32_t transmittance;
|
||||
uint32_t int_flags;
|
||||
};
|
||||
#endif // __STK3013_H__
|
||||
Loading…
Add table
Add a link
Reference in a new issue