Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef33877b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "pinctrl: qcom: spmi-gpio: Correct power_source range check"

parents 8949cdb2 76b2bf4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ static int pmic_gpio_config_set(struct pinctrl_dev *pctldev, unsigned int pin,
			pad->is_enabled = false;
			break;
		case PIN_CONFIG_POWER_SOURCE:
			if (arg > pad->num_sources)
			if (arg >= pad->num_sources)
				return -EINVAL;
			pad->power_source = arg;
			break;