blob: c81ace332a1ea102721e50a3ba2162381193c9ef [file] [log] [blame]
Joonyoung Shim0fffed22010-07-21 00:45:10 -07001/*
2 * Samsung Platform - Keypad platform data definitions
3 *
4 * Copyright (C) 2010 Samsung Electronics Co.Ltd
5 * Author: Joonyoung Shim <jy0922.shim@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 */
12
13#ifndef __PLAT_SAMSUNG_KEYPAD_H
14#define __PLAT_SAMSUNG_KEYPAD_H
15
Dmitry Torokhov8d964a22011-11-07 23:59:41 -080016#include <linux/input/samsung-keypad.h>
Joonyoung Shim0fffed22010-07-21 00:45:10 -070017
Joonyoung Shim995c48a2010-08-06 19:26:10 +090018/**
19 * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
20 * @pd: Platform data to register to device.
21 *
22 * Register the given platform data for use with Samsung Keypad device.
23 * The call will copy the platform data, so the board definitions can
24 * make the structure itself __initdata.
25 */
26extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
27
28/* defined by architecture to configure gpio. */
29extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
30
Joonyoung Shim0fffed22010-07-21 00:45:10 -070031#endif /* __PLAT_SAMSUNG_KEYPAD_H */