thermal: tegra-oc-event: Fix build for Linux v6.13

When compiling the tegra-oc-event driver with Linux v6.13 the build
fails with the following error:

 drivers/thermal/tegra234-oc-event.c:127:48: error: missing braces around
  initialiser [-Werror=missing-braces]
  127 | static const struct attribute_group oc1_data = {
      |                                                ^

The 'NULL' initialiser is not needed in the above structure because it
is not any array. Fix the build for Linux v6.13 by removing the NULL
initialisers from the appropriate structure declarations.

Bug 4991705

Change-Id: I2ddb99a316aa0124e9a4c1850ba1ea87d16abcbc
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261689
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Jon Hunter
2024-12-03 16:46:09 +00:00
parent b34e2f9554
commit f521823831

View File

@@ -126,17 +126,14 @@ static struct attribute *t234_oc3_attrs[] = {
static const struct attribute_group oc1_data = { static const struct attribute_group oc1_data = {
.attrs = t234_oc1_attrs, .attrs = t234_oc1_attrs,
NULL,
}; };
static const struct attribute_group oc2_data = { static const struct attribute_group oc2_data = {
.attrs = t234_oc2_attrs, .attrs = t234_oc2_attrs,
NULL,
}; };
static const struct attribute_group oc3_data = { static const struct attribute_group oc3_data = {
.attrs = t234_oc3_attrs, .attrs = t234_oc3_attrs,
NULL,
}; };
static const struct attribute_group *t234_oc_groups[] = { static const struct attribute_group *t234_oc_groups[] = {