Changeset 1828


Ignore:
Timestamp:
04/25/07 11:15:33 (6 years ago)
Author:
laforge
Message:
  • remove bogus outdated comment about missing check for overvoltage
  • printk warning message if somebody tries to set an overvoltage
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/kernel/patches/gta01-pcf50606.patch

    r1715 r1828  
    11This is the PCF50606 power management unit driver for FIC GTA01 
    22 
    3 Index: linux-2.6.20.4/drivers/i2c/chips/pcf50606.c 
     3Index: linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.c 
    44=================================================================== 
    5 --- /dev/null   1970-01-01 00:00:00.000000000 +0000 
    6 +++ linux-2.6.20.4/drivers/i2c/chips/pcf50606.c 2007-04-02 19:12:27.000000000 +0200 
    7 @@ -0,0 +1,1921 @@ 
     5--- /dev/null 
     6+++ linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.c 
     7@@ -0,0 +1,1923 @@ 
    88+/* Philips PCF50606 Power Management Unit (PMU) driver 
    99+ * 
     
    863863+               return -EIO; 
    864864+ 
    865 +       /* FIXME: consult platform-specific table to make sure we don't 
    866 +        * set a too high voltage on any regulator! */ 
    867 + 
    868 +       DEBUGP("setting %s(%d) to %lu mvolts\n", attr->attr.name, reg_id, 
    869 +               mvolts); 
     865+       DEBUGP("attempting to set %s(%d) to %lu mvolts\n", attr->attr.name, 
     866+               reg_id, mvolts); 
    870867+ 
    871868+       if (mvolts == 0) { 
    872869+               pcf50606_onoff_set(pcf, reg_id, 0); 
    873870+       } else { 
    874 +               pcf50606_voltage_set(pcf, reg_id, mvolts); 
     871+               if (pcf50606_voltage_set(pcf, reg_id, mvolts) < 0) { 
     872+                       dev_warn(dev, "refusing to set %s(%d) to %lu mvolts " 
     873+                                "(max=%u)\n", attr->attr.name, reg_id, mvolts, 
     874+                                pcf->pdata->rails[reg_id].voltage.max); 
     875+                       return -EINVAL; 
     876+               } 
    875877+               pcf50606_onoff_set(pcf, reg_id, 1); 
    876878+       } 
     
    19271929+module_init(pcf50606_init); 
    19281930+module_exit(pcf50606_exit); 
    1929 Index: linux-2.6.20.4/drivers/i2c/chips/pcf50606.h 
     1931Index: linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.h 
    19301932=================================================================== 
    1931 --- /dev/null   1970-01-01 00:00:00.000000000 +0000 
    1932 +++ linux-2.6.20.4/drivers/i2c/chips/pcf50606.h 2007-04-01 12:46:15.000000000 +0200 
     1933--- /dev/null 
     1934+++ linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.h 
    19331935@@ -0,0 +1,302 @@ 
    19341936+#ifndef _PCF50606_H 
     
    22342236+#endif /* _PCF50606_H */ 
    22352237+ 
    2236 Index: linux-2.6.20.4/drivers/i2c/chips/Kconfig 
     2238Index: linux-2.6.20.7-moko/drivers/i2c/chips/Kconfig 
    22372239=================================================================== 
    2238 --- linux-2.6.20.4.orig/drivers/i2c/chips/Kconfig       2007-03-23 20:52:51.000000000 +0100 
    2239 +++ linux-2.6.20.4/drivers/i2c/chips/Kconfig    2007-03-26 19:01:17.000000000 +0200 
     2240--- linux-2.6.20.7-moko.orig/drivers/i2c/chips/Kconfig 
     2241+++ linux-2.6.20.7-moko/drivers/i2c/chips/Kconfig 
    22402242@@ -36,6 +36,17 @@ 
    22412243          This driver can also be built as a module.  If so, the module 
     
    22562258        tristate "Philips PCF8574 and PCF8574A" 
    22572259        depends on I2C && EXPERIMENTAL 
    2258 Index: linux-2.6.20.4/drivers/i2c/chips/Makefile 
     2260Index: linux-2.6.20.7-moko/drivers/i2c/chips/Makefile 
    22592261=================================================================== 
    2260 --- linux-2.6.20.4.orig/drivers/i2c/chips/Makefile      2007-03-23 20:52:51.000000000 +0100 
    2261 +++ linux-2.6.20.4/drivers/i2c/chips/Makefile   2007-03-26 19:01:17.000000000 +0200 
     2262--- linux-2.6.20.7-moko.orig/drivers/i2c/chips/Makefile 
     2263+++ linux-2.6.20.7-moko/drivers/i2c/chips/Makefile 
    22622264@@ -8,6 +8,7 @@ 
    22632265 obj-$(CONFIG_SENSORS_MAX6875)  += max6875.o 
     
    22682270 obj-$(CONFIG_SENSORS_PCF8591)  += pcf8591.o 
    22692271 obj-$(CONFIG_ISP1301_OMAP)     += isp1301_omap.o 
    2270 Index: linux-2.6.20.4/include/linux/i2c-id.h 
     2272Index: linux-2.6.20.7-moko/include/linux/i2c-id.h 
    22712273=================================================================== 
    2272 --- linux-2.6.20.4.orig/include/linux/i2c-id.h  2007-03-26 19:01:17.000000000 +0200 
    2273 +++ linux-2.6.20.4/include/linux/i2c-id.h       2007-03-26 19:01:17.000000000 +0200 
     2274--- linux-2.6.20.7-moko.orig/include/linux/i2c-id.h 
     2275+++ linux-2.6.20.7-moko/include/linux/i2c-id.h 
    22742276@@ -159,6 +159,7 @@ 
    22752277 #define I2C_DRIVERID_FSCHER 1046 
     
    22802282 /* 
    22812283  * ---- Adapter types ---------------------------------------------------- 
    2282 Index: linux-2.6.20.4/include/linux/pcf50606.h 
     2284Index: linux-2.6.20.7-moko/include/linux/pcf50606.h 
    22832285=================================================================== 
    2284 --- /dev/null   1970-01-01 00:00:00.000000000 +0000 
    2285 +++ linux-2.6.20.4/include/linux/pcf50606.h     2007-04-01 13:01:16.000000000 +0200 
     2286--- /dev/null 
     2287+++ linux-2.6.20.7-moko/include/linux/pcf50606.h 
    22862288@@ -0,0 +1,101 @@ 
    22872289+#ifndef _LINUX_PCF50606_H 
Note: See TracChangeset for help on using the changeset viewer.