]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/iio/gyro/mpu3050-core.c
Merge tag 'backlight-next-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee...
[mirror_ubuntu-jammy-kernel.git] / drivers / iio / gyro / mpu3050-core.c
index 5ddebede31a6f6f3625263893ad27a0f3fb68b88..0a406163d775975bd4ae100efb06e8cd697d9d78 100644 (file)
@@ -865,7 +865,7 @@ static int mpu3050_power_up(struct mpu3050 *mpu3050)
                dev_err(mpu3050->dev, "error setting power mode\n");
                return ret;
        }
-       msleep(10);
+       usleep_range(10000, 20000);
 
        return 0;
 }
@@ -1150,8 +1150,7 @@ int mpu3050_common_probe(struct device *dev,
        mpu3050->divisor = 99;
 
        /* Read the mounting matrix, if present */
-       ret = of_iio_read_mount_matrix(dev, "mount-matrix",
-                                      &mpu3050->orientation);
+       ret = iio_read_mount_matrix(dev, "mount-matrix", &mpu3050->orientation);
        if (ret)
                return ret;