]> git.baikalelectronics.ru Git - kernel.git/commit
net: ibm: ibmveth: constify dev_pm_ops structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 29 Jun 2017 05:44:50 +0000 (11:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:48:49 +0000 (15:48 -0400)
commit73fd52bcc548f8652720bbbc2d7175434a199928
tree7cca9e59cf34e7a054614da901b62c2911a8cab8
parent8f6e3985a40ffda5924a10fef4a63857e6b6de98
net: ibm: ibmveth: constify dev_pm_ops structures.

dev_pm_ops are not supposed to change at runtime. All functions
working with dev_pm_ops provided by <linux/device.h> work with const
dev_pm_ops. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
  15426    1256       0   16682    412a drivers/net/ethernet/ibm/ibmveth.o

File size After adding 'const':
   text    data     bss     dec     hex filename
  15618    1064       0   16682    412a drivers/net/ethernet/ibm/ibmveth.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c