]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ieee802154/wpan-class.c
driver-core: constify data for class_find_device()
[mirror_ubuntu-artful-kernel.git] / net / ieee802154 / wpan-class.c
index 1627ef2e85229d524727af6c111e3f4aa6507d36..13571eae6baec862f06857a39c5a735ba0b9bfea 100644 (file)
@@ -91,7 +91,7 @@ static struct class wpan_phy_class = {
 static DEFINE_MUTEX(wpan_phy_mutex);
 static int wpan_phy_idx;
 
-static int wpan_phy_match(struct device *dev, void *data)
+static int wpan_phy_match(struct device *dev, const void *data)
 {
        return !strcmp(dev_name(dev), (const char *)data);
 }
@@ -103,8 +103,7 @@ struct wpan_phy *wpan_phy_find(const char *str)
        if (WARN_ON(!str))
                return NULL;
 
-       dev = class_find_device(&wpan_phy_class, NULL,
-                       (void *)str, wpan_phy_match);
+       dev = class_find_device(&wpan_phy_class, NULL, str, wpan_phy_match);
        if (!dev)
                return NULL;