mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
pinctrl: bcm281xx: Use "unsigned int" instead of bare "unsigned"
[ Upstream commit 07b5a2a13f4704c5eae3be7277ec54ffdba45f72 ] Replace uses of bare "unsigned" with "unsigned int" to fix checkpatch warnings. No functional change. Signed-off-by: Artur Weber <aweber.kernel@gmail.com> Link: https://lore.kernel.org/20250303-bcm21664-pinctrl-v3-2-5f8b80e4ab51@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d1a5be86d
commit
4473bd0993
@@ -69,7 +69,7 @@ static enum bcm281xx_pin_type hdmi_pin = BCM281XX_PIN_TYPE_HDMI;
|
|||||||
struct bcm281xx_pin_function {
|
struct bcm281xx_pin_function {
|
||||||
const char *name;
|
const char *name;
|
||||||
const char * const *groups;
|
const char * const *groups;
|
||||||
const unsigned ngroups;
|
const unsigned int ngroups;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -81,10 +81,10 @@ struct bcm281xx_pinctrl_data {
|
|||||||
|
|
||||||
/* List of all pins */
|
/* List of all pins */
|
||||||
const struct pinctrl_pin_desc *pins;
|
const struct pinctrl_pin_desc *pins;
|
||||||
const unsigned npins;
|
const unsigned int npins;
|
||||||
|
|
||||||
const struct bcm281xx_pin_function *functions;
|
const struct bcm281xx_pin_function *functions;
|
||||||
const unsigned nfunctions;
|
const unsigned int nfunctions;
|
||||||
|
|
||||||
struct regmap *regmap;
|
struct regmap *regmap;
|
||||||
};
|
};
|
||||||
@@ -938,7 +938,7 @@ static struct bcm281xx_pinctrl_data bcm281xx_pinctrl = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static inline enum bcm281xx_pin_type pin_type_get(struct pinctrl_dev *pctldev,
|
static inline enum bcm281xx_pin_type pin_type_get(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin)
|
unsigned int pin)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
@@ -982,7 +982,7 @@ static int bcm281xx_pinctrl_get_groups_count(struct pinctrl_dev *pctldev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char *bcm281xx_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
|
static const char *bcm281xx_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
|
||||||
unsigned group)
|
unsigned int group)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
@@ -990,9 +990,9 @@ static const char *bcm281xx_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int bcm281xx_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
|
static int bcm281xx_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
|
||||||
unsigned group,
|
unsigned int group,
|
||||||
const unsigned **pins,
|
const unsigned **pins,
|
||||||
unsigned *num_pins)
|
unsigned int *num_pins)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
@@ -1004,7 +1004,7 @@ static int bcm281xx_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
|
|||||||
|
|
||||||
static void bcm281xx_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev,
|
static void bcm281xx_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev,
|
||||||
struct seq_file *s,
|
struct seq_file *s,
|
||||||
unsigned offset)
|
unsigned int offset)
|
||||||
{
|
{
|
||||||
seq_printf(s, " %s", dev_name(pctldev->dev));
|
seq_printf(s, " %s", dev_name(pctldev->dev));
|
||||||
}
|
}
|
||||||
@@ -1026,7 +1026,7 @@ static int bcm281xx_pinctrl_get_fcns_count(struct pinctrl_dev *pctldev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char *bcm281xx_pinctrl_get_fcn_name(struct pinctrl_dev *pctldev,
|
static const char *bcm281xx_pinctrl_get_fcn_name(struct pinctrl_dev *pctldev,
|
||||||
unsigned function)
|
unsigned int function)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
@@ -1034,9 +1034,9 @@ static const char *bcm281xx_pinctrl_get_fcn_name(struct pinctrl_dev *pctldev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int bcm281xx_pinctrl_get_fcn_groups(struct pinctrl_dev *pctldev,
|
static int bcm281xx_pinctrl_get_fcn_groups(struct pinctrl_dev *pctldev,
|
||||||
unsigned function,
|
unsigned int function,
|
||||||
const char * const **groups,
|
const char * const **groups,
|
||||||
unsigned * const num_groups)
|
unsigned int * const num_groups)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
|
|
||||||
@@ -1047,8 +1047,8 @@ static int bcm281xx_pinctrl_get_fcn_groups(struct pinctrl_dev *pctldev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int bcm281xx_pinmux_set(struct pinctrl_dev *pctldev,
|
static int bcm281xx_pinmux_set(struct pinctrl_dev *pctldev,
|
||||||
unsigned function,
|
unsigned int function,
|
||||||
unsigned group)
|
unsigned int group)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
const struct bcm281xx_pin_function *f = &pdata->functions[function];
|
const struct bcm281xx_pin_function *f = &pdata->functions[function];
|
||||||
@@ -1079,7 +1079,7 @@ static const struct pinmux_ops bcm281xx_pinctrl_pinmux_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int bcm281xx_pinctrl_pin_config_get(struct pinctrl_dev *pctldev,
|
static int bcm281xx_pinctrl_pin_config_get(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin,
|
unsigned int pin,
|
||||||
unsigned long *config)
|
unsigned long *config)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -ENOTSUPP;
|
||||||
@@ -1088,9 +1088,9 @@ static int bcm281xx_pinctrl_pin_config_get(struct pinctrl_dev *pctldev,
|
|||||||
|
|
||||||
/* Goes through the configs and update register val/mask */
|
/* Goes through the configs and update register val/mask */
|
||||||
static int bcm281xx_std_pin_update(struct pinctrl_dev *pctldev,
|
static int bcm281xx_std_pin_update(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin,
|
unsigned int pin,
|
||||||
unsigned long *configs,
|
unsigned long *configs,
|
||||||
unsigned num_configs,
|
unsigned int num_configs,
|
||||||
u32 *val,
|
u32 *val,
|
||||||
u32 *mask)
|
u32 *mask)
|
||||||
{
|
{
|
||||||
@@ -1204,9 +1204,9 @@ static const u16 bcm281xx_pullup_map[] = {
|
|||||||
|
|
||||||
/* Goes through the configs and update register val/mask */
|
/* Goes through the configs and update register val/mask */
|
||||||
static int bcm281xx_i2c_pin_update(struct pinctrl_dev *pctldev,
|
static int bcm281xx_i2c_pin_update(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin,
|
unsigned int pin,
|
||||||
unsigned long *configs,
|
unsigned long *configs,
|
||||||
unsigned num_configs,
|
unsigned int num_configs,
|
||||||
u32 *val,
|
u32 *val,
|
||||||
u32 *mask)
|
u32 *mask)
|
||||||
{
|
{
|
||||||
@@ -1274,9 +1274,9 @@ static int bcm281xx_i2c_pin_update(struct pinctrl_dev *pctldev,
|
|||||||
|
|
||||||
/* Goes through the configs and update register val/mask */
|
/* Goes through the configs and update register val/mask */
|
||||||
static int bcm281xx_hdmi_pin_update(struct pinctrl_dev *pctldev,
|
static int bcm281xx_hdmi_pin_update(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin,
|
unsigned int pin,
|
||||||
unsigned long *configs,
|
unsigned long *configs,
|
||||||
unsigned num_configs,
|
unsigned int num_configs,
|
||||||
u32 *val,
|
u32 *val,
|
||||||
u32 *mask)
|
u32 *mask)
|
||||||
{
|
{
|
||||||
@@ -1318,9 +1318,9 @@ static int bcm281xx_hdmi_pin_update(struct pinctrl_dev *pctldev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int bcm281xx_pinctrl_pin_config_set(struct pinctrl_dev *pctldev,
|
static int bcm281xx_pinctrl_pin_config_set(struct pinctrl_dev *pctldev,
|
||||||
unsigned pin,
|
unsigned int pin,
|
||||||
unsigned long *configs,
|
unsigned long *configs,
|
||||||
unsigned num_configs)
|
unsigned int num_configs)
|
||||||
{
|
{
|
||||||
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev);
|
||||||
enum bcm281xx_pin_type pin_type;
|
enum bcm281xx_pin_type pin_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user