提交 38a3fbf1 编写于 作者: M Maxime Coquelin 提交者: Linus Walleij

pinctrl: stm32: Remove dependency with DT bindings header files

Some macros where defined in DT bindings headers, whereas only used
in the driver.

This patch moves these macros to the driver side.
Signed-off-by: NMaxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 2ba384e6
......@@ -23,8 +23,6 @@
#include <linux/reset.h>
#include <linux/slab.h>
#include <dt-bindings/pinctrl/pinctrl-stm32.h>
#include "../core.h"
#include "../pinconf.h"
#include "../pinctrl-utils.h"
......
......@@ -9,6 +9,14 @@
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinconf-generic.h>
#define STM32_PIN_NO(x) ((x) << 8)
#define STM32_GET_PIN_NO(x) ((x) >> 8)
#define STM32_GET_PIN_FUNC(x) ((x) & 0xff)
#define STM32_PIN_GPIO 0
#define STM32_PIN_AF(x) ((x) + 1)
#define STM32_PIN_ANALOG (STM32_PIN_AF(15) + 1)
struct stm32_desc_function {
const char *name;
const unsigned char num;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册