Krzysztof Kozlowski | 4490e3c | 2017-12-25 20:54:35 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Joonyoung Shim | 0fffed2 | 2010-07-21 00:45:10 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Samsung Platform - Keypad platform data definitions |
| 4 | * |
| 5 | * Copyright (C) 2010 Samsung Electronics Co.Ltd |
| 6 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> |
Joonyoung Shim | 0fffed2 | 2010-07-21 00:45:10 -0700 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __PLAT_SAMSUNG_KEYPAD_H |
| 10 | #define __PLAT_SAMSUNG_KEYPAD_H |
| 11 | |
Dmitry Torokhov | 8d964a2 | 2011-11-07 23:59:41 -0800 | [diff] [blame] | 12 | #include <linux/input/samsung-keypad.h> |
Joonyoung Shim | 0fffed2 | 2010-07-21 00:45:10 -0700 | [diff] [blame] | 13 | |
Joonyoung Shim | 995c48a | 2010-08-06 19:26:10 +0900 | [diff] [blame] | 14 | /** |
| 15 | * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. |
| 16 | * @pd: Platform data to register to device. |
| 17 | * |
| 18 | * Register the given platform data for use with Samsung Keypad device. |
| 19 | * The call will copy the platform data, so the board definitions can |
| 20 | * make the structure itself __initdata. |
| 21 | */ |
| 22 | extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd); |
| 23 | |
| 24 | /* defined by architecture to configure gpio. */ |
| 25 | extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols); |
| 26 | |
Joonyoung Shim | 0fffed2 | 2010-07-21 00:45:10 -0700 | [diff] [blame] | 27 | #endif /* __PLAT_SAMSUNG_KEYPAD_H */ |