atm: make atmdev_ops const
Make these structures const as they are either passed to the function atm_dev_register having the corresponding argument as const or stored in the ops field of a atm_dev structure, which is also const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:
@@ -161,7 +161,7 @@ static unsigned int clocktab[] = {
|
||||
CLK_LOW
|
||||
};
|
||||
|
||||
static struct atmdev_ops he_ops =
|
||||
static const struct atmdev_ops he_ops =
|
||||
{
|
||||
.open = he_open,
|
||||
.close = he_close,
|
||||
|
Referência em uma nova issue
Block a user