Allow/deny brightness fading by type instead of current display state
Allow/deny brightness fading by type instead of current display state

Since display state no longer reaches on state before unblank fading
is finished, the ALS based brightness tuning is also delayed and the
display first wakes up to wrong brightness if lightning conditions
have changed during display off time.

Allow/deny brightness fading changes based on ongoing/requested
fade type instead of relying on current display state.

Use target stable display state for deciding whether ALS tuning should
be attempted or not. If the tuning happens before/during unblank fading,
adjust the fading target instead of starting longer ALS adjustment fade.

kimmoli/mce,spiiroin/mce,spiiroin/mce,spiiroin/mce,mikkoharju/mce,mlehtima/mce,android-808/mce,kimmoli/mce,maikelwever/mce,mlehtima/mce,kimmoli/mce,mikkoharju/mce,maikelwever/mce,android-808/mce,mikkoharju/mce,android-808/mce,mlehtima/mce,mlehtima/mce,spiiroin/mce,android-808/mce,maikelwever/mce,mikkoharju/mce,kimmoli/mce,maikelwever/mce