aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-10-22 14:21:31 -0400
committerJean Delvare <khali@linux-fr.org>2008-10-22 14:21:31 -0400
commit7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch)
tree31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /Documentation/i2c
parentd955cafb5c288aee4d71fc8759943e3f6cc9331d (diff)
i2c: Constify i2c_get_clientdata's parameter
i2c_get_clientdata doesn't change the i2c_client it is passed as a parameter, so it can be constified. Same for i2c_get_adapdata. Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'Documentation/i2c')
-rw-r--r--Documentation/i2c/writing-clients2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients
index d73ee117a8c..3b01350c149 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -83,7 +83,7 @@ be very useful.
83 void i2c_set_clientdata(struct i2c_client *client, void *data); 83 void i2c_set_clientdata(struct i2c_client *client, void *data);
84 84
85 /* retrieve the value */ 85 /* retrieve the value */
86 void *i2c_get_clientdata(struct i2c_client *client); 86 void *i2c_get_clientdata(const struct i2c_client *client);
87 87
88An example structure is below. 88An example structure is below.
89 89