mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 11:24:42 +00:00
pinctrl: rzg2l: Drop unnecessary scope
In rzg2l_pinconf_set(), there are no new variables defined in the case statement for PIN_CONFIG_INPUT_ENABLE so no additional scope is needed. Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
bba516a772
commit
3a735cff5f
1 changed files with 1 additions and 2 deletions
|
@ -381,7 +381,7 @@ static int rzg2l_pinconf_set(struct udevice *dev, unsigned int pin_selector,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case PIN_CONFIG_INPUT_ENABLE: {
|
case PIN_CONFIG_INPUT_ENABLE:
|
||||||
if (!(cfg & PIN_CFG_IEN)) {
|
if (!(cfg & PIN_CFG_IEN)) {
|
||||||
dev_err(dev, "pin does not support IEN\n");
|
dev_err(dev, "pin does not support IEN\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -391,7 +391,6 @@ static int rzg2l_pinconf_set(struct udevice *dev, unsigned int pin_selector,
|
||||||
port_offset, pin, argument);
|
port_offset, pin, argument);
|
||||||
rzg2l_rmw_pin_config(data, IEN(port_offset), pin, IEN_MASK, !!argument);
|
rzg2l_rmw_pin_config(data, IEN(port_offset), pin, IEN_MASK, !!argument);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case PIN_CONFIG_POWER_SOURCE: {
|
case PIN_CONFIG_POWER_SOURCE: {
|
||||||
bool support_2500 = false;
|
bool support_2500 = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue