Re: [PATCH 12/12] mmc: bcm2835: constify mmc_host_ops structures

2017-07-30 Thread Stefan Wahren
Am 29.07.2017 um 07:59 schrieb Julia Lawall: > The mmc_host_ops structure is only stored in the ops field of an > mmc_host structure, which is declared as const. Thus the mmc_host_ops > structure itself can be const. > > Done with the help of Coccinelle. > > // > @r disable optional_qualifier@ >

[PATCH 12/12] mmc: bcm2835: constify mmc_host_ops structures

2017-07-28 Thread Julia Lawall
The mmc_host_ops structure is only stored in the ops field of an mmc_host structure, which is declared as const. Thus the mmc_host_ops structure itself can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct mmc_host_ops i@p =