]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/uio/uio.c
Driver core: Constify struct sysfs_ops in struct kobj_type
[mirror_ubuntu-bionic-kernel.git] / drivers / uio / uio.c
index e941367dd28f8ab907350e83cedc7e1b1ac40a94..4de382acd8f26ecc64d74dfcdaf5deba7d7d87cd 100644 (file)
@@ -129,7 +129,7 @@ static ssize_t map_type_show(struct kobject *kobj, struct attribute *attr,
        return entry->show(mem, buf);
 }
 
-static struct sysfs_ops map_sysfs_ops = {
+static const struct sysfs_ops map_sysfs_ops = {
        .show = map_type_show,
 };
 
@@ -217,7 +217,7 @@ static ssize_t portio_type_show(struct kobject *kobj, struct attribute *attr,
        return entry->show(port, buf);
 }
 
-static struct sysfs_ops portio_sysfs_ops = {
+static const struct sysfs_ops portio_sysfs_ops = {
        .show = portio_type_show,
 };