提交 b42a1148 编写于 作者: S Sudeep Holla 提交者: Dmitry Torokhov

Input: tegra-kbc - enable support for the standard "wakeup-source" property

Though the tegra-kbc driver should/will continue to support the legacy
"nvidia,wakeup-source" property to enable keyboard as the wakeup source,
we need to add support for the new standard property "wakeup-source".

This patch adds support for "wakeup-source" property in addition to the
existing "nvidia,wakeup-source" property.
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 ec7aa963
...@@ -517,7 +517,8 @@ static int tegra_kbc_parse_dt(struct tegra_kbc *kbc) ...@@ -517,7 +517,8 @@ static int tegra_kbc_parse_dt(struct tegra_kbc *kbc)
if (of_find_property(np, "nvidia,needs-ghost-filter", NULL)) if (of_find_property(np, "nvidia,needs-ghost-filter", NULL))
kbc->use_ghost_filter = true; kbc->use_ghost_filter = true;
if (of_find_property(np, "nvidia,wakeup-source", NULL)) if (of_property_read_bool(np, "wakeup-source") ||
of_property_read_bool(np, "nvidia,wakeup-source")) /* legacy */
kbc->wakeup = true; kbc->wakeup = true;
if (!of_get_property(np, "nvidia,kbc-row-pins", &proplen)) { if (!of_get_property(np, "nvidia,kbc-row-pins", &proplen)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册