From patchwork Mon Feb 4 11:54:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14522 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3AE8523F96 for ; Mon, 4 Feb 2013 11:58:17 +0000 (UTC) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by fiordland.canonical.com (Postfix) with ESMTP id EB675A19236 for ; Mon, 4 Feb 2013 11:58:16 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id da11so3461991veb.38 for ; Mon, 04 Feb 2013 03:58:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=e6VQ8/BTKOEE6yhbg1RTVw8sFVBx2w3f4Bx13B6dViM=; b=XHIm2cr58UYn26INuDIRyIGO/sNnokAXQgMkF4Q0wi0X2Hyc/akaJKvcDAVVZTXryV 2/CNr44tM3rrr6Y1OQvaGHN0ZW7p4e3LAezpiAZQHWxxIDbRDpGyGuz8ki7NAz00XiFt eIG/uMwrwqqtdHkoErohnmRsOPOOU/IK2Quw6OWZEFkuJXF7TSTXWU0+OrlNldzs4qrE JNL1dJoOCeP2Zs31dwQE8qvJWXJAqfsmSNhf2nsBL7KwUUdhpT7x/xKl7i4LVq8wg0CB scFJRaQACqGO6DzM0HImzpLeLZuT1z7hfc0smWD4uQ8QHT/nL3ZFVWMR9GIy6wOnsrOP 09Uw== X-Received: by 10.58.48.231 with SMTP id p7mr18057473ven.11.1359979096492; Mon, 04 Feb 2013 03:58:16 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.252.8 with SMTP id zo8csp83151vec; Mon, 4 Feb 2013 03:58:15 -0800 (PST) X-Received: by 10.194.174.234 with SMTP id bv10mr34763305wjc.47.1359979095535; Mon, 04 Feb 2013 03:58:15 -0800 (PST) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by mx.google.com with ESMTPS id bd5si5715778wjb.165.2013.02.04.03.58.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 03:58:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.171 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.171 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f171.google.com with SMTP id hn17so1494556wib.4 for ; Mon, 04 Feb 2013 03:58:15 -0800 (PST) X-Received: by 10.180.97.197 with SMTP id ec5mr9882578wib.1.1359979095123; Mon, 04 Feb 2013 03:58:15 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id j9sm12937128wia.5.2013.02.04.03.58.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 03:58:13 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org, broonie@opensource.wolfsonmicro.com Cc: Lee Jones Subject: [PATCH 73/73] ARM: ux500: Pass regulator platform data using the new format Date: Mon, 4 Feb 2013 11:54:28 +0000 Message-Id: <1359978868-28736-74-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359978868-28736-1-git-send-email-lee.jones@linaro.org> References: <1359978868-28736-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkyqCYzLACTscsN7V8YX8v3za+PFgbsNDc+fHxnroz5OI7THwTvzlI/X8WZ2Me8XAkPjwgJ Regulator platform data is now passed though a single structure as opposed to the old way where four separate struct elements were required. This patch makes use of the new format. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 5 +---- include/linux/mfd/abx500/ab8500.h | 11 ++--------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index d453522..b47192d 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -217,10 +217,7 @@ static struct platform_device snowball_sbnet_dev = { static struct ab8500_platform_data ab8500_platdata = { .irq_base = MOP500_AB8500_IRQ_BASE, - .regulator_reg_init = ab8500_regulator_reg_init, - .num_regulator_reg_init = ARRAY_SIZE(ab8500_regulator_reg_init), - .regulator = ab8500_regulators, - .num_regulator = ARRAY_SIZE(ab8500_regulators), + .regulator = &ab8500_regulator_plat_data, .gpio = &ab8500_gpio_pdata, .codec = &ab8500_codec_pdata, }; diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 1cb5698..c7e33c8 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -266,8 +266,7 @@ struct ab8500 { const int *irq_reg_offset; }; -struct regulator_reg_init; -struct regulator_init_data; +struct ab8500_regulator_platform_data; struct ab8500_gpio_platform_data; struct ab8500_codec_platform_data; @@ -275,18 +274,12 @@ struct ab8500_codec_platform_data; * struct ab8500_platform_data - AB8500 platform data * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used * @init: board-specific initialization after detection of ab8500 - * @num_regulator_reg_init: number of regulator init registers - * @regulator_reg_init: regulator init registers - * @num_regulator: number of regulators * @regulator: machine-specific constraints for regulators */ struct ab8500_platform_data { int irq_base; void (*init) (struct ab8500 *); - int num_regulator_reg_init; - struct ab8500_regulator_reg_init *regulator_reg_init; - int num_regulator; - struct regulator_init_data *regulator; + struct ab8500_regulator_platform_data *regulator; struct ab8500_gpio_platform_data *gpio; struct ab8500_codec_platform_data *codec; };