12345678910111213141516171819202122232425262728293031323334353637383940 |
- /* 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 */
|