Files
android_kernel_samsung_msm8…/include/linux/input/synaptics_dsx.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

58 lines
1.7 KiB
C

/*
* Synaptics DSX touchscreen driver
*
* Copyright (C) 2012 Synaptics Incorporated
*
* Copyright (C) 2012 Alexandra Chin <alexandra.chin@tw.synaptics.com>
* Copyright (C) 2012 Scott Lin <scott.lin@tw.synaptics.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 of the License, 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 _SYNAPTICS_DSX_H_
#define _SYNAPTICS_DSX_H_
/*
* synaptics_dsx_cap_button_map - 0d button map
* @nbuttons: number of 0d buttons
* @map: pointer to array of button types
*/
struct synaptics_dsx_cap_button_map {
unsigned char nbuttons;
unsigned char *map;
};
/*
* struct synaptics_dsx_platform_data - dsx platform data
* @x_flip: x flip flag
* @y_flip: y flip flag
* @regulator_en: regulator enable flag
* @irq_flags: irq flags
* @panel_x: x-axis resolution of display panel
* @panel_y: y-axis resolution of display panel
* @gpio_config: pointer to gpio configuration function
* @cap_button_map: pointer to 0d button map
*/
struct synaptics_dsx_platform_data {
bool x_flip;
bool y_flip;
bool swap_axes;
bool regulator_en;
unsigned long irq_flags;
unsigned int panel_x;
unsigned int panel_y;
unsigned int reset_delay_ms;
int (*gpio_config)(int gpio, bool configure);
struct synaptics_dsx_cap_button_map *cap_button_map;
};
#endif