]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/rn5t567.c
karo: tx6: Cleanup PMIC code
[karo-tx-uboot.git] / board / karo / tx6 / rn5t567.c
index a4a58844e40d1cbb3d48d69b24ed73397f5b0dbb..6f791374b4e1b6b56223120661877b06c7ccae1f 100644 (file)
@@ -53,7 +53,7 @@
 #define VDD_DDR_VAL_LP         mV_to_regval(1350)
 
 /* calculate voltages in 10mV */
-#define v2r(v,n,m)             DIV_ROUND_UP(((((v) < (n)) ? (n) : (v)) - (n)), (m))
+#define v2r(v,n,m)             DIV_ROUND(((((v) < (n)) ? (n) : (v)) - (n)), (m))
 #define r2v(r,n,m)             (((r) * (m) + (n)) / 10)
 
 /* DCDC1-3 */