.suspend = example_suspend,
.resume = example_resume,
};
.suspend = example_suspend,
.resume = example_resume,
};
The new style binding model will check against a list of supported
devices and their associated address supplied by the code registering
the busses. This means that the driver .attach_adapter and
The new style binding model will check against a list of supported
devices and their associated address supplied by the code registering
the busses. This means that the driver .attach_adapter and
static struct i2c_driver example_driver = {
- .attach_adapter = example_attach_adapter,
static struct i2c_driver example_driver = {
- .attach_adapter = example_attach_adapter,
}
Add the probe and remove methods to the i2c_driver, as so:
static struct i2c_driver example_driver = {
+ .probe = example_probe,
}
Add the probe and remove methods to the i2c_driver, as so:
static struct i2c_driver example_driver = {
+ .probe = example_probe,
-- static int __devexit example_detach(struct i2c_client *client)
-+ static int __devexit example_remove(struct i2c_client *client)
+- static int example_detach(struct i2c_client *client)
++ static int example_remove(struct i2c_client *client)
.suspend = example_suspend,
.resume = example_resume,
};
.suspend = example_suspend,
.resume = example_resume,
};