Home
last modified time | relevance | path

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

/drivers/input/misc/
Dtwl6040-vibra.c123 int vpk, max_code; in twl6040_vibra_code() local
131 max_code = vpk / 50; in twl6040_vibra_code()
132 if (max_code > TWL6040_VIBDAT_MAX) in twl6040_vibra_code()
133 max_code = TWL6040_VIBDAT_MAX; in twl6040_vibra_code()
136 vibdat = (u8)((speed * max_code) / USHRT_MAX); in twl6040_vibra_code()
/drivers/leds/
Dleds-lm3692x.c367 u32 max_code; in lm3692x_max_brightness() local
370 max_code = ((max_cur * 1000) - 37806) / 12195; in lm3692x_max_brightness()
371 if (max_code > 0x7FF) in lm3692x_max_brightness()
372 max_code = 0x7FF; in lm3692x_max_brightness()
374 return max_code >> 3; in lm3692x_max_brightness()