leds: ledtrig-thermal: Change the order of brightness calculation

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
leds: ledtrig-thermal: Rework code

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>