Skip to contentSkip to conversation

peci: fix a build warning

PATCH New Jae Hyun Yoo 1 participant 1 message Dec 20, 2019 PECI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 peci: fix a build warning

This commit fixes below build warning when CONFIG_OF_DYNAMIC is enabled:

expected ‘int (*)(struct device *, const void *)’ but argument is of type ‘int (*)(struct device *, void *)’

---
 drivers/peci/peci-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/peci/peci-core.c +1 -1
index 61a2a59a9fe4..9aedb74710e6 100644
@@ -1703,7 +1703,7 @@ static void peci_of_register_devices(struct peci_adapter *adapter) { }
 #endif /* CONFIG_OF */
 
 #if IS_ENABLED(CONFIG_OF_DYNAMIC)
-static int peci_of_match_node(struct device *dev, void *data)
+static int peci_of_match_node(struct device *dev, const void *data)
 {
 	return dev->of_node == data;
 }
Signature · 1 line
2.17.1