Searched refs:voltage_shift (Results 1 – 2 of 2) sorted by relevance
28 u8 voltage_shift; member39 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel()53 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel()144 ri->voltage_shift = (id - AAT2870_ID_LDOA) % 2 ? 0 : 4; in aat2870_get_regulator()145 ri->voltage_mask = 0xF << ri->voltage_shift; in aat2870_get_regulator()
449 int ret, voltage_shift; in ab8500_regulator_get_voltage_sel() local458 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_get_voltage_sel()473 voltage_shift, regval); in ab8500_regulator_get_voltage_sel()475 return (regval & info->voltage_mask) >> voltage_shift; in ab8500_regulator_get_voltage_sel()481 int ret, voltage_shift; in ab8500_regulator_set_voltage_sel() local490 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_set_voltage_sel()493 regval = (u8)selector << voltage_shift; in ab8500_regulator_set_voltage_sel()