Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1e95084 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Christoph Hellwig
Browse files

ACPI: configfs: make config_item_type const



Make these structures const as they are either passed to the functions
having the argument as const or stored as a reference in the "ci_type"
const field of a config_item structure.

Done using Coccienlle.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 66603a31
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -204,7 +204,7 @@ struct configfs_attribute *acpi_table_attrs[] = {
	NULL,
	NULL,
};
};


static struct config_item_type acpi_table_type = {
static const struct config_item_type acpi_table_type = {
	.ct_owner = THIS_MODULE,
	.ct_owner = THIS_MODULE,
	.ct_bin_attrs = acpi_table_bin_attrs,
	.ct_bin_attrs = acpi_table_bin_attrs,
	.ct_attrs = acpi_table_attrs,
	.ct_attrs = acpi_table_attrs,
@@ -237,12 +237,12 @@ struct configfs_group_operations acpi_table_group_ops = {
	.drop_item = acpi_table_drop_item,
	.drop_item = acpi_table_drop_item,
};
};


static struct config_item_type acpi_tables_type = {
static const struct config_item_type acpi_tables_type = {
	.ct_owner = THIS_MODULE,
	.ct_owner = THIS_MODULE,
	.ct_group_ops = &acpi_table_group_ops,
	.ct_group_ops = &acpi_table_group_ops,
};
};


static struct config_item_type acpi_root_group_type = {
static const struct config_item_type acpi_root_group_type = {
	.ct_owner = THIS_MODULE,
	.ct_owner = THIS_MODULE,
};
};