Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Samsung Platform - Keypad platform data definitions
0004  *
0005  * Copyright (C) 2010 Samsung Electronics Co.Ltd
0006  * Author: Joonyoung Shim <jy0922.shim@samsung.com>
0007  */
0008 
0009 #ifndef __PLAT_SAMSUNG_KEYPAD_H
0010 #define __PLAT_SAMSUNG_KEYPAD_H
0011 
0012 #include <linux/input/samsung-keypad.h>
0013 
0014 /**
0015  * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
0016  * @pd: Platform data to register to device.
0017  *
0018  * Register the given platform data for use with Samsung Keypad device.
0019  * The call will copy the platform data, so the board definitions can
0020  * make the structure itself __initdata.
0021  */
0022 extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
0023 
0024 /* defined by architecture to configure gpio. */
0025 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
0026 
0027 #endif /* __PLAT_SAMSUNG_KEYPAD_H */