touch: goodix: property "qcom,touch-environment"

Parse the property "qcom,touch-environment".

Change-Id: I0cc00e10b409a31c2d240078d7a603baaaf3b30e
This commit is contained in:
Yu Wu
2022-02-23 16:21:41 +08:00
committed by Gerrit - the friendly Code Review server
parent 912fce5a74
commit 20f5c43e92

View File

@@ -2300,6 +2300,10 @@ static int goodix_ts_probe(struct platform_device *pdev)
ts_err("failed parse device info form dts, %d", ret);
return -EINVAL;
}
#if defined(CONFIG_DRM)
of_property_read_string(node, "qcom,touch-environment",
&core_data->touch_environment);
#endif
} else {
ts_err("no valid device tree node found");
return -ENODEV;