driver core: bus: mark the struct bus_type for sysfs callbacks as constant
[platform/kernel/linux-starfive.git] / drivers / hv / vmbus_drv.c
index d24dd65..513adba 100644 (file)
@@ -684,7 +684,7 @@ static const struct attribute_group vmbus_dev_group = {
 __ATTRIBUTE_GROUPS(vmbus_dev);
 
 /* Set up the attribute for /sys/bus/vmbus/hibernation */
-static ssize_t hibernation_show(struct bus_type *bus, char *buf)
+static ssize_t hibernation_show(const struct bus_type *bus, char *buf)
 {
        return sprintf(buf, "%d\n", !!hv_is_hibernation_supported());
 }