goodix_gtx8_v1430_mmi: Set FW name in dtsi

TP:
Moto TP FW upload script is not bringuped for this driver.
So set firmware name in dtsi for racer lite.

Change-Id: Ia65ddf142e01c08448e23e88ae8116e623c18ac1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426485
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-09-23 22:13:34 +08:00 • committed by Jialei Hao
commit 97b44ebfa2

View file

@ -174,6 +174,14 @@ static int goodix_parse_dt(struct device_node *node,
board_data->cfg_bin_name = NULL;
}
board_data->fw_name = kzalloc(32 * sizeof(char), GFP_KERNEL);
r = of_property_read_string(node, "goodix,fw_name",
&board_data->fw_name);
if (r) {
ts_err("Unable to read fw name %d\n", r);
board_data->fw_name = NULL;
}
memset(board_data->avdd_name, 0, sizeof(board_data->avdd_name));
r = of_property_read_string(node, "goodix,avdd-name", &name_tmp);
if (!r) {