pinctrl: staticise example code funcs/structs
authorBaruch Siach <baruch@tkos.co.il>
Sun, 8 Mar 2015 10:03:05 +0000 (12:03 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Mar 2015 01:02:18 +0000 (02:02 +0100)
Make the example code consistent wrt local function and struct definitions.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt

index 8d92fc1a73a3f9ac5a8190a0c0d278c847bcf40f..5e9909c8c8a86cf205a25edae63d3f9f90e745b5 100644 (file)
@@ -681,12 +681,12 @@ static const struct foo_pmx_func foo_functions[] = {
        },
 };
 
-int foo_get_functions_count(struct pinctrl_dev *pctldev)
+static int foo_get_functions_count(struct pinctrl_dev *pctldev)
 {
        return ARRAY_SIZE(foo_functions);
 }
 
-const char *foo_get_fname(struct pinctrl_dev *pctldev, unsigned selector)
+static const char *foo_get_fname(struct pinctrl_dev *pctldev, unsigned selector)
 {
        return foo_functions[selector].name;
 }
@@ -700,7 +700,7 @@ static int foo_get_groups(struct pinctrl_dev *pctldev, unsigned selector,
        return 0;
 }
 
-int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
+static int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
                unsigned group)
 {
        u8 regbit = (1 << selector + group);
@@ -709,7 +709,7 @@ int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
        return 0;
 }
 
-struct pinmux_ops foo_pmxops = {
+static struct pinmux_ops foo_pmxops = {
        .get_functions_count = foo_get_functions_count,
        .get_function_name = foo_get_fname,
        .get_function_groups = foo_get_groups,
This page took 0.0261 seconds and 5 git commands to generate.