提交 43c61286 编写于 作者: S Sergei Shtylyov 提交者: Greg Kroah-Hartman

serial: sh-sci: use of_property_read_bool()

Use more compact of_property_read_bool() call for a boolean property
instead  of of_find_property() call in sci_parse_dt().
Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ee1c90cc
......@@ -3073,8 +3073,7 @@ static struct plat_sci_port *sci_parse_dt(struct platform_device *pdev,
p->type = SCI_OF_TYPE(match->data);
p->regtype = SCI_OF_REGTYPE(match->data);
if (of_find_property(np, "uart-has-rtscts", NULL))
sp->has_rtscts = true;
sp->has_rtscts = of_property_read_bool(np, "uart-has-rtscts");
return p;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册