From patchwork Mon Mar 10 16:24:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Twiss X-Patchwork-Id: 3804221 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 934B7BF540 for ; Mon, 10 Mar 2014 16:32:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA00120260 for ; Mon, 10 Mar 2014 16:32:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D68012022F for ; Mon, 10 Mar 2014 16:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584AbaCJQct (ORCPT ); Mon, 10 Mar 2014 12:32:49 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.142]:8779 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753411AbaCJQcs (ORCPT ); Mon, 10 Mar 2014 12:32:48 -0400 Received: from [85.158.139.35:8683] by server-6.bemta-5.messagelabs.com id 37/B1-19576-E29ED135; Mon, 10 Mar 2014 16:32:46 +0000 X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-13.tower-179.messagelabs.com!1394469134!31062966!2 X-Originating-IP: [82.210.246.133] X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14826 invoked from network); 10 Mar 2014 16:32:22 -0000 Received: from mailrelay1.diasemi.com (HELO NB-EX-CASHUB01.diasemi.com) (82.210.246.133) by server-13.tower-179.messagelabs.com with AES128-SHA encrypted SMTP; 10 Mar 2014 16:32:22 -0000 Received: from mailrelay1.diasemi.com (10.1.17.243) by NB-EX-CASHUB01.diasemi.com (10.1.16.140) with Microsoft SMTP Server id 14.2.309.2; Mon, 10 Mar 2014 17:32:17 +0100 Received: from swsrvapps-01.diasemi.com (Not Verified[10.20.28.141]) by mailrelay1.diasemi.com with ESMTP Gateway id ; Mon, 10 Mar 2014 17:32:16 +0100 Received: (from stwiss@localhost) by swsrvapps-01.diasemi.com (8.14.3/8.14.3/Submit/Dlg) id s2AGWEqc007766; Mon, 10 Mar 2014 16:32:14 GMT X-Authentication-Warning: swsrvapps-01.diasemi.com: stwiss set sender to stwiss.opensource@diasemi.com using -f Message-ID: In-Reply-To: References: From: "Opensource [Steve Twiss]" Date: Mon, 10 Mar 2014 16:24:04 +0000 Subject: [PATCH V1 1/2] mfd: da9063: Linkages for ONKEY support in core files To: Dmitry Torokhov , Lee Jones , Samuel Ortiz CC: David Dajun Chen , LKML-INPUT , LKML-KERNEL , Mark Brown , Philipp Zabel MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Opensource [Steve Twiss] This change adds the name field "ONKEY" to the properties of the the OnKey IORESOURCE_IRQ resource structure (part of the mfd_cell Onkey resource). The addition of bool key_power which will be passed to the onkey driver and allow KEY_POWER support to be turned on/off as a driver configuration option. Signed-off-by: Opensource [Steve Twiss] --- Checks performed with linux-next/next-20140307/scripts/checkpatch.pl da9063-core.c total: 0 errors, 0 warnings, 189 lines checked pdata.h total: 0 errors, 0 warnings, 112 lines checked This change is a dependency for the new DA9063 OnKey driver which forms the remainder of this patch set. This patch applies against kernel linux-next next-20140307 Regards, Steve Twiss, Dialog Semiconductor Ltd. drivers/mfd/da9063-core.c | 1 + include/linux/mfd/da9063/pdata.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c index e70ae31..b410a14 100644 --- a/drivers/mfd/da9063-core.c +++ b/drivers/mfd/da9063-core.c @@ -60,6 +60,7 @@ static struct resource da9063_rtc_resources[] = { static struct resource da9063_onkey_resources[] = { { + .name = "ONKEY", .start = DA9063_IRQ_ONKEY, .end = DA9063_IRQ_ONKEY, .flags = IORESOURCE_IRQ, diff --git a/include/linux/mfd/da9063/pdata.h b/include/linux/mfd/da9063/pdata.h index 95c8742..612383b 100644 --- a/include/linux/mfd/da9063/pdata.h +++ b/include/linux/mfd/da9063/pdata.h @@ -103,6 +103,7 @@ struct da9063; struct da9063_pdata { int (*init)(struct da9063 *da9063); int irq_base; + bool key_power; unsigned flags; struct da9063_regulators_pdata *regulators_pdata; struct led_platform_data *leds_pdata;