]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/rn5t618.c
karo: tx6: Cleanup PMIC code
[karo-tx-uboot.git] / board / karo / tx6 / rn5t618.c
index 538dd5574ae54edd912d68b924c7b9f1289c1993..19aba871afd6113c3cf4c9a947567d1872a03cf2 100644 (file)
@@ -51,7 +51,7 @@
 #define VDD_DDR_VAL_LP         mV_to_regval(1500)
 
 /* 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 */