Przeglądaj źródła

intel_th: Constify subdevices

The subdevice array consists of immutable objects, make them const.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Alexander Shishkin 8 lat temu
rodzic
commit
77c98b28ee
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/hwtracing/intel_th/core.c

+ 1 - 1
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;