]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
intel_th: Constify subdevices
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 18 Nov 2016 14:52:08 +0000 (16:52 +0200)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 18 Nov 2016 15:07:18 +0000 (17:07 +0200)
The subdevice array consists of immutable objects, make them const.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/hwtracing/intel_th/core.c

index 6f0a51a2c6ec6df69d6761057c4747c419bffbdc..79e19627b99fd4505097db5199dab5f2ca8da1fd 100644 (file)
@@ -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;