Linux USB
 help / color / mirror / Atom feed
From: Zhang Zekun <zhangzekun11@huawei.com>
To: <patchwork@huawei.com>, <Thinh.Nguyen@synopsys.com>,
	<gregkh@linuxfoundation.org>, <shawnguo@kernel.org>,
	<s.hauer@pengutronix.de>, <kernel@pengutronix.de>,
	<festevam@gmail.com>, <linux-usb@vger.kernel.org>, <vz@mleia.com>,
	<stern@rowland.harvard.edu>
Cc: <zhangzekun11@huawei.com>
Subject: [PATCH 0/2] Use helper function devm_clk_get_enabled()
Date: Mon, 2 Sep 2024 20:30:18 +0800	[thread overview]
Message-ID: <20240902123020.29267-1-zhangzekun11@huawei.com> (raw)

devm_clk_get() and clk_prepare_enable() can be replaced by helper function
devm_clk_get_enabled(). Use helper function devm_clk_get_enabled() to
simplify code.

Zhang Zekun (2):
  usb: dwc3: Use helper function devm_clk_get_enabled()
  usb: ohci-nxp: Use helper function devm_clk_get_enabled()

 drivers/usb/dwc3/dwc3-imx8mp.c | 47 ++++++++--------------------------
 drivers/usb/host/ohci-nxp.c    | 18 +++----------
 2 files changed, 15 insertions(+), 50 deletions(-)

-- 
2.17.1


             reply	other threads:[~2024-09-02 12:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-02 12:30 Zhang Zekun [this message]
2024-09-02 12:30 ` [PATCH 1/2] usb: dwc3: Use helper function devm_clk_get_enabled() Zhang Zekun
2024-09-03 22:06   ` Thinh Nguyen
2024-09-04  8:49   ` Greg KH
2024-09-05  1:13     ` zhangzekun (A)
2024-09-02 12:30 ` [PATCH 2/2] usb: ohci-nxp: " Zhang Zekun
2024-09-02 13:59   ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240902123020.29267-1-zhangzekun11@huawei.com \
    --to=zhangzekun11@huawei.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=festevam@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-usb@vger.kernel.org \
    --cc=patchwork@huawei.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=vz@mleia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox