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

Commit 0b8cb621 authored by Daniel Serpell's avatar Daniel Serpell Committed by Matthew Garrett
Browse files

sony-laptop: Fix reporting of gfx_switch_status

parent 03a174b3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2440,7 +2440,10 @@ static ssize_t sony_nc_gfx_switch_status_show(struct device *dev,
	if (pos < 0)
		return pos;

	return snprintf(buffer, PAGE_SIZE, "%s\n", pos ? "speed" : "stamina");
	return snprintf(buffer, PAGE_SIZE, "%s\n",
					pos == SPEED ? "speed" :
					pos == STAMINA ? "stamina" :
					pos == AUTO ? "auto" : "unknown");
}

static int sony_nc_gfx_switch_setup(struct platform_device *pd,