mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
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>
This commit is contained in:
parent
6632863226
commit
a2f528e914
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user