mirror of https://github.com/OpenIPC/firmware.git
31 lines
884 B
Diff
31 lines
884 B
Diff
diff -drupN a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
|
|
--- a/include/linux/pinctrl/consumer.h 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/include/linux/pinctrl/consumer.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -192,4 +192,26 @@ static inline struct pinctrl * __must_ch
|
|
return devm_pinctrl_get_select(dev, PINCTRL_STATE_DEFAULT);
|
|
}
|
|
|
|
+#ifdef CONFIG_PINCONF
|
|
+
|
|
+extern int pin_config_get(const char *dev_name, const char *name,
|
|
+ unsigned long *config);
|
|
+extern int pin_config_set(const char *dev_name, const char *name,
|
|
+ unsigned long config);
|
|
+#else
|
|
+
|
|
+static inline int pin_config_get(const char *dev_name, const char *name,
|
|
+ unsigned long *config)
|
|
+{
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+static inline int pin_config_set(const char *dev_name, const char *name,
|
|
+ unsigned long config)
|
|
+{
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+#endif
|
|
+
|
|
#endif /* __LINUX_PINCTRL_CONSUMER_H */
|