summaryrefslogtreecommitdiff
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-10-22 22:21:31 +0400
committerJean Delvare <khali@linux-fr.org>2008-10-22 22:21:31 +0400
commit7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch)
tree31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /Documentation/i2c
parentd955cafb5c288aee4d71fc8759943e3f6cc9331d (diff)
downloadlinux-7d1d8999b4bec0ba09f935e648a688bb25596d06.tar.xz
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 d73ee117a8ca..3b01350c149c 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -83,7 +83,7 @@ be very useful.
void i2c_set_clientdata(struct i2c_client *client, void *data);
/* retrieve the value */
- void *i2c_get_clientdata(struct i2c_client *client);
+ void *i2c_get_clientdata(const struct i2c_client *client);
An example structure is below.