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