diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2016-10-15 20:32:01 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-11-18 04:05:03 +0300 |
commit | 379883cc67d890e0412d6e6c952d7eb0614b915a (patch) | |
tree | 6524bd62e60c635277f6f6caedc1b68d7e747589 /drivers/i2c/busses/i2c-dln2.c | |
parent | ff3a98be794d13dc0104c0a1fbab2b52f1a3299b (diff) | |
download | linux-379883cc67d890e0412d6e6c952d7eb0614b915a.tar.xz |
i2c: constify i2c_adapter_quirks structures
Check for i2c_adapter_quirks structures that are only stored in the
quirks field of an i2c_adapter structure. This field is declared
const, so i2c_adapter_quirks structures that have this property can be
declared as const also.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Ray Jui <ray.jui@broadcom.com> # for bcm-iproc
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-dln2.c')
-rw-r--r-- | drivers/i2c/busses/i2c-dln2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-dln2.c b/drivers/i2c/busses/i2c-dln2.c index 8acda2aa1558..69075a32073e 100644 --- a/drivers/i2c/busses/i2c-dln2.c +++ b/drivers/i2c/busses/i2c-dln2.c @@ -182,7 +182,7 @@ static const struct i2c_algorithm dln2_i2c_usb_algorithm = { .functionality = dln2_i2c_func, }; -static struct i2c_adapter_quirks dln2_i2c_quirks = { +static const struct i2c_adapter_quirks dln2_i2c_quirks = { .max_read_len = DLN2_I2C_MAX_XFER_SIZE, .max_write_len = DLN2_I2C_MAX_XFER_SIZE, }; |