diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-10-22 20:21:31 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2008-10-22 20:21:31 +0200 |
commit | 7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch) | |
tree | 31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /Documentation/i2c | |
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/i2c')
-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. 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. |