[PATCH 378/552] backlight: pwm_bl: Fix heuristic to determine number of brightness levels