]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: constify etnaviv_iommu_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 15 Jan 2017 18:50:28 +0000 (00:20 +0530)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 2 Feb 2017 09:29:52 +0000 (10:29 +0100)
commitf5d6010d27e1539cff27bb576771cb75fcdd0202
treecf246c98ce8f9267d61f327967a097dc63a538c0
parentff000a5cb176c37760e4e54b23bdddcee33a5295
drm/etnaviv: constify etnaviv_iommu_ops structures

Declare etnaviv_iommu_ops structure as const as it is only used when
the reference of one of its field is stored in the ops field of a
iommu_domain structure. This ops field is of type const, so
etnaviv_iommu_ops structures having similar properties can be declared
const too.

Done using Coccinelle.
Before and after size details of .o file remains the same after
cross compiling for arm architecture.

lst: Trimmed commit message, apply the same change to iommu_v2.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_iommu.c
drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c