driver-core: constify data for class_find_device()
[deliverable/linux.git] / net / nfc / core.c
index aa64ea441676a1ce9fc8c2417cc4487eaecf2cec..0f4a6de6f16183bac66baf5a5d7a4b8dd2710011 100644 (file)
@@ -734,10 +734,10 @@ struct class nfc_class = {
 };
 EXPORT_SYMBOL(nfc_class);
 
-static int match_idx(struct device *d, void *data)
+static int match_idx(struct device *d, const void *data)
 {
        struct nfc_dev *dev = to_nfc_dev(d);
-       unsigned int *idx = data;
+       const unsigned int *idx = data;
 
        return dev->idx == *idx;
 }
This page took 0.024592 seconds and 5 git commands to generate.