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

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

Merge "leds: qpnp-wled: Fix the string compare operation for dim_mode"

parents 0e11419b f4f4d0a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -683,9 +683,9 @@ static ssize_t qpnp_wled_dim_mode_store(struct device *dev,
	if (snprintf(str, QPNP_WLED_STR_SIZE, "%s", buf) > QPNP_WLED_STR_SIZE)
		return -EINVAL;

	if (strcmp(str, "analog") == 0)
	if (strcmp(str, "analog\n") == 0)
		temp = QPNP_WLED_DIM_ANALOG;
	else if (strcmp(str, "digital") == 0)
	else if (strcmp(str, "digital\n") == 0)
		temp = QPNP_WLED_DIM_DIGITAL;
	else
		temp = QPNP_WLED_DIM_HYBRID;