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

Commit 6937304d authored by Christopher N. Hesse's avatar Christopher N. Hesse Committed by alexax66
Browse files

decon_7580: mdnie: Store sensorRGB values in main table

The fb notifier callback will call mdnie_update() on
FB_BLANK_UNBLANK, which will then call mdnie_update_sequence()
with the table returned by mdnie_find_table(mdnie).

This will discard the values written to sensorRGB if we do not
save them.
parent d1360673
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -558,6 +558,10 @@ static ssize_t sensorRGB_store(struct device *dev,
		mdnie->table_buffer.seq[scr_info->index].cmd[scr_info->wb] = mdnie->wrgb_current.b = (unsigned char)white_b;

		mdnie_update_sequence(mdnie, &mdnie->table_buffer);

		table->seq[scr_info->index].cmd[scr_info->wr] = (unsigned char)white_r;
		table->seq[scr_info->index].cmd[scr_info->wg] = (unsigned char)white_g;
		table->seq[scr_info->index].cmd[scr_info->wb] = (unsigned char)white_b;
	}

	return count;