Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: syscon: Add missing struct device_node declaration

syscon.h header uses struct device_node in functions' declarations
without declaring it. This causes compilation warnings like:

include/linux/mfd/syscon.h:20: warning: ‘struct device_node’
declared inside parameter list
include/linux/mfd/syscon.h:20: warning: its scope is only this
definition or declaration, which is probably not what you want

Fix it by adding a forward declaration of struct device_node.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Sylwester Nawrocki and committed by
Samuel Ortiz
5fb1c2dd f201f730

+2
+2
include/linux/mfd/syscon.h
··· 15 15 #ifndef __LINUX_MFD_SYSCON_H__ 16 16 #define __LINUX_MFD_SYSCON_H__ 17 17 18 + struct device_node; 19 + 18 20 extern struct regmap *syscon_node_to_regmap(struct device_node *np); 19 21 extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); 20 22 extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);