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