From patchwork Thu Nov 28 14:44:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E31B13B6 for ; Thu, 28 Nov 2019 14:45:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 372EB21771 for ; Thu, 28 Nov 2019 14:45:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726733AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:32973 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MYvLi-1iN5TA1aOO-00UqEE; Thu, 28 Nov 2019 15:45:16 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 1/7] drivers: clk: unexport clk_register_gpio_gate() Date: Thu, 28 Nov 2019 15:44:44 +0100 Message-Id: <20191128144450.24094-1-info@metux.net> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K1:ytzHB8lP63sR7iFpMp/kXfj5bC7FsWtA/SOrauIwrX+Okt4XuPp K35KQMKwjdqYlLN0YaVavNIi7frbhpRr+h7eCMM9a0rMhhOC1a3ecatgHO7DVT2M2e3CjxH FwcvrFpRruy54yxjNgInYjsiOcQOAAevSlLsShKRrmMajMPxzLvGS4bUI3ltofv3f9pEGNQ zKXshcr3iYR8KKHsB0a3g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xxU+PuowVDM=:1RF/mbqmtWkrcSnfqUxM2x JtxeMPVJVaQi8ufo25KmM+atvFzNaBwOTY0nxdRrqxA+sXThswHgC1pXvtH7Q9DUvJ+SYfT9B 87ORJxBLs3H7alfLPFzmvSZ5VwSaWhSA0ZLsXwTZ9eCg3BTXxmwtIcn2+lGmweMCGXtdLn13V Z1ZKMD4O4yNzVjKlTkU5TfpYGdvSxRIYqawb76Zn1sVNE2pJqdGoFhnk/JdquLWWD4UnrhRut lcSGhVCBSVw8xKL115O2wsj082xVoxAN5+RIbA8fCEdTODzikUX/ejhvzAFYjSk8ytoRrmd5v BBI5Q9oHRfOgnJpmyrllQ/2q2/n8pJ9Ij8h8q8gI9yMXNajHHWsQlyak64vRVQrxO7/I1zMki dtiZ7YE1+BHlzzPYWMNUzyYi34U0B0m2a8LD5zaUfWDk2JrN13vrRt6ozsEQkyGIWxIXycVBB tyqYTWgx5qdJnWJx78w+NHQ5rut1X7pIgz2GIfK37UZ+aGS3jrMmBze2Y4dJTM8jcF7xOaA2p SfnPEPU9jAV6Tcjgsa5PqJDTGpmIcORg/zva14szzFRRvuy+qakGNUp1rb4wB+psCGtCRIOyC GISekHaP8YtvQ8ZjRzlRJ7WsA0yjMH4830YU4YTVHGt04ppWbsCm98+uYqkSa8XruG9aoVFBA Dn5aL2sQpGD88i9EYsZ9dGaEMIHkUV8o3DVV1n96WLt3Elf6HNxqfx7X16XCtiNzorXfTihR9 8yvgX8de6jp6knOMoHpU9fRAiyqyuvVN448n1TJx/k1CUtSiG0yVLd558eSXUbCoFyqaNW/dt QJcqMKnYPby/f2Ac5Pv9MZOTgLAylJY0a1DS06k6c//hCx9vhnLvuzZrFlnBbfz1atIXGTArz PIUREeFZVhxciEj+rNXA== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The function clk_register_gpio_gate() doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index 9d930edd6516..f9f81a31984a 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -186,7 +186,7 @@ struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, } EXPORT_SYMBOL_GPL(clk_hw_register_gpio_gate); -struct clk *clk_register_gpio_gate(struct device *dev, const char *name, +static struct clk *clk_register_gpio_gate(struct device *dev, const char *name, const char *parent_name, struct gpio_desc *gpiod, unsigned long flags) { @@ -197,7 +197,6 @@ struct clk *clk_register_gpio_gate(struct device *dev, const char *name, return ERR_CAST(hw); return hw->clk; } -EXPORT_SYMBOL_GPL(clk_register_gpio_gate); /** * clk_hw_register_gpio_mux - register a gpio clock mux with the clock framework diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 2fdfe8061363..d283f9896e86 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -773,9 +773,6 @@ struct clk_gpio { #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) extern const struct clk_ops clk_gpio_gate_ops; -struct clk *clk_register_gpio_gate(struct device *dev, const char *name, - const char *parent_name, struct gpio_desc *gpiod, - unsigned long flags); struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, const char *parent_name, struct gpio_desc *gpiod, unsigned long flags); From patchwork Thu Nov 28 14:44:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5650914B7 for ; Thu, 28 Nov 2019 14:45:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E73C21771 for ; Thu, 28 Nov 2019 14:45:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbfK1OpW (ORCPT ); Thu, 28 Nov 2019 09:45:22 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:44231 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M8hEd-1iVe4j2fth-004kdf; Thu, 28 Nov 2019 15:45:16 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 2/7] drivers: clk: unexport clk_hw_register_gpio_gate() Date: Thu, 28 Nov 2019 15:44:45 +0100 Message-Id: <20191128144450.24094-2-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:8wHv1XyPtuQ9Q/kuYc5WWANDyR0hnbQtR5xxLnnqLlMBW6quR/l 1v7oFYqQ+nJD8UuuQ3BByXwAsc32F3jI5usdJube6EKMoTCg+1sXb8z9wr7zIM1jRkWXvdy TyYqlWf0yspPrVN1jROPQMHkQQlotGb4amuojentvSE91DL+YVkalDYi4WUFL2QcHsD4lIi WqEY5cUYrTgXuwpYLj8KQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3G94kiDwzmg=:71tEPawSbu9uEFtB7W8ez1 YrTb6RhPSwpE6N+SbPJwj1vl4ahFzTbR6DGLjDVc6DJiB+SgLqSMOpLz2ANeUxeDxRW96dAS+ RJDhameSgqZh7aTDOfyxFKmOeCNwt8dTU8Z4/kX/cdql6kKE0C6Y54V5p7g9/tj6SfWsCt+Wv eXaPsTUEoSySNHdTybJRIYDnE6/S267lHWo8bk5XdsAMB35khWbwLzl6NPdUpW/k+xLKLYbE6 idq1hEFJnK9Sf5CPEghtj1TtfeO5EZafCeoUUqNztshFhGXhL6rGQdYBa5cmSjWIWG8uVor+m jiK2Cwg4EgO4meeIcB4wKG9gr1xLwRlhuqCV2LeXIFSrH7wc3B/LRq0NSD/ca3uF4YFk1H1W8 flVUbqXxbEmkXQlIeVGD3SyDsHrGRiE3XT1/W3zvhhfR9JiijfdwXeBibTLdyxxhzK6tkmLcp H4dcqDZ5R6S2a1vO4o1iLmnI98R3FWYSh/03vX3TQ9VtTphR5ocxg+/6TV0UY27FHm+JSR6nM YOQo7UF5BCBGxBiIijTX/2NnxmFgZk2EU/+CyN81EX9VcRQ0/NMyUOFTPskwvMm0w7Pzc5e2z 8WvOksNTBGfvykui7If8/WeHO346ooDYYPOLlMnDyC91hUHw+2QAM7clwUZvB4SM70xvf6BrV DNdkJfD0LE9TXRZSEOfQtxN9BVprmY0DGHsMNeB3jPuGJqKK1z+fsmICjN5slDP1kjvwMFTRx gqdXH8Vcna7CN4HKnmnZCfrQLUrQ+s9krmIQl949rFBTnq4jfPLKEZ5U5Hqo+nwUWb6b34uwI 6/Dkfp7Ht2Tm5IRbTEbEcv5Zoih1wl8QA9HUNj4a4smFD4Ew+a51mA7hoX6fzvqAJzVWDjSVJ IbOhTfMqqS0pwZrhAOCA== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The function clk_hw_register_gpio_gate() doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index f9f81a31984a..f457b30e4900 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -169,7 +169,7 @@ static struct clk_hw *clk_register_gpio(struct device *dev, const char *name, * @gpiod: gpio descriptor to gate this clock * @flags: clock flags */ -struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, +static struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, const char *parent_name, struct gpio_desc *gpiod, unsigned long flags) { @@ -184,7 +184,6 @@ struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, (parent_name ? &parent_name : NULL), (parent_name ? 1 : 0), gpiod, flags, ops); } -EXPORT_SYMBOL_GPL(clk_hw_register_gpio_gate); static struct clk *clk_register_gpio_gate(struct device *dev, const char *name, const char *parent_name, struct gpio_desc *gpiod, diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index d283f9896e86..b4338b26aed7 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -773,9 +773,6 @@ struct clk_gpio { #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) extern const struct clk_ops clk_gpio_gate_ops; -struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name, - const char *parent_name, struct gpio_desc *gpiod, - unsigned long flags); void clk_hw_unregister_gpio_gate(struct clk_hw *hw); extern const struct clk_ops clk_gpio_mux_ops; From patchwork Thu Nov 28 14:44:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266101 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7637814B7 for ; Thu, 28 Nov 2019 14:45:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55D782176D for ; Thu, 28 Nov 2019 14:45:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:56167 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mnqfc-1i2fEk3nKs-00pOFk; Thu, 28 Nov 2019 15:45:17 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 3/7] include: linux: clk-provider: remove obsolete clk_hw_unregister_gpio_gate() Date: Thu, 28 Nov 2019 15:44:46 +0100 Message-Id: <20191128144450.24094-3-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:GussK9F5dQLol8bTP8/xS6e6na3F+GGkXPnZapqTRn0wb2TKPMI SJmZIxS4zDn0G9BC4Yy8/XCIgNkEHWca45AkANgEBv19XZi/lv4An9nPVfU3WpqgfbsBQEK sDAlYd64aiFIXu4onPkxnPcDQW70tu3h9uDu6NpxbnBmsvEzzZOPTFDb+8aJrtRQJaFjgfa z9N88szeQaprdO1n4PibQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:/rEOy6BxQiI=:4vrnXaauPWDjlUXtHYDNwg 0dtcDiHjSM6atVrI+/bt/fveoc8QJTpTTG/OKuvcXusEqRBHy4mnGiMEu0U+czHHMqoHqyby9 P/TPCSZ0INL0XiJ1OdPHsMIu+6Osjz6r2DXsQXYtzWt86THn9HEgfiVgMXMlgRBASHT2Jc80t JDii4y9/a8QSBn05pb8LFQhuAJljmCFY11rbVqFl9JZ8sz2QoKZlpoi6KhVvjvNOO89LWN2L4 dChyiqpUosIjgPvFSSAtSfhYTI7CnRF3JkZeUoXX6kWxe1LOdbCJPZl82SbUm7ix8Z5AglsFT ZYnfZynsY8xTT5Jdeu/RSWQAHFn5V3rJ4Z6bT3s3psLumOmrjd3QR7/NKziQ6Wqc12yl6nc57 Dzti8xggaQZG2Cybw1qLsVpTswY85RHis6qm1MQclFND+LaklozeP6ER/+daEKulmbj8A9hl6 v+WSrbcbGG3ykr7iZqdPatqXokYRTO/wGRKuaui/OqKldxCPQbvw7UZOqblo07pL0xIlDpA5C jJfv6hcuIaiBP0SlhAeRXDiZwiztormsgOiU3/qtmXRw2A2PNFU1KzbQ1aKWUuMPLKvLoREhU zXDV2aPOGPHWMECcP22WJdLxxNvZ81piuGERQ6gV734SKNu1tVqEHqRCUXRnLoyf+2BYoseNn HsNtyn30EJP8y9q7hfMSfBJHrzQn1XfNawJCwlqjPxlHUZkbrmE0Y3VMSABCeV7k85Zt4A8y5 +iULKFrIDWF5KcBCMktPr7VwFtY2CW6c7qo7DzwV7bwaYOhZZbbJloTj6Ahn57hxhBAlnhmTf UeoVC4xQWtmO6E7xJDGOJx/0IQMKBJZmv7pVBw4K5hu4pLXP0sDzYFKN9OkfmFvMTby/WucOC OrLd21WcpPXZwbKGpu0A== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org There's a prototype for clk_hw_unregister_gpio_gate(), but no actual implementation. Seems to be an old leftover, thus remove it. Signed-off-by: Enrico Weigelt, metux IT consult --- include/linux/clk-provider.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b4338b26aed7..4ac2ee6655f9 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -773,7 +773,6 @@ struct clk_gpio { #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) extern const struct clk_ops clk_gpio_gate_ops; -void clk_hw_unregister_gpio_gate(struct clk_hw *hw); extern const struct clk_ops clk_gpio_mux_ops; struct clk *clk_register_gpio_mux(struct device *dev, const char *name, From patchwork Thu Nov 28 14:44:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266109 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED80414B7 for ; Thu, 28 Nov 2019 14:45:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8430217D6 for ; Thu, 28 Nov 2019 14:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727079AbfK1Opk (ORCPT ); Thu, 28 Nov 2019 09:45:40 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:56595 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N9M5y-1hmeFt0k56-015HVe; Thu, 28 Nov 2019 15:45:17 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 4/7] drivers: clk: unexport clk_register_gpio_mux() Date: Thu, 28 Nov 2019 15:44:47 +0100 Message-Id: <20191128144450.24094-4-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:hHvSw8d/VyEy/u6+267uFzxMMjnSMVFEKwM3RedogZNn6LYM2zv 5AXb3SajQD6o//CzBQrXnVn+hVAr1O8B3UUnigOm2YuaXGX5IQuGhMFI5E238dArEC4eM4O kKXxVtoTkcUzXJzh81POj7wKqk5XQpFHLBqVpeyf6Gw3FjolrH+UPRXGgYao8cVX211Z9o8 k+t74PmKf0qLqb7JhlntQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:o+jPHS3VcWc=:VuKuDoKdWvGn1hPz088tZl fjzL7Ge1zD62EzlXE6sOAXXQCaOfN+xbBPBUwr58xOwW+CFm3zU2Hfv47zbXeHWDvaHL+6m+A zjGIsvxk9cxQuDskSsLvhbsoaLgGop5+uCujG048NIZfGoOqiaOCtGtOZ3nzWlChVlJNeQkHc uVEAR0tUtFM/LtYgtM4twsvWfqc66jz+t9xBcc5OpQYLgsKKxGCWqEiIeb4O2tjtkwXU0dWKj LIqxMlvUyLLQrgJhFm/5z5+x+6P780tkLeNIG04PU6UHwXcPRzQnBWt30/H8Ac4+lWD0Az97x fyXgEYciI6/Z0okpaYP0989SJnnJ/HMhm92jJMfu1rfC5NPZCHOMibMnO5LjNmERZhXTCIDnw V/5FgKxKCcdeaSL0zZSVCqK5OtWPCnmGmPVVi7d58L1+vGA74MMa411Nzb4RcJ42A5fcOffM1 6pjTW7cXyzk22S9Segc379WW0eerHanQVRh0fT7Qb66AwX0nHyWpntQr7fVRopS8E72rQgtpU eQnHLa8rGu0+aNn2TXSwbkWCVRVK0QxxU1n+XAoqL4BkCS/Qarmm2FoxrPnVB9d2dXPKWQKtM iD/O7KOXguIMpQdIYPvVdvozbxZr3d87oILLE6zjrVgQKYLASqv07O6AV7AdcWm+ASmy32VrR 68uE6+umsih0Sqvx2TymJVftTaScJ5XrmrZiu2a+LMgzct8WtPNdEEFQFOBanF8Nuj9PO2RPU JVlQe8YCQz5iDvga7Fx0lrlkgBB9aCc8dxJB9RzFWxiEghKtvwb9tzOUgFEWoTlDOcV8wdXHn PijPJr5YkLqcrzOCdqbUcImSBVwYfps3v25nkpud6AHKYUFXQPtOBmvjegXH6hyQCSXy6Hx8b r2XEKiSdJBZlyT2BVRKg== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The function clk_register_gpio_mux() doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index f457b30e4900..5aa9ffe394ef 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -220,7 +220,7 @@ struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, } EXPORT_SYMBOL_GPL(clk_hw_register_gpio_mux); -struct clk *clk_register_gpio_mux(struct device *dev, const char *name, +static struct clk *clk_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, unsigned long flags) { @@ -232,7 +232,6 @@ struct clk *clk_register_gpio_mux(struct device *dev, const char *name, return ERR_CAST(hw); return hw->clk; } -EXPORT_SYMBOL_GPL(clk_register_gpio_mux); static int gpio_clk_driver_probe(struct platform_device *pdev) { diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 4ac2ee6655f9..054e3c128ac5 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -775,9 +775,6 @@ struct clk_gpio { extern const struct clk_ops clk_gpio_gate_ops; extern const struct clk_ops clk_gpio_mux_ops; -struct clk *clk_register_gpio_mux(struct device *dev, const char *name, - const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, - unsigned long flags); struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, unsigned long flags); From patchwork Thu Nov 28 14:44:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266111 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 174AF13B6 for ; Thu, 28 Nov 2019 14:45:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 01C50217F9 for ; Thu, 28 Nov 2019 14:45:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbfK1Opk (ORCPT ); Thu, 28 Nov 2019 09:45:40 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:60777 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MAgMY-1igxnx1kxk-00B7U2; Thu, 28 Nov 2019 15:45:17 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 5/7] drivers: clk: unexport clk_gpio_mux_ops field Date: Thu, 28 Nov 2019 15:44:48 +0100 Message-Id: <20191128144450.24094-5-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:UsYWvEnNaP1cmWcVGvDZ1M+iUNZGsqnI8X5qh8YC71B62pYVjOD U8niG4qlESWgxpaQRjDFzx/oUmdrm/rL0OoGbQLqwucFIXBqob9noP64kxGI7C0Dhz79CjT oQnhYIrJCa33O8CXkNo/nSgImYNAi6eEPGovd9OkdsUwve38AZ42iA8Nx2L0OhgQG+66pYG 7AcK+v2CF4KoR0S0rZCqQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:I0L954mxSAs=:ebQ/ei7sJBAPa2UnjRlOce Hb5aalYzKwNHElbdShQdupvuq/1k6zJu1fWhYLh3V+RKHwr3Xvo/3SV8kHZ/T9ym8GaymIT4r BaqClK224VT83EP6iWXFJgWQxSvYM6hfn7HvuE3wG3l73YFcGFawt6yigYSZcjF6q278Z7ZeB OS8Om6/HyECAQtPQF6AeGUVStPfqh7Q8XANuVpye55Wnlq+nzsjnc6Hp/waQuypuzAxPQU2+9 iTEWR8JHl2C59s8AD/CZMlIOFtj1FmihvIjaUpY09dvQDTd+eHhIieLIHRR9mED6rQCPawUwF doLXhNBhMAKvUjyx51H+91dW1UYp1O9geYxyEmKH5uUaYytkHlpNdr+vFvxgSUrawXdNBqZAv /tnJKe90fUDLovIZO45LVmYFA2jRpufaGU1CnkS0Gsr09MXY7OUzEY7nMLF4fN5d2SAaOii7m Rmvsnt39D8UNw3uQgL4EFBT3fX9Xnq57EYND/qttWVONlnv6e8sobxFiDJeJmeWjn2ba/7D4D Q2k7xTrPnIEycoyYUOlM/vMf96U/YF03Y9rKMLl1/09g1Pm6VXiM7AEuy0LZtl4Ir9c230MJl t1Ly1FLRNb31ilZOcZOWKPgdWdUiXZOQyfi9bKo4/QxVTbEU4B8eZ2e8qGFupJCShWPpseX/5 3NseObk4cOcJzQvwbrJXjtcMMKIh2nPNbkQq4YSJi6IvnRl9F7/fATYgvpWwBjLityrDdyUc5 VoqiwLHvZO7DJqbF42E/GPovRv3122aVtMR4MtSf6qUX0U06yt4VO9JZUv/uPj9E25fiLeduK l7HUzI517k4Qic8gOQZdzeWPeDYeyMSwTY9Ja9JEYeasmHJf4PGQ5bujlRQAm8jqKIrH6pnkS QqaRtn9mKWcbSrj3hZLQ== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The clk_gpio_mux_ops field doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index 5aa9ffe394ef..005e311c1822 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -111,12 +111,11 @@ static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index) return 0; } -const struct clk_ops clk_gpio_mux_ops = { +static const struct clk_ops clk_gpio_mux_ops = { .get_parent = clk_gpio_mux_get_parent, .set_parent = clk_gpio_mux_set_parent, .determine_rate = __clk_mux_determine_rate, }; -EXPORT_SYMBOL_GPL(clk_gpio_mux_ops); static struct clk_hw *clk_register_gpio(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 054e3c128ac5..b00adc1909a1 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -774,7 +774,6 @@ struct clk_gpio { extern const struct clk_ops clk_gpio_gate_ops; -extern const struct clk_ops clk_gpio_mux_ops; struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, unsigned long flags); From patchwork Thu Nov 28 14:44:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266107 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D57C14B7 for ; Thu, 28 Nov 2019 14:45:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 277BD2176D for ; Thu, 28 Nov 2019 14:45:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbfK1Opg (ORCPT ); Thu, 28 Nov 2019 09:45:36 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:43023 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbfK1OpV (ORCPT ); Thu, 28 Nov 2019 09:45:21 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mg6uW-1hsj5P2orG-00hf1o; Thu, 28 Nov 2019 15:45:17 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 6/7] drivers: clk: unexport clk_gpio_gate_ops field Date: Thu, 28 Nov 2019 15:44:49 +0100 Message-Id: <20191128144450.24094-6-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:CmTdkl0zWo2JdCF7jhXzf9pYfGYcWwsGodJaK7DNxsfTMpaKiCk H+9wKJwziO/9InfSE9VMfa3YrTC4jvBIzgchgZ7vMXLZXPh3NAV+JlvRX9yiQAkCdcVD7l0 KgGiPxSF+dfXgA19RrCrLSCpQr8rjwH8CqGacEYYqWdPMSCq1Q7wt7M91VJYJFxwYj53tSD /UhDyT0sKl8P42ucyxY5w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gCvM3hAvcMU=:eXUcK8oFZ0UkvOO8K+U0rg DNkuqW1ghi+X5+7MLqKUJ9ROadCFtIjnJyNeM2+5cAhDIFAux7aGChk/fi1Tb9AG8leyLtGZj sfeucbYKMOpGET7r7mOskE4tG/2nR7CCuTiS3rTVY6qtDyjA2OgsEU1eMXTAPFya0Mxw+2gIh AOl2AFerZ8E6vglq+iqqKcgKkpmkAtZUXKi+x4Z67lYiuzbfHl3VGbnWPWC3faI8X8LXRPQ0u PBwMWIbLWpC5wdUBPQsuB2VaDpcjPcpdR9L+QRC20EwRd0q22g1eboV9xZsQvLZmJhU8L09yt MBLl84C5U5KLxpSz3owMNblxl+eG2fHM/Z2MqBltcI48GlQiCDAFrpRp4SBgCv7yQo9WKf3Pk eUUAgm4+HK8FEXLWmr5vcS9AQWLcv7msU11zn5R1tQColoejHeCP5UgGSMVseKtpD76Qn96fx 0HnlzZRIVBeab1iR6vOhlmcSrDZNeGDL/4++J/WAjb9HsRuHewefrU2bqNQulmCi7ebGsjp2+ cRFn3ZF/JFK8R3JJqFfuivsgUI8IzWZKEX53crpv65GqhjKiTcNb9Dl1xF/xp+u8sQ8PglExs iQubTTqWc79Exu2RlMgYKy6uveazqot8pnECHB6FwW1d3mZsK9c7OXljubdt9mdogQN3Clvpf lstlXXq7/QpaqXUPy5yUnmuXofJyiKS8oBeI1wTR6qpxqXx3WA+HFk5K2YgSzXvKPpFDGjJbD 9/BsVMsFo96GY0T6+P6Kx4+wXt2cbDERg9e5Jt04CvQGOcs+9A9DYRzU7gdb2zyJlWJzMz3dn SUwvahg6guO5sBfwU8nHz80GMrE0Je6JE8Qo1JOpluvrZ7X0rj2Hk9jTSy1/2hMR2t07jl/Tq rJVb69Ijc3K4rerdvJvg== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The clk_gpio_gate_ops field doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index 005e311c1822..a7e75a038728 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -51,12 +51,11 @@ static int clk_gpio_gate_is_enabled(struct clk_hw *hw) return gpiod_get_value(clk->gpiod); } -const struct clk_ops clk_gpio_gate_ops = { +static const struct clk_ops clk_gpio_gate_ops = { .enable = clk_gpio_gate_enable, .disable = clk_gpio_gate_disable, .is_enabled = clk_gpio_gate_is_enabled, }; -EXPORT_SYMBOL_GPL(clk_gpio_gate_ops); static int clk_sleeping_gpio_gate_prepare(struct clk_hw *hw) { diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b00adc1909a1..59a7f273a182 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -772,8 +772,6 @@ struct clk_gpio { #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) -extern const struct clk_ops clk_gpio_gate_ops; - struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, unsigned long flags); From patchwork Thu Nov 28 14:44:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11266103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20CFD13B6 for ; Thu, 28 Nov 2019 14:45:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0982321771 for ; Thu, 28 Nov 2019 14:45:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbfK1Opa (ORCPT ); Thu, 28 Nov 2019 09:45:30 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:49515 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbfK1OpW (ORCPT ); Thu, 28 Nov 2019 09:45:22 -0500 Received: from orion.localdomain ([95.117.37.214]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXHBo-1iJE7H3s34-00Ygma; Thu, 28 Nov 2019 15:45:18 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 7/7] drivers: clk: unexport clk_hw_register_gpio_mux() Date: Thu, 28 Nov 2019 15:44:50 +0100 Message-Id: <20191128144450.24094-7-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191128144450.24094-1-info@metux.net> References: <20191128144450.24094-1-info@metux.net> X-Provags-ID: V03:K1:GpHErHNI82WASHVkE8THZ9nr+ptmFzHW5fL+3h+SQyUE0+IsZt7 f77t2/XVg0JKnfGAaz3mqg7B6Tc5QfbM78Xjnau34BTdHgKZKOTuvWUYkpIuE+GZMwjoXBk oNJ781QC/qVpcuSqkoxMsITGkiAcfCJk9mU2y5RB0IJAL9AOjjiS6y6wS1d+FN4Iu8yHcCI LcPtyB8vP+sSdlLIT49RA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Xdy895FX+Oo=:nCp7NpLYbFJBJsIZ+rXIpJ EdEFHNvkXKmUqBnd97WH6j685quUAkfkC6Kso8Y4wzZ7pPEb9IDtP+5U9fMagi5lS34qxenOQ VwlmvSUhyBooyu2YO7ApP6/aosmmZ1LEgNGOmjbARAHIkNsjMrDOvafmAuCu1YYwxHdVqd8xY O+jLhFhxLjAqi65KutMRTrBqvG+qmo/Qz9GWKPJOl5v1f5mZVyngs6LkLJt2GPqZs4znjZH93 09Gjm7KjJoS3F8Xu+1kItZe9Ua9Tsagb4KxYrBOYIhSTXrJifYo+RqqYTsZ+cFDPSg5OpKAlW vRiZWt4zTinmoYBHS/wbfW/mEBKap3F1VtlApPFX4FZSs3ehWUw6tZxqODcfg2Q4QItmF37kN P13On90zxcpSg39oCafEiiNIVDwi/H5PtTY3kCi/yZTVvehjHrmE0dfpldnBEE/GSVjCEXI/z S8QXpKI+1VMBe+8zvXdPKiyO5lpDkObmg8KE2Wdntb/zj29ErfKpoEtHvuhvDU/yiX4EFQK7y 4m7IGsIIEhVRf7w6/QcqAaM6YnxhSQoHTT/zBqmm+nXG1OeYrXKO8xiTInuL9VE4G35zCx5sX QlZqOkev8/C2mb4eHwTrJHUzUdzvaL45Nvb5xlIIaHTso9MnjKnizP5S3C4plP3jdEjSdrRIL 4ST3PM0HCPPR9OhAv+cnR6dh5A7/52BFq890qjWjQXNWoNzKqTOgiPgE4CX9L807cEOWxXNPv H5hrmLhbc+2diTXsr1/6x3UyHDLKKir/Uc5w8lK/WzQIVjt3qGCIjcAzYBBqU2u+kh9UW2SqH 5dNIraNoiLFqQ1aMv0023CfgjS1wqqMrtKYYOz4uNDPmgRtBif8XsK8guv1V891qeBFehc7os dYZstFxgOIxskzQqY3zw== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The function clk_hw_register_gpio_mux() doesn't seem to have any users outside clk-gpio.c, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/clk/clk-gpio.c | 3 +-- include/linux/clk-provider.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index a7e75a038728..70381bf75d02 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c @@ -204,7 +204,7 @@ static struct clk *clk_register_gpio_gate(struct device *dev, const char *name, * @gpiod: gpio descriptor to gate this clock * @flags: clock flags */ -struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, +static struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, unsigned long flags) { @@ -216,7 +216,6 @@ struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, return clk_register_gpio(dev, name, parent_names, num_parents, gpiod, flags, &clk_gpio_mux_ops); } -EXPORT_SYMBOL_GPL(clk_hw_register_gpio_mux); static struct clk *clk_register_gpio_mux(struct device *dev, const char *name, const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 59a7f273a182..961c1048a9ca 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -772,9 +772,6 @@ struct clk_gpio { #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) -struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, - const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, - unsigned long flags); void clk_hw_unregister_gpio_mux(struct clk_hw *hw); struct clk *clk_register(struct device *dev, struct clk_hw *hw);