 -		val |= *(d++) << 8;
 -		val |= *(d++) << 16;
 +		u32 val = *(d++) << 8; /* Red */
-+		val |= *(d++) << 0;    /* Green */
-+		val |= *(d++) << 16;   /* Blue */
++		val |= *(d++) << 16;    /* Green */
++		val |= *(d++) << 0;   /* Blue */
  
  		array->data[slot] = val;
  		if (++slot > max_slots) {

 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 36d2ad5..0f58370 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -2444,9 +2444,9 @@ static long ioctl_spiwrite_burst(struct pruproc *pp, struct spi_ioc_transfer *sp

From c9c2db1ce701622b4b071a512c78072492b56863 Mon Sep 17 00:00:00 2001
From: Matt Ranostay <mranostay@gmail.com>
Date: Sat, 21 Dec 2013 22:27:48 -0800
Subject: [PATCH 23/24] capes: reorder from GRB to RGB for Lighting cape
