nfsd4.1: common slot allocation size calculation
[safe/jmp/linux-2.6] / include / linux / of_i2c.h
index 2e5a967..34974b5 100644 (file)
 
 #include <linux/i2c.h>
 
-#ifdef CONFIG_OF_I2C
-
 void of_register_i2c_devices(struct i2c_adapter *adap,
                             struct device_node *adap_node);
 
-#endif /* CONFIG_OF_I2C */
+/* must call put_device() when done with returned i2c_client device */
+struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
 
 #endif /* __LINUX_OF_I2C_H */