]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/isdn/mISDN/core.c
driver-core: constify data for class_find_device()
[mirror_ubuntu-artful-kernel.git] / drivers / isdn / mISDN / core.c
index 3e245712bba7e17a9f47e2060fc0dc4fdcd4b7ae..da30c5cb96096b6ff366c4473b9199ae20a72919 100644 (file)
@@ -168,13 +168,13 @@ static struct class mISDN_class = {
 };
 
 static int
-_get_mdevice(struct device *dev, void *id)
+_get_mdevice(struct device *dev, const void *id)
 {
        struct mISDNdevice *mdev = dev_to_mISDN(dev);
 
        if (!mdev)
                return 0;
-       if (mdev->id != *(u_int *)id)
+       if (mdev->id != *(const u_int *)id)
                return 0;
        return 1;
 }