diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 13:34:12 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 23:26:08 +0300 |
commit | 329430ccfc9ff864315974cf2fe7a35b00be5e9f (patch) | |
tree | 368e5a0b4154bb2bb0bfbd78ac5b57f4b378def5 /drivers/i2c/busses/i2c-thunderx-pcidrv.c | |
parent | ad3caf8abc385b974d863b7a7a2950f4b089fee8 (diff) | |
download | linux-329430ccfc9ff864315974cf2fe7a35b00be5e9f.tar.xz |
i2c: busses: make i2c_adapter const
Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-thunderx-pcidrv.c')
-rw-r--r-- | drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index ea35a895b568..df0976f4432a 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -75,7 +75,7 @@ static const struct i2c_algorithm thunderx_i2c_algo = { .functionality = thunderx_i2c_functionality, }; -static struct i2c_adapter thunderx_i2c_ops = { +static const struct i2c_adapter thunderx_i2c_ops = { .owner = THIS_MODULE, .name = "ThunderX adapter", .algo = &thunderx_i2c_algo, |