diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-18 14:17:25 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-10-29 09:50:24 +0100 |
commit | a2f528e91458b3c3360f21a34381b91883ff28e1 (patch) | |
tree | 92efc45cdbf871bd7703666083daf0c6f0c3a8a1 /drivers/iommu/iommu-sysfs.c | |
parent | 6632863226d88383c9e2bedfeeb928ac7f8232b9 (diff) | |
download | lwn-a2f528e91458b3c3360f21a34381b91883ff28e1.tar.gz lwn-a2f528e91458b3c3360f21a34381b91883ff28e1.zip |
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>
Diffstat (limited to 'drivers/iommu/iommu-sysfs.c')
-rw-r--r-- | drivers/iommu/iommu-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c index cbe378c34ba3..170022c09536 100644 --- a/drivers/iommu/iommu-sysfs.c +++ b/drivers/iommu/iommu-sysfs.c @@ -34,7 +34,7 @@ static void release_device(struct device *dev) kfree(dev); } -static struct class iommu_class = { +static const struct class iommu_class = { .name = "iommu", .dev_release = release_device, .dev_groups = dev_groups, |