pm-irq: remove redundancies and fix code

Change-Id: I2d33bef563c21e604eaf465a6cc97a184adb55c8
aat2870: enable log/log auto brightness ramp + 2sec sensor readings

Change-Id: If67197909200cc25adc528397d1e0ae56c0cabb6
aat1270: implement torch_wake_lock

Change-Id: I819c9e45e5ba12fa491b896a92dcec6ae9477c2c