iommu/sysfs: constify the class struct
All functions that take the class address as argument expect a const pointer so we can make the iommu class constant. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20241018121725.61128-1-brgl@bgdev.pl Signed-off-by: Joerg Roedel <jroedel@suse.de>pull/1085/head
parent
6632863226
commit
a2f528e914
|
|
@ -34,7 +34,7 @@ static void release_device(struct device *dev)
|
||||||
kfree(dev);
|
kfree(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct class iommu_class = {
|
static const struct class iommu_class = {
|
||||||
.name = "iommu",
|
.name = "iommu",
|
||||||
.dev_release = release_device,
|
.dev_release = release_device,
|
||||||
.dev_groups = dev_groups,
|
.dev_groups = dev_groups,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue