]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/ams/ams.h
hwmon: (ams) Convert to a new-style i2c driver
[linux-2.6-omap-h63xx.git] / drivers / hwmon / ams / ams.h
index a6221e5dd984292613634a6ddf28c775615e6465..5ed387b0bd9aa08185e05bd790ac06976a8a7bed 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>
-#include <asm/of_device.h>
+#include <linux/of_device.h>
 
 enum ams_irq {
        AMS_IRQ_FREEFALL = 0x01,
@@ -46,9 +46,7 @@ struct ams {
 
 #ifdef CONFIG_SENSORS_AMS_I2C
        /* I2C properties */
-       int i2c_bus;
-       int i2c_address;
-       struct i2c_client i2c_client;
+       struct i2c_client *i2c_client;
 #endif
 
        /* Joystick emulation */