提交 6fb6f1ba 编写于 作者: S Sachin Kamat 提交者: Kukjin Kim

pinctrl: samsung: Do not initialise statics to 0

Static variables are initialised to 0 by GCC.
Fixes the following checkpatch error:
ERROR: do not initialise statics to 0 or NULL
FILE: pinctrl/pinctrl-samsung.c:50:
static unsigned int pin_base = 0;
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 4a991b41
...@@ -47,7 +47,7 @@ struct pin_config { ...@@ -47,7 +47,7 @@ struct pin_config {
{ "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN }, { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN },
}; };
static unsigned int pin_base = 0; static unsigned int pin_base;
static inline struct samsung_pin_bank *gc_to_pin_bank(struct gpio_chip *gc) static inline struct samsung_pin_bank *gc_to_pin_bank(struct gpio_chip *gc)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册