peci: fix a build warning
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 *)’
Signed-off-by Jae Hyun Yoo <[email protected]>
--- drivers/peci/peci-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/peci/peci-core.c +1 -1
@@ -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