Use Util::adjustI2CAddress

Change-Id: I977cd0eb27c4c3d9187f814c144f7328e0c7791c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/gen_devtree.pl b/gen_devtree.pl
index 3f6c9d9..5614c4c 100755
--- a/gen_devtree.pl
+++ b/gen_devtree.pl
@@ -841,7 +841,7 @@
         }
 
         #Put it in the format we want to print it in
-        $i2cAddress = adjustI2CAddress($i2cAddress);
+        $i2cAddress = Util::adjustI2CAddress($i2cAddress);
         addRegProp(\%deviceNode, $i2cAddress);
 
         $deviceName = makeNodeName($deviceName, $deviceNode{reg});
@@ -943,21 +943,6 @@
 }
 
 
-#Convert the MRW I2C address into the format the dts needs
-#  $addr = the I2C Address
-sub adjustI2CAddress
-{
-    my $addr = shift;
-
-    #MRW holds the 8 bit value.  We need the 7 bit one.
-    $addr = $addr >> 1;
-    $addr = sprintf("0x%X", $addr);
-    $addr = lc $addr;
-
-    return $addr;
-}
-
-
 #Sets the global $g_i2cBusAdjust from the configuration file.
 sub getI2CBusAdjust
 {