Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758856Ab3CDTBg (ORCPT ); Mon, 4 Mar 2013 14:01:36 -0500 Received: from hqemgate04.nvidia.com ([216.228.121.35]:3518 "EHLO hqemgate04.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758829Ab3CDTBe (ORCPT ); Mon, 4 Mar 2013 14:01:34 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 04 Mar 2013 11:01:05 -0800 From: Rhyland Klein To: Grant Likely , Samuel Ortiz , Anton Vorontsov , Mark Brown CC: Laxman Dewangan , , , , Rhyland Klein Subject: [PATCH v2 2/4] mfd: tps65090: Add resources for charger Date: Mon, 4 Mar 2013 14:01:47 -0500 Message-ID: <1362423709-29596-3-git-send-email-rklein@nvidia.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1362423709-29596-1-git-send-email-rklein@nvidia.com> References: <1362423709-29596-1-git-send-email-rklein@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 46 Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein --- v2: - no changes since v1 drivers/mfd/tps65090.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index 98edb5be..88846ae 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -56,12 +56,22 @@ #define TPS65090_INT2_MASK_OVERLOAD_FET6 6 #define TPS65090_INT2_MASK_OVERLOAD_FET7 7 +static struct resource charger_resources[] = { + { + .start = TPS65090_IRQ_VAC_STATUS_CHANGE, + .end = TPS65090_IRQ_VAC_STATUS_CHANGE, + .flags = IORESOURCE_IRQ, + } +}; + static struct mfd_cell tps65090s[] = { { .name = "tps65090-pmic", }, { .name = "tps65090-charger", + .num_resources = ARRAY_SIZE(charger_resources), + .resources = &charger_resources[0], }, }; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/