mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 20:47:11 +08:00
loongson: 2k1000: pinctrl: fix compile warning
Changelog: NULL Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -458,18 +458,18 @@ static int ls2k_pmx_set_mux(struct pinctrl_dev *pcdev, unsigned int func_num,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ls2k_pmx_get_funcs_count(struct pinctrl_dev *pcdev)
|
||||
static int ls2k_pmx_get_funcs_count(struct pinctrl_dev *pcdev)
|
||||
{
|
||||
return ARRAY_SIZE(ls2k_pmx_functions);
|
||||
}
|
||||
|
||||
const char *ls2k_pmx_get_func_name(struct pinctrl_dev *pcdev,
|
||||
static const char *ls2k_pmx_get_func_name(struct pinctrl_dev *pcdev,
|
||||
unsigned int selector)
|
||||
{
|
||||
return ls2k_pmx_functions[selector].name;
|
||||
}
|
||||
|
||||
int ls2k_pmx_get_groups(struct pinctrl_dev *pcdev, unsigned int selector,
|
||||
static int ls2k_pmx_get_groups(struct pinctrl_dev *pcdev, unsigned int selector,
|
||||
const char * const **groups,
|
||||
unsigned int * const num_groups)
|
||||
{
|
||||
@@ -486,7 +486,7 @@ const struct pinmux_ops ls2k_pmx_ops = {
|
||||
.get_function_groups = ls2k_pmx_get_groups,
|
||||
};
|
||||
|
||||
int ls2k_pinctrl_probe(struct platform_device *pdev)
|
||||
static int ls2k_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct ls2k_pinctrl *pctrl;
|
||||
|
||||
Reference in New Issue
Block a user