Commit d756d387 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-pinctrl: align function parameters in some functions

Function parameters along the code has different alignment styles.
Just unify all of them making style consistent.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5d66a18
...@@ -76,8 +76,8 @@ static int rt2880_get_group_pins(struct pinctrl_dev *pctrldev, ...@@ -76,8 +76,8 @@ static int rt2880_get_group_pins(struct pinctrl_dev *pctrldev,
} }
static void rt2880_pinctrl_dt_free_map(struct pinctrl_dev *pctrldev, static void rt2880_pinctrl_dt_free_map(struct pinctrl_dev *pctrldev,
struct pinctrl_map *map, struct pinctrl_map *map,
unsigned int num_maps) unsigned int num_maps)
{ {
int i; int i;
...@@ -96,8 +96,8 @@ static void rt2880_pinctrl_pin_dbg_show(struct pinctrl_dev *pctrldev, ...@@ -96,8 +96,8 @@ static void rt2880_pinctrl_pin_dbg_show(struct pinctrl_dev *pctrldev,
} }
static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev, static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev,
struct device_node *np, struct device_node *np,
struct pinctrl_map **map) struct pinctrl_map **map)
{ {
const char *function; const char *function;
int func = of_property_read_string(np, "ralink,function", &function); int func = of_property_read_string(np, "ralink,function", &function);
...@@ -121,9 +121,9 @@ static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev, ...@@ -121,9 +121,9 @@ static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev,
} }
static int rt2880_pinctrl_dt_node_to_map(struct pinctrl_dev *pctrldev, static int rt2880_pinctrl_dt_node_to_map(struct pinctrl_dev *pctrldev,
struct device_node *np_config, struct device_node *np_config,
struct pinctrl_map **map, struct pinctrl_map **map,
unsigned int *num_maps) unsigned int *num_maps)
{ {
int max_maps = 0; int max_maps = 0;
struct pinctrl_map *tmp; struct pinctrl_map *tmp;
...@@ -169,7 +169,7 @@ static int rt2880_pmx_func_count(struct pinctrl_dev *pctrldev) ...@@ -169,7 +169,7 @@ static int rt2880_pmx_func_count(struct pinctrl_dev *pctrldev)
} }
static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev, static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev,
unsigned int func) unsigned int func)
{ {
struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
...@@ -177,9 +177,9 @@ static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev, ...@@ -177,9 +177,9 @@ static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev,
} }
static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev, static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev,
unsigned int func, unsigned int func,
const char * const **groups, const char * const **groups,
unsigned int * const num_groups) unsigned int * const num_groups)
{ {
struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
...@@ -194,8 +194,7 @@ static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev, ...@@ -194,8 +194,7 @@ static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev,
} }
static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev, static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev,
unsigned int func, unsigned int func, unsigned int group)
unsigned int group)
{ {
struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
u32 mode = 0; u32 mode = 0;
...@@ -239,8 +238,8 @@ static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev, ...@@ -239,8 +238,8 @@ static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev,
} }
static int rt2880_pmx_group_gpio_request_enable(struct pinctrl_dev *pctrldev, static int rt2880_pmx_group_gpio_request_enable(struct pinctrl_dev *pctrldev,
struct pinctrl_gpio_range *range, struct pinctrl_gpio_range *range,
unsigned int pin) unsigned int pin)
{ {
struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment