From patchwork Wed Sep 9 11:11:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?w6zigJPigJjDrMKn4oCew6zigJ7CsQ==?= X-Patchwork-Id: 46354 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n89BI4Vs004007 for ; Wed, 9 Sep 2009 11:18:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbZIILRh (ORCPT ); Wed, 9 Sep 2009 07:17:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752829AbZIILRh (ORCPT ); Wed, 9 Sep 2009 07:17:37 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:40175 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752931AbZIILRf (ORCPT ); Wed, 9 Sep 2009 07:17:35 -0400 Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.63) (envelope-from ) id 1MlLBB-0000XT-13; Wed, 09 Sep 2009 13:17:37 +0200 Received: from [12.23.106.154] (helo=localhost.localdomain) by meercat.kr.gnumonks.org with esmtp (Exim 4.68) (envelope-from ) id 1MlKz9-0001ty-VY; Wed, 09 Sep 2009 20:05:11 +0900 From: jsgood.yang@samsung.com To: dmitry.torokhov@gmail.com, ben-linux@fluff.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Jinsung Yang , Kyeongil Kim Subject: [PATCH 2/4] [ARM][S3C] Add definition for keypad platform data Date: Wed, 9 Sep 2009 20:11:27 +0900 Message-Id: <1252494687-17829-1-git-send-email-jsgood.yang@samsung.com> X-Mailer: git-send-email 1.6.2.5 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Jinsung Yang This patch supports platform data definition which including platform specific keymap. Signed-off-by: Jinsung Yang Signed-off-by: Kyeongil Kim --- arch/arm/plat-s3c/include/plat/keypad.h | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s3c/include/plat/keypad.h diff --git a/arch/arm/plat-s3c/include/plat/keypad.h b/arch/arm/plat-s3c/include/plat/keypad.h new file mode 100644 index 0000000..51c7396 --- /dev/null +++ b/arch/arm/plat-s3c/include/plat/keypad.h @@ -0,0 +1,27 @@ +/* + * linux/arch/arm/plat-s3c/include/plat/keypad.h + * + * Copyright (C) 2009 Samsung Electronics + * + * Header file for keypad platform data + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __ASM_PLAT_S3C_KEYPAD_H +#define __ASM_PLAT_S3C_KEYPAD_H + +struct s3c_platform_keypad { + int nr_rows; + int nr_cols; + int max_keys; + int max_masks; + int delay; + unsigned short *keymap; +}; + +extern void s3c_keypad_set_platdata(struct s3c_platform_keypad *pd); + +#endif /* __ASM_PLAT_S3C_KEYPAD_H */