Message ID | 1428006708-13690-2-git-send-email-manabian@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1B45D9F350 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 2 Apr 2015 20:35:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4476A2035E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 2 Apr 2015 20:35:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7805D2035B for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 2 Apr 2015 20:35:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdlnL-0001Yr-B7; Thu, 02 Apr 2015 20:32:55 +0000 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ydln9-0001Ki-26 for linux-arm-kernel@lists.infradead.org; Thu, 02 Apr 2015 20:32:43 +0000 Received: by labe2 with SMTP id e2so68310723lab.3 for <linux-arm-kernel@lists.infradead.org>; Thu, 02 Apr 2015 13:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Izn2X/qhJNj90SSFiM3QIMzbpi1hpgdMV1UEhPhvd1A=; b=ra3fw0BpGdoPg58MCxF/Mq3e6qW4Qd2hGeYO98rDjB55HIn7NLUXu63wvZc/x+Dp9W QjGxUI0rSoq7w+2cMtfPVyxJEZJz6vVZ/fVRD4f+lpi8A3dbHgl0NyB7HBmyV+yvTEEX kuAJ7YrsAkv6/2NXMq5XPdJ7sElbGnvC3TR+xQ8Tw6y7mdoSyFAMLtJcTZv9qL7ntUbO e/fjeIaEx11VlmUh3B3S26ZuX/Jsggj4xEYlD/ahqslZvHn8dR1E8Cn5BzQnD5wxEV+G 3C+CPd1+rELeAbw4kxUvAX42dmqtJwBIdNuh1x/tzUNumddeM5hvPCtHJWOnqpFc8SZQ DE2A== X-Received: by 10.152.27.166 with SMTP id u6mr17232769lag.94.1428006740699; Thu, 02 Apr 2015 13:32:20 -0700 (PDT) Received: from localhost.localdomain (183.90-149-48.nextgentel.com. [90.149.48.183]) by mx.google.com with ESMTPSA id lc8sm1009185lbc.33.2015.04.02.13.32.19 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Apr 2015 13:32:19 -0700 (PDT) From: Joachim Eastwood <manabian@gmail.com> To: mturquette@linaro.org, sboyd@codeaurora.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/6] clk: add table_size member to struct clk_mux Date: Thu, 2 Apr 2015 22:31:43 +0200 Message-Id: <1428006708-13690-2-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1428006708-13690-1-git-send-email-manabian@gmail.com> References: <1428006708-13690-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150402_133243_317258_290040CE X-CRM114-Status: GOOD ( 10.04 ) X-Spam-Score: -0.8 (/) Cc: devicetree@vger.kernel.org, Joachim Eastwood <manabian@gmail.com>, ezequiel@vanguardiasur.com.ar, arnd@arndb.de, ariel.dalessandro@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 |
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 5591ea71a8d1..d5ee7ec7443c 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -411,9 +411,10 @@ struct clk_mux { void __iomem *reg; u32 *table; u32 mask; + spinlock_t *lock; u8 shift; u8 flags; - spinlock_t *lock; + u8 table_size; }; #define CLK_MUX_INDEX_ONE BIT(0)
Adding this field makes it a lot easier to loop through and register predefined tables containing struct clk_mux elements. Also reorder members to prevent unnecessary padding in struct. Signed-off-by: Joachim Eastwood <manabian@gmail.com> --- include/linux/clk-provider.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)