Files
android_kernel_samsung_msm8…/include/linux/i2c/abov_touchkey.h
T
Francescodario Cuzzocrea 85baa390bf misc: Import SM-G900H kernel source code
* Samsung Package Version: G800HXXU1CRJ1
    * CAF Tag: LA.BF.1.1.3-00110-8x26.0
2019-08-02 15:14:10 +02:00

40 lines
1.2 KiB
C

/* abov_touchkey.h -- Linux driver for abov chip as touchkey
*
* Copyright (C) 2013 Samsung Electronics Co.Ltd
* Author: Junkyeong Kim <jk0430.kim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* 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.
*
*/
#ifndef __LINUX_ABOV_TOUCHKEY_H
#define __LINUX_ABOV_TOUCHKEY_H
#define ABOV_TK_NAME "abov-touchkey"
struct abov_touchkey_platform_data {
unsigned long irq_flag;
int gpio_int;
int gpio_sda;
int gpio_scl;
int gpio_rst;
int gpio_tkey_led_en;
struct regulator *vdd_io_vreg;
struct regulator *avdd_vreg;
const char *supply_name;
struct regulator *vtouch_3p3;
void (*input_event) (void *data);
int (*power) (struct abov_touchkey_platform_data *pdata, bool on);
int (*keyled) (bool on);
};
#endif /* LINUX_ABOV_TOUCHKEY_H */