iommu/sysfs: constify the class struct
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 18 Oct 2024 12:17:25 +0000 (14:17 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 08:50:24 +0000 (09:50 +0100)
commita2f528e91458b3c3360f21a34381b91883ff28e1
tree92efc45cdbf871bd7703666083daf0c6f0c3a8a1
parent6632863226d88383c9e2bedfeeb928ac7f8232b9
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>
drivers/iommu/iommu-sysfs.c