From patchwork Mon Jul 15 20:12:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E5E96C5 for ; Mon, 15 Jul 2019 20:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E6F828553 for ; Mon, 15 Jul 2019 20:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 322E228560; Mon, 15 Jul 2019 20:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1009B28553 for ; Mon, 15 Jul 2019 20:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731055AbfGOUMs (ORCPT ); Mon, 15 Jul 2019 16:12:48 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36381 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730371AbfGOUMs (ORCPT ); Mon, 15 Jul 2019 16:12:48 -0400 Received: by mail-pf1-f196.google.com with SMTP id r7so7942608pfl.3; Mon, 15 Jul 2019 13:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EFHU8jgY3TxdaihzIPG/nX9WOPct/kS+iwLsN1JrgDM=; b=Xa5ufhqNsV9uATb0H6bQ9qRGI8kVtjsLrscoS0+hms16q6PLbWMSaa6sQX8NOQRkhH YE/6yIF6C+Oa1eKVkzw9iQ6Sukx8HB5eMmPJarAUJ/S8YmGdX5e1RJ3Xe8xIIVr9Lrvp 16RkgL9NpGLfLKcnxUG1nt4CfozEkvEsIdiuEgE9J3XaXRTMEWVMpxS1G96tPUwsp/Ce RuDgMewdxAx/cEvnq9uUGg06xpALNXL56bw+EGdLBCYs0dnjAlPjDRsM2eCgMQ/ufFQT 7Qxj0p/qGDkQnZYG2MZza4/KzdOab9ANH6CK7ZvgQzFSYNmW6+nINttW+N33VEcmIu6V 4DWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EFHU8jgY3TxdaihzIPG/nX9WOPct/kS+iwLsN1JrgDM=; b=dt4rm+1bIL2xuL8YvZtRlvuQBHdGKYSFJRI9UWqgX9ITuHRJe50e4YaRfGBBE5Z90t 101qY8qxYTq1L+/N9iVqzhgLiuNPmvT3eHoKXfHUffMu4kPfAES2QctMMQpQSHWe9QtD 489LGZEXl5oyyNsDqehbuglOray7wFM9hFJ91UrlYa1LLuoUMerS4pUzboOiyE/Ca1Br iCwiZVVpVENRZNti9M/5BcfZsqkAhf9kWMHK7b/Dq5CAheRfsy/nMyq10rr9bXie6hGA 65Fe8y3Ctyv1QpU+bd9UXgm62aJ9mYSZbLEAZ3RwDJgMJ1CuGgW9BilGrO/lh/2uufYS NjNQ== X-Gm-Message-State: APjAAAUNQQ2Au2OfW52D7U7LOzbffQhaWKzFRY3XvPZ81JpWkudc91Em C7iwAQ+ThiZ+W5l4GHFL4XBq893q X-Google-Smtp-Source: APXvYqxEIpLPloFXmRit3o8nJFvto+NCwRwwNByFuexN1TfVy9Gep+QkIU4Yqc32w7cRa7kQT9cr2w== X-Received: by 2002:a63:ad07:: with SMTP id g7mr26834526pgf.405.1563221566834; Mon, 15 Jul 2019 13:12:46 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:46 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] clk: Sync prototypes for clk_bulk_enable() Date: Mon, 15 Jul 2019 13:12:29 -0700 Message-Id: <20190715201234.13556-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No-op version of clk_bulk_enable() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 3c096c7a51dc..a35868ccc912 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -819,7 +819,8 @@ static inline int clk_enable(struct clk *clk) return 0; } -static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data *clks) +static inline int __must_check clk_bulk_enable(int num_clks, + const struct clk_bulk_data *clks) { return 0; } From patchwork Mon Jul 15 20:12:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044917 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31609746 for ; Mon, 15 Jul 2019 20:12:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FD9728553 for ; Mon, 15 Jul 2019 20:12:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1402C28560; Mon, 15 Jul 2019 20:12:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEF1028553 for ; Mon, 15 Jul 2019 20:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732275AbfGOUMt (ORCPT ); Mon, 15 Jul 2019 16:12:49 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35450 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732101AbfGOUMt (ORCPT ); Mon, 15 Jul 2019 16:12:49 -0400 Received: by mail-pl1-f194.google.com with SMTP id w24so8860911plp.2; Mon, 15 Jul 2019 13:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w+5ugNZRQxfWrkMH7xBRPlgfACJf+lsKKWOLG3sHEZI=; b=RXN4+qHRhdhlOH7Or3fIU7WZ3bhRzkZTBhNS3mOj7DWhbbfQNQrFJAUfC2mVT5X5vN B5Qrofj/qRnQ5/hi3cnwHTGVXrpz4hwMjA4fVhyu/l3I4zdtTVx72HLNgXfbmHiPsqTF ibCeSkE/39hi7T47h1BXJidDJs5wSlXVEhX84ZdO5f1rexsZupXudtJyvafu/VQYxq6O 1q2e2FhoyJ8tiSEyujaKUI0JDN+iUbPUHP9qrCL+XPCF+o2XekqVq06JuN2GmSJ1xteu +kl/oKTHfx7ChAbc7ytkXCrC0I4nqBaihbA3lcBAMWLPVQCoCzttA4HlfW7fn007dtaK HWIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w+5ugNZRQxfWrkMH7xBRPlgfACJf+lsKKWOLG3sHEZI=; b=n4sZmkvsEl5QQHlgIKUthYTzIdIARVK569Ck6oPS+POPP5Lw6dtQRTO1baGwNFUc2J qkC/l6zV0fMC2a2vDOzXaMfX1WXArKN2H/hmfIk2rJuMN3d8KJqtqnJrD2ixlA3OAy9Z Rez0WqVwGafGpGV2Bd4P3q5VMX2+k8P/QRdpH1qUOR1C8bjzMxcAsJFyvKy8ldoc8lS2 k+2woy0rczls+tZHdWYoDM7YhvIAUIYLI3Ifzzl8YeiSGo3pDdmIgPykDdFIj2stSTv6 kXkvhI0VSE4z3X/CZY8fIFZX6WyY41YWeVHpS65rX4TW5eBxmTp9CPc7IFp8aj+WfCN7 yXYg== X-Gm-Message-State: APjAAAWnoEWZd2YyGlqYvHsRYuHZDotDZnoWAxDSksExD+CxZxjE22xx R6503Fi7Ci32JFg/LzMXlm6T6xbD X-Google-Smtp-Source: APXvYqwF7wMHHLOh5VMqIIA0qEVHT7dxhESDoigyz6IJ/GW1dktwZYO6iLaPJ/Z82bC1NuhVgJ1HpQ== X-Received: by 2002:a17:902:204:: with SMTP id 4mr29695152plc.178.1563221567958; Mon, 15 Jul 2019 13:12:47 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.46 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:47 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 2/6] clk: Sync prototypes for clk_bulk_prepare() Date: Mon, 15 Jul 2019 13:12:30 -0700 Message-Id: <20190715201234.13556-2-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715201234.13556-1-andrew.smirnov@gmail.com> References: <20190715201234.13556-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No-op version of clk_bulk_prepare() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index a35868ccc912..8af6b943bb9a 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -239,7 +239,8 @@ static inline int clk_prepare(struct clk *clk) return 0; } -static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data *clks) +static inline int __must_check +clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks) { might_sleep(); return 0; From patchwork Mon Jul 15 20:12:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 64C5F746 for ; Mon, 15 Jul 2019 20:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50CF828538 for ; Mon, 15 Jul 2019 20:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44FA42855A; Mon, 15 Jul 2019 20:12:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E63F628538 for ; Mon, 15 Jul 2019 20:12:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732345AbfGOUMx (ORCPT ); Mon, 15 Jul 2019 16:12:53 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36381 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732287AbfGOUMu (ORCPT ); Mon, 15 Jul 2019 16:12:50 -0400 Received: by mail-pf1-f195.google.com with SMTP id r7so7942640pfl.3; Mon, 15 Jul 2019 13:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Ti3vKrPw6fMZdayISTTnJ8tLgl7jwdarVcpue/8npQ=; b=rq4w0oXP0yilo69hxgkjEo84Ctc6II9yrsgPI6oFG8zrG0RyFQuADTqv/H1aREK5jX ewXvO9Nz605E6mbqwD71eAawebV3RQ9brbNqGgmV5mEYAmJ/fEu37IAplbbtvQCxe/Tv Hzw4DF4HLzlK+azqHA0ICpcGPk9gONGsagDRzJLlDeoO6zp8tIQZwdZBKO/zfxaHqBvH /ce7tnN5Qu8YkbiMPQSZdZTjrkbrIxbGk6YqG5DjQB6+dC+bJysLYz665hHAy05ttYaR VSYfazR2eDsw+u3y8+sPHPPlxdw+nORfUXZM5ZlaDU3nBpnMMg14+Rm+VoDEeQ3x4zSZ /OcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Ti3vKrPw6fMZdayISTTnJ8tLgl7jwdarVcpue/8npQ=; b=Pvdu6Ptz8SqX24ZUVwGckK4IK/srZa6GxCygcpxeHnwr5Cj3h9zzdfw0FaCaRF1iH1 MG/aKN+pacT4tXIbitUurHH3B0JjOt/Z4mgHd5/H6kAkDI/RrolnGKzc+wp5Ub0F1mBw AsrD0N/a7FSSBklWUAwRWns/5nz4L1Qy+BMPfCfPyUzKPEQus13WeZP4dHDKy9Ub+kye U0ERGKhgj218GXXDiKPWnB6zewKytfn3vpS/UA8u7WwWKyMkczROseV+fcnkg1ER+rbU Mca862VxYI0sYdMCOA7x+S1pEsZKmlc3LjVUZ369lxWHrqJ3zwkODbawnDcfYN0qFanJ A0kA== X-Gm-Message-State: APjAAAVip75eMSIzHWYMzP/C/dvK3MBTAXxYEQzkm2BkJ0gSJoypjMWl R1Pi2ppGgCTz0vKBU2Zn9MPn9a4o X-Google-Smtp-Source: APXvYqys2P9qBCvFBDT6gKiu05SBVldEmqbzM8SpppFTMP3Kp7DqVQP4w/V3EUWFGEp/pC7ikcuKoQ== X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr30811850pjr.79.1563221569163; Mon, 15 Jul 2019 13:12:49 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:48 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 3/6] clk: Constify second argument of clk_bulk_prepare_enable() Date: Mon, 15 Jul 2019 13:12:31 -0700 Message-Id: <20190715201234.13556-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715201234.13556-1-andrew.smirnov@gmail.com> References: <20190715201234.13556-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both clk_bulk_prepare() and clk_bulk_enable() take const struct clk_bulk_data, so change clk_bulk_prepare_enable() to do so as well. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 8af6b943bb9a..fafa63ea06b9 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -919,8 +919,8 @@ static inline void clk_disable_unprepare(struct clk *clk) clk_unprepare(clk); } -static inline int __must_check clk_bulk_prepare_enable(int num_clks, - struct clk_bulk_data *clks) +static inline int __must_check +clk_bulk_prepare_enable(int num_clks, const struct clk_bulk_data *clks) { int ret; From patchwork Mon Jul 15 20:12:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ACBA014DB for ; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C89B28553 for ; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 909F228538; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6841128553 for ; Mon, 15 Jul 2019 20:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732341AbfGOUMw (ORCPT ); Mon, 15 Jul 2019 16:12:52 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39845 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732101AbfGOUMv (ORCPT ); Mon, 15 Jul 2019 16:12:51 -0400 Received: by mail-pg1-f196.google.com with SMTP id u17so8242360pgi.6; Mon, 15 Jul 2019 13:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gD+CSHmbXTuo7zYwij9NuKnefs9nMb0BCJwuTq+GjOE=; b=lwr/TN3g0mpILHpAXP2GhKXEBlNGyVTGRl0qbyiAtw+phokxusOHpSrZHt1ekrWxDw BwIu6fqQMuufIPA+Plq9F8X65ZQq/wsdLZxgZ89PHK4xFiTJrJV60jT7ckWMsb6xFmHH dK/OgTlWCT87D1BN7rPDjAx007MJ2ybgrLOQJCpU2SpCDemEBlO1Mh+n5LUndrjBuuJp Opvk1klUdyYM0bCZ+1Wo+QU8WBgcedKwa3P2UHf00Ryy32h5unoVISU83ihBOvH7gyok NSkxG437NZNPljX3h9M4Fdo8kknXqF3QlVayT6FSw2Tjz3WJjw8OZGe3PEYwnAoKyGip 2OXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gD+CSHmbXTuo7zYwij9NuKnefs9nMb0BCJwuTq+GjOE=; b=Qv7rPQk+HKuoCLwM2AYMqM9pnuoELDI5yVJlktc+wgqd5Wh87bQivMzKB80GeBO39p sIzkK/Y2LvAjTyfNDJuVQ2mK+PlvL04tuUCmXnXzThOc1yYQ8K3ePk0ekrNYUA3s3BLC XsqLKBv23p9SdpckJLFKRS/DgAB6ak9QIubjXd4LZySlisjllozWLvLWYYjc3iXnJMuC mBdeRjYbv0aaJqUMeBXEgOJWec+W6Su1o991XWVruHGh4GYgVR81HKt7uZHIpDcRX1dM uEod6iAaTMwW7z62avYqYAS3ha52MqipI32e+KTDfWvj9xrEHkmysOuBkrW+I1UIerrt bWow== X-Gm-Message-State: APjAAAWrIWQ6E5MgE6WgCcarr2kZS2O15SwbU/tIK8zD7Lf3uZuSco6x EIZuHfuREBbPFxhKCbXBZm225pqT X-Google-Smtp-Source: APXvYqyqsEXhuac6p4IjlkMf7qEFu3xC574kbkutAh6Kf1U57ZeBwPilQN2eikLmgfB5XgTfNwX3vg== X-Received: by 2002:a63:231c:: with SMTP id j28mr2119083pgj.430.1563221570614; Mon, 15 Jul 2019 13:12:50 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:49 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 4/6] clk: Sync prototypes for clk_bulk_disable() Date: Mon, 15 Jul 2019 13:12:32 -0700 Message-Id: <20190715201234.13556-4-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715201234.13556-1-andrew.smirnov@gmail.com> References: <20190715201234.13556-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No-op version of clk_bulk_disable() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index fafa63ea06b9..2d3f2a55795a 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -830,7 +830,7 @@ static inline void clk_disable(struct clk *clk) {} static inline void clk_bulk_disable(int num_clks, - struct clk_bulk_data *clks) {} + const struct clk_bulk_data *clks) {} static inline unsigned long clk_get_rate(struct clk *clk) { From patchwork Mon Jul 15 20:12:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DF266C5 for ; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E46D28538 for ; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 729DF28560; Mon, 15 Jul 2019 20:13:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 486B928538 for ; Mon, 15 Jul 2019 20:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732359AbfGOUNF (ORCPT ); Mon, 15 Jul 2019 16:13:05 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37638 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732344AbfGOUMx (ORCPT ); Mon, 15 Jul 2019 16:12:53 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so8860374plr.4; Mon, 15 Jul 2019 13:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rliH8Z9/AMGeY4YMz60xVhAI42Yyu7aejFX+MviXFi8=; b=e+N+PDtM5s802dekMVKshzBTu7UFxDCa82kuwmHHsWf/u1Fl+HHN1qJhJuuJWjNB98 dszTDxLAm8YyXwBg8oY3ocSC/eToE/O2TbY1vG9pJKWMdBzo550l/9DW1ZHOkesluyyz EAFa6sS0OR7d4PBAQeQ/xgJdG+rAsGkSvN6e2QSYREeoG7NX7CHwyEsG2PKfEIrYpC2v DxX2A/tRcF78VmqlB9y5mtBK7qs5tArHnFd76zqG4ekhsxh1IF9hiA4Inkfk2NczVPzW 3Wgc1Jotr9N3We4VY+s5J7TtV/YE0u23uoPcKZaEsS5ZQ7I6cqknT/Ss0yxh8VBtUlj1 UlNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rliH8Z9/AMGeY4YMz60xVhAI42Yyu7aejFX+MviXFi8=; b=m3hg5G8PCJQAHGaphcknDraTizanj/CIxvP8r2jqcY4lSgGIdb/60LVikmAS+XylVy RBYpnK8YrijgF7yH0yxQgE7kXcmeej0/SLavs64vgdGJB80IMBgWir+cnJi38Q1d55PX 4XARaIYloek7S3lr5azLqTQcTRzmpb3A3V0b0YnzXTyMUaWhtuuTmVD0KtSdFGAO/FVW +w2ZALdKvcI5+47AlyZ57ew7Ihflm5rpt2zSFugKPu2cA5w1ObSRy0GQCtDria3PauzT pL0J4RKoxrPhrw2lrQU3Ty6W3nuZWzwaBbIyYveETiTb5TdevYQc60vdSq0yROakhty5 AWbQ== X-Gm-Message-State: APjAAAV8puPOrrytdzLpJPTlwMYPy9RSO0A/V610j+89MWXPK3GMJOzu TIsuW5lIUGQLJdwZQB+8ky6/qnua X-Google-Smtp-Source: APXvYqy8DRjK41Iu4VuR/EY0KSKX5Ch868kLyJrTD9sgAiG2KP6R4bqXde/c2NKif5JiNwcbPJlPqg== X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr29667313plk.180.1563221572139; Mon, 15 Jul 2019 13:12:52 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:51 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] clk: Sync prototypes for clk_bulk_unprepare() Date: Mon, 15 Jul 2019 13:12:33 -0700 Message-Id: <20190715201234.13556-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715201234.13556-1-andrew.smirnov@gmail.com> References: <20190715201234.13556-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No-op version of clk_bulk_unprepare() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 2d3f2a55795a..3956ae05b1cf 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -264,7 +264,8 @@ static inline void clk_unprepare(struct clk *clk) { might_sleep(); } -static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks) +static inline void clk_bulk_unprepare(int num_clks, + const struct clk_bulk_data *clks) { might_sleep(); } From patchwork Mon Jul 15 20:12:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11044921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BFAA6C5 for ; Mon, 15 Jul 2019 20:13:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C25928538 for ; Mon, 15 Jul 2019 20:13:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 306F42855A; Mon, 15 Jul 2019 20:13:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20BE728538 for ; Mon, 15 Jul 2019 20:13:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731368AbfGOUM7 (ORCPT ); Mon, 15 Jul 2019 16:12:59 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45009 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732359AbfGOUMy (ORCPT ); Mon, 15 Jul 2019 16:12:54 -0400 Received: by mail-pf1-f195.google.com with SMTP id t16so7923925pfe.11; Mon, 15 Jul 2019 13:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4AxHo20cpPm/W3wEm88+I5u1phSMUfiBcovFIe0miYs=; b=XUUaPG5nxmt6MX9oO4OuNI7ZEmksD7SNdmudaVKnX9gtzsrAfvXOJ++XysB5veR5Z7 774wUO4X32g2WGY9TZbmLV2NU5qSuYbLZz2eEjZRNYFyZwdNx+Nicmu/KLEvRXa6NfjJ UYsLordgh/KaPoxBAF4q745TnQukni134KSpZbYdp+rIvILlM6GP2pjBMEHl2JkAl/eN 6caSdHswVYlUcqstbM2CyySzgg6qNxAkBlu9hlU7lanUdh+7hCFhSQ887EWJfymxI9gV wbKdzb10plrLqWYe4xYPUGipPPH/VNHYeo1AZI6R+MZaNG1/BHDnUU7nbhnO9Obc1fvp TcAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4AxHo20cpPm/W3wEm88+I5u1phSMUfiBcovFIe0miYs=; b=rIc/YoglmjeCo9ID3p6/AjABuSMOJn4TlQvnc4mlqdgdqTdV/sYvWWVIGbENgd7qs9 baem9EXE9kLKztxInhvAvFT2+vQieJji8Dg6bCAoyKK7cKOTcObqB0Vid61zvm/uvxdY TNrtSCAtLGX70w+SCRs1zdNDvqziO3ZL3JG+darrxJ92rhlQPjf8jh9MOzNXbEZGBj+k mcFopoC8NT+utRpRH1NJ9bRLWdBZzteAaXpvTvmaaS86Q5Vl7aZmsHaF2LRsHd1XSz57 K4/Oz6xhCE4dWB7CRUnBKEWD8CB9hwo6dcTQsXYE/DwSw/qmgvcgUSSyY+wZ6iALxNIS eijg== X-Gm-Message-State: APjAAAXwq8KMpOpqJVHJ5h/d+m5iF0dj5xNHVK7pg7Ml9MtC5VPVuV3A 1IQOpPCiUxDCOZvFC44xIq6MMObR X-Google-Smtp-Source: APXvYqwz7qi222kKr5U+GxET6ohcsuPcHHhRH2cnZi5gAEZU/EPVSTrv90JucGBWlPFi5pBHRep0wA== X-Received: by 2002:a63:dd4e:: with SMTP id g14mr18449598pgj.227.1563221573007; Mon, 15 Jul 2019 13:12:53 -0700 (PDT) Received: from localhost.lan (c-67-185-54-80.hsd1.wa.comcast.net. [67.185.54.80]) by smtp.gmail.com with ESMTPSA id d21sm7327783pgm.75.2019.07.15.13.12.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 13:12:52 -0700 (PDT) From: Andrey Smirnov To: linux-clk@vger.kernel.org Cc: Andrey Smirnov , Russell King , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 6/6] clk: Constify second argument of clk_bulk_disable_unprepare() Date: Mon, 15 Jul 2019 13:12:34 -0700 Message-Id: <20190715201234.13556-6-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715201234.13556-1-andrew.smirnov@gmail.com> References: <20190715201234.13556-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both clk_bulk_disable() and clk_bulk_unprepare() take const struct clk_bulk_data, so change clk_bulk_disable_unprepare() to do so as well. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 3956ae05b1cf..7a795fd6d141 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -936,7 +936,7 @@ clk_bulk_prepare_enable(int num_clks, const struct clk_bulk_data *clks) } static inline void clk_bulk_disable_unprepare(int num_clks, - struct clk_bulk_data *clks) + const struct clk_bulk_data *clks) { clk_bulk_disable(num_clks, clks); clk_bulk_unprepare(num_clks, clks);