Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Daxp288_charger.c326 int scaled_val; in axp288_charger_usb_set_property() local
331 scaled_val = min(val->intval, info->max_cc); in axp288_charger_usb_set_property()
332 scaled_val = DIV_ROUND_CLOSEST(scaled_val, 1000); in axp288_charger_usb_set_property()
333 ret = axp288_charger_set_cc(info, scaled_val); in axp288_charger_usb_set_property()
340 scaled_val = DIV_ROUND_CLOSEST(val->intval, 1000); in axp288_charger_usb_set_property()
341 scaled_val = min(scaled_val, info->max_cv); in axp288_charger_usb_set_property()
342 ret = axp288_charger_set_cv(info, scaled_val); in axp288_charger_usb_set_property()
/linux/sound/usb/
H A Dmixer_scarlett2.c5389 s32 scaled_val; in scarlett2_compressor_ctl_put() local
5411 scaled_val = val << param->scale_bits; in scarlett2_compressor_ctl_put()
5425 mixer, SCARLETT2_CONFIG_COMPRESSOR_PARAMS, index, scaled_val); in scarlett2_compressor_ctl_put()