Title: [8878] trunk/arch/blackfin/mach-bf537/boards/stamp.c: LKML feedback: update board config for ad5398 regulator driver.
Revision
8878
Author
sonicz
Date
2010-06-02 04:24:18 -0400 (Wed, 02 Jun 2010)

Log Message

LKML feedback: update board config for ad5398 regulator driver.

Modified Paths


Diff

Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (8877 => 8878)


--- trunk/arch/blackfin/mach-bf537/boards/stamp.c	2010-06-02 08:23:29 UTC (rev 8877)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c	2010-06-02 08:24:18 UTC (rev 8878)
@@ -38,9 +38,6 @@
 #ifdef CONFIG_REGULATOR_FIXED_VOLTAGE
 #include <linux/regulator/fixed.h>
 #endif
-#ifdef CONFIG_REGULATOR_AD5398
-#include <linux/regulator/ad5398.h>
-#endif
 #include <linux/regulator/machine.h>
 #include <linux/regulator/consumer.h>
 #include <linux/regulator/userspace-consumer.h>
@@ -2145,12 +2142,6 @@
 	.consumer_supplies     = &ad5398_consumer,
 };
 
-static struct ad5398_platform_data ad5398_i2c_platform_data = {
-	.current_bits = 10,
-	.current_offset = 4,
-	.regulator_data = &ad5398_regulator_data,
-};
-
 #if defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER) || \
 	defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER_MODULE)
 static struct platform_device ad5398_virt_consumer_device = {
@@ -2392,7 +2383,7 @@
 #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE)
 	{
 		I2C_BOARD_INFO("ad5398", 0xC),
-		.platform_data = (void *)&ad5398_i2c_platform_data,
+		.platform_data = (void *)&ad5398_regulator_data,
 	},
 #endif
 #if defined(CONFIG_BACKLIGHT_ADP8860) || defined(CONFIG_BACKLIGHT_ADP8860_MODULE)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to