diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-10-22 14:21:31 -0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2008-10-22 14:21:31 -0400 |
commit | 7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch) | |
tree | 31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /Documentation | |
parent | d955cafb5c288aee4d71fc8759943e3f6cc9331d (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')
-rw-r--r-- | Documentation/i2c/writing-clients | 2 |
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. | |||
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 | ||
88 | An example structure is below. | 88 | An example structure is below. |
89 | 89 | ||