@@ -430,9 +430,7 @@ static int mipi_dbi_lcdic_write_display(const struct device *dev,
430
430
goto release_sem ;
431
431
}
432
432
433
- #ifdef CONFIG_PM_POLICY_DEVICE_CONSTRAINTS
434
433
pm_policy_device_power_lock_get (dev );
435
- #endif
436
434
437
435
ret = mipi_dbi_lcdic_configure (dev , dbi_config );
438
436
if (ret ) {
@@ -527,9 +525,7 @@ static int mipi_dbi_lcdic_write_display(const struct device *dev,
527
525
}
528
526
529
527
release_power_lock :
530
- #ifdef CONFIG_PM_POLICY_DEVICE_CONSTRAINTS
531
528
pm_policy_device_power_lock_put (dev );
532
- #endif
533
529
534
530
release_sem :
535
531
k_sem_give (& dev_data -> lock );
@@ -554,9 +550,7 @@ static int mipi_dbi_lcdic_write_cmd(const struct device *dev,
554
550
goto release_sem ;
555
551
}
556
552
557
- #ifdef CONFIG_PM_POLICY_DEVICE_CONSTRAINTS
558
553
pm_policy_device_power_lock_get (dev );
559
- #endif
560
554
561
555
ret = mipi_dbi_lcdic_configure (dev , dbi_config );
562
556
if (ret ) {
@@ -632,9 +626,7 @@ static int mipi_dbi_lcdic_write_cmd(const struct device *dev,
632
626
}
633
627
634
628
release_power_lock :
635
- #ifdef CONFIG_PM_POLICY_DEVICE_CONSTRAINTS
636
629
pm_policy_device_power_lock_put (dev );
637
- #endif
638
630
639
631
release_sem :
640
632
k_sem_give (& dev_data -> lock );
@@ -821,9 +813,7 @@ static void mipi_dbi_lcdic_isr(const struct device *dev)
821
813
base -> IMR |= LCDIC_ALL_INTERRUPTS ;
822
814
/* All data has been sent. */
823
815
k_sem_give (& data -> xfer_sem );
824
- #ifdef CONFIG_PM_POLICY_DEVICE_CONSTRAINTS
825
816
pm_policy_device_power_lock_put (dev );
826
- #endif
827
817
} else {
828
818
/* Command done. Queue next command */
829
819
data -> cmd_bytes = MIN (data -> xfer_bytes , LCDIC_MAX_XFER );
0 commit comments