mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:30:52 +07:00
pinctrl: rza1: make structures rza1_gpiochip_template and rza1_pinmux_ops static
structures rza1_gpiochip_template and rza1_pinmux_ops do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'rza1_gpiochip_template' was not declared. Should it be static? symbol 'rza1_pinmux_ops' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
ea4083165f
commit
09dc048d13
@ -723,7 +723,7 @@ static void rza1_gpio_set(struct gpio_chip *chip, unsigned int gpio,
|
|||||||
rza1_pin_set(port, gpio, value);
|
rza1_pin_set(port, gpio, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct gpio_chip rza1_gpiochip_template = {
|
static struct gpio_chip rza1_gpiochip_template = {
|
||||||
.request = rza1_gpio_request,
|
.request = rza1_gpio_request,
|
||||||
.free = rza1_gpio_free,
|
.free = rza1_gpio_free,
|
||||||
.get_direction = rza1_gpio_get_direction,
|
.get_direction = rza1_gpio_get_direction,
|
||||||
@ -1026,7 +1026,7 @@ static int rza1_set_mux(struct pinctrl_dev *pctldev, unsigned int selector,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pinmux_ops rza1_pinmux_ops = {
|
static struct pinmux_ops rza1_pinmux_ops = {
|
||||||
.get_functions_count = pinmux_generic_get_function_count,
|
.get_functions_count = pinmux_generic_get_function_count,
|
||||||
.get_function_name = pinmux_generic_get_function_name,
|
.get_function_name = pinmux_generic_get_function_name,
|
||||||
.get_function_groups = pinmux_generic_get_function_groups,
|
.get_function_groups = pinmux_generic_get_function_groups,
|
||||||
|
Loading…
Reference in New Issue
Block a user