From patchwork Mon Dec 3 11:13:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 10709199 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 BE62517D5 for ; Mon, 3 Dec 2018 11:13:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A98502B29B for ; Mon, 3 Dec 2018 11:13:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CE552B329; Mon, 3 Dec 2018 11:13:20 +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=-7.9 required=2.0 tests=BAYES_00,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 92C872B329 for ; Mon, 3 Dec 2018 11:13:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726146AbeLCLNy (ORCPT ); Mon, 3 Dec 2018 06:13:54 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:33515 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbeLCLNy (ORCPT ); Mon, 3 Dec 2018 06:13:54 -0500 Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 03 Dec 2018 20:13:14 +0900 Received: from vbox.ree.adwin.renesas.com (unknown [10.226.37.67]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 84D66402C8E2; Mon, 3 Dec 2018 20:13:12 +0900 (JST) From: Phil Edworthy To: Michael Turquette , Stephen Boyd , Russell King Cc: Andy Shevchenko , Geert Uytterhoeven , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Phil Edworthy Subject: [PATCH v9 0/2] clk: Add functions to get optional clocks Date: Mon, 3 Dec 2018 11:13:07 +0000 Message-Id: <20181203111309.3709-1-phil.edworthy@renesas.com> X-Mailer: git-send-email 2.17.1 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 Quite a few drivers get an optional clock, e.g. a bus clock required to access peripheral's registers that is always enabled on some devices. v9: - Add a separate patch to add a comment about __of_clk_get_by_name() error values. - Add brackets after devm_clk_get so people know it's a function. - Add kernel doc for clk_get_optional(). Phil Edworthy (2): clk: Add comment about __of_clk_get_by_name() error values clk: Add (devm_)clk_get_optional() functions drivers/clk/clk-devres.c | 11 +++++++++++ drivers/clk/clkdev.c | 6 ++++++ include/linux/clk.h | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+)