[PATCH v3] Input: sysrq - DT binding for key sequences
Dmitry Torokhov
dmitry.torokhov at gmail.com
Sun Jul 14 06:41:40 EST 2013
Hi Matthieu,
On Fri, Jul 12, 2013 at 03:56:02AM -0600, mathieu.poirier at linaro.org wrote:
> +
> + np = of_find_node_by_path("/chosen");
> + if (!np)
> + goto out;
> +
> + np = of_find_node_by_name(np, "linux,sysrq-reset-seq");
> + if (!np) {
> + pr_debug("No sysrq node found");
> + goto out;
> + }
Can if be folded into:
np = of_find_node_by_path("/chosen/linux,sysrq-reset-seq")
?
Thanks.
--
Dmitry
More information about the devicetree-discuss
mailing list