Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / plat-samsung / include / plat / keypad.h
blobc81ace332a1ea102721e50a3ba2162381193c9ef
1 /*
2 * Samsung Platform - Keypad platform data definitions
4 * Copyright (C) 2010 Samsung Electronics Co.Ltd
5 * Author: Joonyoung Shim <jy0922.shim@samsung.com>
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.
13 #ifndef __PLAT_SAMSUNG_KEYPAD_H
14 #define __PLAT_SAMSUNG_KEYPAD_H
16 #include <linux/input/samsung-keypad.h>
18 /**
19 * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
20 * @pd: Platform data to register to device.
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.
26 extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
28 /* defined by architecture to configure gpio. */
29 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
31 #endif /* __PLAT_SAMSUNG_KEYPAD_H */