summaryrefslogtreecommitdiffstats
path: root/Documentation/pinctrl.txt
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-03-08 06:03:05 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-03-17 21:02:18 -0400
commitc58e031d73af7373c91a97b75841dbf4114e532e (patch)
treee79eff2a7a3f0ea791dadfdca7f9ed69a590aa39 /Documentation/pinctrl.txt
parentb18104c00089c73f2b70790765d40424a4f9b65f (diff)
pinctrl: staticise example code funcs/structs
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>
Diffstat (limited to 'Documentation/pinctrl.txt')
-rw-r--r--Documentation/pinctrl.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index 8d92fc1a73a3..5e9909c8c8a8 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -681,12 +681,12 @@ static const struct foo_pmx_func foo_functions[] = {
681 }, 681 },
682}; 682};
683 683
684int foo_get_functions_count(struct pinctrl_dev *pctldev) 684static int foo_get_functions_count(struct pinctrl_dev *pctldev)
685{ 685{
686 return ARRAY_SIZE(foo_functions); 686 return ARRAY_SIZE(foo_functions);
687} 687}
688 688
689const char *foo_get_fname(struct pinctrl_dev *pctldev, unsigned selector) 689static const char *foo_get_fname(struct pinctrl_dev *pctldev, unsigned selector)
690{ 690{
691 return foo_functions[selector].name; 691 return foo_functions[selector].name;
692} 692}
@@ -700,7 +700,7 @@ static int foo_get_groups(struct pinctrl_dev *pctldev, unsigned selector,
700 return 0; 700 return 0;
701} 701}
702 702
703int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector, 703static int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
704 unsigned group) 704 unsigned group)
705{ 705{
706 u8 regbit = (1 << selector + group); 706 u8 regbit = (1 << selector + group);
@@ -709,7 +709,7 @@ int foo_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
709 return 0; 709 return 0;
710} 710}
711 711
712struct pinmux_ops foo_pmxops = { 712static struct pinmux_ops foo_pmxops = {
713 .get_functions_count = foo_get_functions_count, 713 .get_functions_count = foo_get_functions_count,
714 .get_function_name = foo_get_fname, 714 .get_function_name = foo_get_fname,
715 .get_function_groups = foo_get_groups, 715 .get_function_groups = foo_get_groups,