aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/i2c')
-rw-r--r--Documentation/i2c/busses/i2c-i8011
-rw-r--r--Documentation/i2c/upgrading-clients6
-rw-r--r--Documentation/i2c/writing-clients8
3 files changed, 7 insertions, 8 deletions
diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801
index 793c83dac738..82f48f774afb 100644
--- a/Documentation/i2c/busses/i2c-i801
+++ b/Documentation/i2c/busses/i2c-i801
@@ -29,6 +29,7 @@ Supported adapters:
29 * Intel Wildcat Point-LP (PCH) 29 * Intel Wildcat Point-LP (PCH)
30 * Intel BayTrail (SOC) 30 * Intel BayTrail (SOC)
31 * Intel Sunrise Point-H (PCH) 31 * Intel Sunrise Point-H (PCH)
32 * Intel Sunrise Point-LP (PCH)
32 Datasheets: Publicly available at the Intel website 33 Datasheets: Publicly available at the Intel website
33 34
34On Intel Patsburg and later chipsets, both the normal host SMBus controller 35On Intel Patsburg and later chipsets, both the normal host SMBus controller
diff --git a/Documentation/i2c/upgrading-clients b/Documentation/i2c/upgrading-clients
index 8e5fbd88c7d1..ccba3ffd6e80 100644
--- a/Documentation/i2c/upgrading-clients
+++ b/Documentation/i2c/upgrading-clients
@@ -79,11 +79,10 @@ static struct i2c_driver example_driver = {
79 .driver = { 79 .driver = {
80 .owner = THIS_MODULE, 80 .owner = THIS_MODULE,
81 .name = "example", 81 .name = "example",
82 .pm = &example_pm_ops,
82 }, 83 },
83 .attach_adapter = example_attach_adapter, 84 .attach_adapter = example_attach_adapter,
84 .detach_client = example_detach, 85 .detach_client = example_detach,
85 .suspend = example_suspend,
86 .resume = example_resume,
87}; 86};
88 87
89 88
@@ -272,10 +271,9 @@ static struct i2c_driver example_driver = {
272 .driver = { 271 .driver = {
273 .owner = THIS_MODULE, 272 .owner = THIS_MODULE,
274 .name = "example", 273 .name = "example",
274 .pm = &example_pm_ops,
275 }, 275 },
276 .id_table = example_idtable, 276 .id_table = example_idtable,
277 .probe = example_probe, 277 .probe = example_probe,
278 .remove = example_remove, 278 .remove = example_remove,
279 .suspend = example_suspend,
280 .resume = example_resume,
281}; 279};
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients
index 6b344b516bff..a755b141fa4a 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -36,6 +36,7 @@ MODULE_DEVICE_TABLE(i2c, foo_idtable);
36static struct i2c_driver foo_driver = { 36static struct i2c_driver foo_driver = {
37 .driver = { 37 .driver = {
38 .name = "foo", 38 .name = "foo",
39 .pm = &foo_pm_ops, /* optional */
39 }, 40 },
40 41
41 .id_table = foo_idtable, 42 .id_table = foo_idtable,
@@ -47,8 +48,6 @@ static struct i2c_driver foo_driver = {
47 .address_list = normal_i2c, 48 .address_list = normal_i2c,
48 49
49 .shutdown = foo_shutdown, /* optional */ 50 .shutdown = foo_shutdown, /* optional */
50 .suspend = foo_suspend, /* optional */
51 .resume = foo_resume, /* optional */
52 .command = foo_command, /* optional, deprecated */ 51 .command = foo_command, /* optional, deprecated */
53} 52}
54 53
@@ -279,8 +278,9 @@ Power Management
279 278
280If your I2C device needs special handling when entering a system low 279If your I2C device needs special handling when entering a system low
281power state -- like putting a transceiver into a low power mode, or 280power state -- like putting a transceiver into a low power mode, or
282activating a system wakeup mechanism -- do that in the suspend() method. 281activating a system wakeup mechanism -- do that by implementing the
283The resume() method should reverse what the suspend() method does. 282appropriate callbacks for the dev_pm_ops of the driver (like suspend
283and resume).
284 284
285These are standard driver model calls, and they work just like they 285These are standard driver model calls, and they work just like they
286would for any other driver stack. The calls can sleep, and can use 286would for any other driver stack. The calls can sleep, and can use