xref: /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/keypad.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Samsung Platform - Keypad platform data definitions
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2010 Samsung Electronics Co.Ltd
6*4882a593Smuzhiyun  * Author: Joonyoung Shim <jy0922.shim@samsung.com>
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #ifndef __PLAT_SAMSUNG_KEYPAD_H
10*4882a593Smuzhiyun #define __PLAT_SAMSUNG_KEYPAD_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #include <linux/input/samsung-keypad.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /**
15*4882a593Smuzhiyun  * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
16*4882a593Smuzhiyun  * @pd: Platform data to register to device.
17*4882a593Smuzhiyun  *
18*4882a593Smuzhiyun  * Register the given platform data for use with Samsung Keypad device.
19*4882a593Smuzhiyun  * The call will copy the platform data, so the board definitions can
20*4882a593Smuzhiyun  * make the structure itself __initdata.
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /* defined by architecture to configure gpio. */
25*4882a593Smuzhiyun extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun #endif /* __PLAT_SAMSUNG_KEYPAD_H */
28