Commit 42d7e712 authored by Thomas Wendtland's avatar Thomas Wendtland Committed by Carles Cufi
Browse files

drivers: display: fix faulty PM symbol in st7789v driver



the driver for the st7789v display uses an old define and therefore
does not compile. fix for the 2.6 branch, the 2.7 driver is already
correct.

Signed-off-by: default avatarThomas Wendtland <twendtland@gmail.com>
parent 2d6322d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -415,7 +415,7 @@ static int st7789v_pm_control(const struct device *dev, uint32_t ctrl_command,
	struct st7789v_data *data = (struct st7789v_data *)dev->data;

	switch (ctrl_command) {
	case DEVICE_PM_SET_POWER_STATE:
	case PM_DEVICE_STATE_SET:
		if (*state == PM_DEVICE_STATE_ACTIVE) {
			st7789v_exit_sleep(data);
			data->pm_state = PM_DEVICE_STATE_ACTIVE;