r1592 - trunk/src/target/kernel/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Sun Apr 1 10:55:17 CEST 2007
Author: laforge
Date: 2007-04-01 10:55:16 +0200 (Sun, 01 Apr 2007)
New Revision: 1592
Modified:
trunk/src/target/kernel/patches/gta01-pcf50606.patch
Log:
respect maximum values indicated int pcf50606 platform data
Modified: trunk/src/target/kernel/patches/gta01-pcf50606.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-pcf50606.patch 2007-04-01 08:50:04 UTC (rev 1591)
+++ trunk/src/target/kernel/patches/gta01-pcf50606.patch 2007-04-01 08:55:16 UTC (rev 1592)
@@ -3,8 +3,8 @@
Index: linux-2.6.20.4/drivers/i2c/chips/pcf50606.c
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.20.4/drivers/i2c/chips/pcf50606.c 2007-04-01 10:26:25.000000000 +0200
-@@ -0,0 +1,1860 @@
++++ linux-2.6.20.4/drivers/i2c/chips/pcf50606.c 2007-04-01 10:53:01.000000000 +0200
+@@ -0,0 +1,1863 @@
+/* Philips PCF50606 Power Management Unit (PMU) driver
+ *
+ * (C) 2006 by OpenMoko, Inc.
@@ -414,6 +414,9 @@
+ if (reg >= __NUM_PCF50606_REGULATORS)
+ return -EINVAL;
+
++ if (millivolts > pcf->pdata->rails[reg].voltage.max)
++ return -EINVAL;
++
+ switch (reg) {
+ case PCF50606_REGULATOR_DCD:
+ volt_bits = dcdc_voltage(millivolts);
More information about the commitlog
mailing list