From: Alexander Shishkin Date: Fri, 18 Nov 2016 14:52:08 +0000 (+0200) Subject: intel_th: Constify subdevices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77c98b28ee68b9e26bd1492e547cb2e5d3fcfc94;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git intel_th: Constify subdevices The subdevice array consists of immutable objects, make them const. Signed-off-by: Alexander Shishkin --- diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c index 6f0a51a2c6ec..79e19627b99f 100644 --- a/drivers/hwtracing/intel_th/core.c +++ b/drivers/hwtracing/intel_th/core.c @@ -380,7 +380,7 @@ static void intel_th_device_free(struct intel_th_device *thdev) /* * Intel(R) Trace Hub subdevices */ -static struct intel_th_subdevice { +static const struct intel_th_subdevice { const char *name; struct resource res[3]; unsigned nres;