Home
last modified time | relevance | path

Searched refs:brightness_diff (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/leds/rgb/
H A Dleds-ncp5623.c84 int brightness_diff; in ncp5623_pattern_set() local
99 brightness_diff = pattern[0].brightness - ncp->current_brightness; in ncp5623_pattern_set()
101 if (brightness_diff == 0) in ncp5623_pattern_set()
105 if (brightness_diff > 0) in ncp5623_pattern_set()
136 if (abs(brightness_diff) == 1) in ncp5623_pattern_set()
137 ncp->delay = NCP5623_MAX_BRIGHTNESS + brightness_diff; in ncp5623_pattern_set()
139 ncp->delay = abs(brightness_diff); in ncp5623_pattern_set()