mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
tp:fogona 1st tp mmi,status add
WHY:1st tp mmi,status add HOW:add code Change-Id: I262f376154e0c92396665b7d9c3a102624657977 Reviewed-on: https://gerrit.mot.com/2684398 Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Reviewed-by: Yan Zhang <zhangy26@motorola.com> SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
2c3be28891
commit
9945783aec
1 changed files with 7 additions and 6 deletions
|
|
@ -516,12 +516,6 @@ static int cts_driver_probe(struct spi_device *client)
|
|||
{
|
||||
struct device_node *dp = client->dev.of_node;
|
||||
|
||||
#if defined(CONFIG_INPUT_TOUCHSCREEN_MMI)
|
||||
if (client->dev.of_node && !mmi_device_is_available(client->dev.of_node)) {
|
||||
cts_err("%s : mmi: device not supported\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
#endif
|
||||
if (check_dt(dp)) {
|
||||
if (!check_default_tp(dp, "qcom,i2c-touch-active"))
|
||||
ret = -EPROBE_DEFER;
|
||||
|
|
@ -532,6 +526,13 @@ static int cts_driver_probe(struct spi_device *client)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#if defined(CONFIG_INPUT_TOUCHSCREEN_MMI)
|
||||
if (client->dev.of_node && !mmi_device_is_available(client->dev.of_node)) {
|
||||
cts_err("%s : mmi: device not supported\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CTS_I2C_HOST
|
||||
|
|
|
|||
Loading…
Reference in a new issue