mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
![Lee Jones](/assets/img/avatar_default.png)
These GPIO init and exit functions have no place in platform data, they should be part of the driver instead, Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
34 lines
741 B
C
34 lines
741 B
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
* Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson
|
|
* License terms:GNU General Public License (GPL) version 2
|
|
*/
|
|
|
|
#ifndef _BU21013_H
|
|
#define _BU21013_H
|
|
|
|
/**
|
|
* struct bu21013_platform_device - Handle the platform data
|
|
* @touch_x_max: touch x max
|
|
* @touch_y_max: touch y max
|
|
* @cs_pin: chip select pin
|
|
* @touch_pin: touch gpio pin
|
|
* @ext_clk: external clock flag
|
|
* @x_flip: x flip flag
|
|
* @y_flip: y flip flag
|
|
* @wakeup: wakeup flag
|
|
*
|
|
* This is used to handle the platform data
|
|
*/
|
|
struct bu21013_platform_device {
|
|
int touch_x_max;
|
|
int touch_y_max;
|
|
unsigned int cs_pin;
|
|
unsigned int touch_pin;
|
|
bool ext_clk;
|
|
bool x_flip;
|
|
bool y_flip;
|
|
bool wakeup;
|
|
};
|
|
|
|
#endif
|