Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: axp20x: AXP717: dcdc4 doesn't have delay

According to AXP717 user manual, DCDC4 doesn't have a ramp delay like
DCDC1/2/3 do.

Remove it from the description and cleanup the macros.

Signed-off-by: Philippe Simons <simons.philippe@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250318205147.42850-1-simons.philippe@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Philippe Simons and committed by
Mark Brown
c94764d3 5e949137

+4 -10
+4 -10
drivers/regulator/axp20x-regulator.c
··· 371 371 .ops = &axp20x_ops, \ 372 372 } 373 373 374 - #define AXP_DESC_DELAY(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ 375 - _vmask, _ereg, _emask, _ramp_delay) \ 374 + #define AXP_DESC(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ 375 + _vmask, _ereg, _emask) \ 376 376 [_family##_##_id] = { \ 377 377 .name = (_match), \ 378 378 .supply_name = (_supply), \ ··· 388 388 .vsel_mask = (_vmask), \ 389 389 .enable_reg = (_ereg), \ 390 390 .enable_mask = (_emask), \ 391 - .ramp_delay = (_ramp_delay), \ 392 391 .ops = &axp20x_ops, \ 393 392 } 394 - 395 - #define AXP_DESC(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ 396 - _vmask, _ereg, _emask) \ 397 - AXP_DESC_DELAY(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ 398 - _vmask, _ereg, _emask, 0) 399 393 400 394 #define AXP_DESC_SW(_family, _id, _match, _supply, _ereg, _emask) \ 401 395 [_family##_##_id] = { \ ··· 799 805 axp717_dcdc3_ranges, AXP717_DCDC3_NUM_VOLTAGES, 800 806 AXP717_DCDC3_CONTROL, AXP717_DCDC_V_OUT_MASK, 801 807 AXP717_DCDC_OUTPUT_CONTROL, BIT(2), 640), 802 - AXP_DESC_DELAY(AXP717, DCDC4, "dcdc4", "vin4", 1000, 3700, 100, 808 + AXP_DESC(AXP717, DCDC4, "dcdc4", "vin4", 1000, 3700, 100, 803 809 AXP717_DCDC4_CONTROL, AXP717_DCDC_V_OUT_MASK, 804 - AXP717_DCDC_OUTPUT_CONTROL, BIT(3), 6400), 810 + AXP717_DCDC_OUTPUT_CONTROL, BIT(3)), 805 811 AXP_DESC(AXP717, ALDO1, "aldo1", "aldoin", 500, 3500, 100, 806 812 AXP717_ALDO1_CONTROL, AXP717_LDO_V_OUT_MASK, 807 813 AXP717_LDO0_OUTPUT_CONTROL, BIT(0)),