Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43c61286 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Greg Kroah-Hartman
Browse files

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: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee1c90cc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}