power: replace magic numbers with macros
authorShree Ramamoorthy <s-ramamoorthy@ti.com>
Wed, 18 Dec 2024 17:12:36 +0000 (11:12 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 13 Jan 2025 22:44:42 +0000 (07:44 +0900)
commit7e261a05a5039ee0c1c106ca17f5775a75912d06
tree0775076c1db91d0342b19841017114d7cdbeb17f
parenteda65fa42b95bf83363dd07451f760d1213793ac
power: replace magic numbers with macros

Replace magic numbers in buckval2votl() & buckvolt2val() with macros to
help with clarity and correlate what the numbers correspond to in the
TPS65219 datasheet.

Signed-off-by: Shree Ramamoorthy <s-ramamoorthy@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/tps65219_regulator.c
include/power/tps65219.h