From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- .../arch/arm/plat-samsung/include/plat/keypad.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/plat-samsung/include/plat/keypad.h (limited to 'ANDROID_3.4.5/arch/arm/plat-samsung/include/plat/keypad.h') diff --git a/ANDROID_3.4.5/arch/arm/plat-samsung/include/plat/keypad.h b/ANDROID_3.4.5/arch/arm/plat-samsung/include/plat/keypad.h new file mode 100644 index 00000000..c81ace33 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/plat-samsung/include/plat/keypad.h @@ -0,0 +1,31 @@ +/* + * Samsung Platform - Keypad platform data definitions + * + * Copyright (C) 2010 Samsung Electronics Co.Ltd + * Author: Joonyoung Shim + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef __PLAT_SAMSUNG_KEYPAD_H +#define __PLAT_SAMSUNG_KEYPAD_H + +#include + +/** + * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. + * @pd: Platform data to register to device. + * + * Register the given platform data for use with Samsung Keypad device. + * The call will copy the platform data, so the board definitions can + * make the structure itself __initdata. + */ +extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd); + +/* defined by architecture to configure gpio. */ +extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols); + +#endif /* __PLAT_SAMSUNG_KEYPAD_H */ -- cgit