From patchwork Thu May 13 20:50:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abraham Arce X-Patchwork-Id: 99429 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4DKnjqT014731 for ; Thu, 13 May 2010 20:50:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756114Ab0EMUuF (ORCPT ); Thu, 13 May 2010 16:50:05 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:44711 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754833Ab0EMUuC convert rfc822-to-8bit (ORCPT ); Thu, 13 May 2010 16:50:02 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4DKo2xX031319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 May 2010 15:50:02 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4DKo2T2006074; Thu, 13 May 2010 15:50:02 -0500 (CDT) Received: from dlee74.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4DKo2CJ029972; Thu, 13 May 2010 15:50:02 -0500 (CDT) Received: from dlee03.ent.ti.com ([157.170.170.18]) by dlee74.ent.ti.com ([157.170.170.8]) with mapi; Thu, 13 May 2010 15:50:01 -0500 From: "Arce, Abraham" To: "linux-input@vger.kernel.org" , "linux-omap@vger.kernel.org" Date: Thu, 13 May 2010 15:50:00 -0500 Subject: [RFC] [PATCH v2 1/4] Input: matrix_keypad: Device driver interfaces Thread-Topic: [RFC] [PATCH v2 1/4] Input: matrix_keypad: Device driver interfaces Thread-Index: Acry3dribEhrPoRPQu+QSo8YIuXaKg== Message-ID: <27F9C60D11D683428E133F85D2BB4A53043E113BF7@dlee03.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 13 May 2010 20:50:07 +0000 (UTC) diff --git a/include/linux/input/matrix_keypad.h b/include/linux/input/matrix_keypad.h index c964cd7..552e11d 100644 --- a/include/linux/input/matrix_keypad.h +++ b/include/linux/input/matrix_keypad.h @@ -66,6 +66,13 @@ struct matrix_keypad_platform_data { bool active_low; bool wakeup; bool no_autorepeat; + + void __iomem *base; + u16 irq; + + int (*device_enable) (struct platform_device *pdev); + int (*device_shutdown) (struct platform_device *pdev); + int (*device_idle) (struct platform_device *pdev); }; /**