* [PATCH] usb: dwc3: Replace of_reset_control_array_get()
@ 2020-11-03 9:25 Yejune Deng
2021-01-07 19:33 ` Dmitry Osipenko
0 siblings, 1 reply; 2+ messages in thread
From: Yejune Deng @ 2020-11-03 9:25 UTC (permalink / raw)
To: balbi, gregkh, p.zabel; +Cc: linux-usb, linux-kernel, yejune.deng
of_reset_control_array_get_optional_exclusive() looks more readable
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
---
drivers/usb/dwc3/dwc3-of-simple.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c
index e62ecd2..e358ff0 100644
--- a/drivers/usb/dwc3/dwc3-of-simple.c
+++ b/drivers/usb/dwc3/dwc3-of-simple.c
@@ -52,8 +52,7 @@ static int dwc3_of_simple_probe(struct platform_device *pdev)
if (of_device_is_compatible(np, "rockchip,rk3399-dwc3"))
simple->need_reset = true;
- simple->resets = of_reset_control_array_get(np, false, true,
- true);
+ simple->resets = of_reset_control_array_get_optional_exclusive(np);
if (IS_ERR(simple->resets)) {
ret = PTR_ERR(simple->resets);
dev_err(dev, "failed to get device resets, err=%d\n", ret);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: dwc3: Replace of_reset_control_array_get()
2020-11-03 9:25 [PATCH] usb: dwc3: Replace of_reset_control_array_get() Yejune Deng
@ 2021-01-07 19:33 ` Dmitry Osipenko
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Osipenko @ 2021-01-07 19:33 UTC (permalink / raw)
To: Yejune Deng, balbi, gregkh, p.zabel; +Cc: linux-usb, linux-kernel
03.11.2020 12:25, Yejune Deng пишет:
> of_reset_control_array_get_optional_exclusive() looks more readable
>
> Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
> ---
> drivers/usb/dwc3/dwc3-of-simple.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c
> index e62ecd2..e358ff0 100644
> --- a/drivers/usb/dwc3/dwc3-of-simple.c
> +++ b/drivers/usb/dwc3/dwc3-of-simple.c
> @@ -52,8 +52,7 @@ static int dwc3_of_simple_probe(struct platform_device *pdev)
> if (of_device_is_compatible(np, "rockchip,rk3399-dwc3"))
> simple->need_reset = true;
>
> - simple->resets = of_reset_control_array_get(np, false, true,
> - true);
> + simple->resets = of_reset_control_array_get_optional_exclusive(np);
> if (IS_ERR(simple->resets)) {
> ret = PTR_ERR(simple->resets);
> dev_err(dev, "failed to get device resets, err=%d\n", ret);
>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-07 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 9:25 [PATCH] usb: dwc3: Replace of_reset_control_array_get() Yejune Deng
2021-01-07 19:33 ` Dmitry Osipenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).