rubenslte: tmd3782 match stock

This commit is contained in:
2026-09-27 19:20:28 +02:00
parent 8c3b741143
commit d6d3b2605e
+12 -1
View File
@@ -1808,6 +1808,12 @@ static int taos_suspend(struct device *dev)
if (taos->power_state == LIGHT_ENABLED) {
taos_chip_off(taos);
}
#ifdef CONFIG_SEC_RUBENS_PROJECT
if (taos->power_state & PROXIMITY_ENABLED) {
pr_info("%s: disable interrupt to suspend \n", __func__);
disable_irq(taos->irq);
}
#endif
return 0;
}
@@ -1823,7 +1829,12 @@ static int taos_resume(struct device *dev)
if (taos->power_state & LIGHT_ENABLED){
taos_light_enable(taos);
}
#ifdef CONFIG_SEC_RUBENS_PROJECT
if (taos->power_state & PROXIMITY_ENABLED) {
pr_info("%s: enable interrupt to resume \n", __func__);
enable_irq(taos->irq);
}
#endif
return 0;
}