Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / drivers / scsi / scsi_sysfs.c
index 8ef9a54943403a8c717ed64bbe44181a6bed1ece..ee28f73af4d4ff24b5f27bc1a3e17c46be7f4369 100644 (file)
@@ -536,9 +536,9 @@ static int scsi_bus_match(struct device *dev, struct device_driver *gendrv)
        return (sdp->inq_periph_qual == SCSI_INQ_PQ_CON)? 1: 0;
 }
 
-static int scsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int scsi_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
 {
-       struct scsi_device *sdev;
+       const struct scsi_device *sdev;
 
        if (dev->type != &scsi_dev_type)
                return 0;