Thread (17 messages) 17 messages, 3 authors, 2015-06-19

Re: [PATCH v2 5/9] staging: sm7xxfb: fix alignment

From: Dan Carpenter <hidden>
Date: 2015-06-19 14:45:40
Also in: lkml

On Wed, Jun 17, 2015 at 04:54:44PM +0530, Sudip Mukherjee wrote:
quoted hunk ↗ jump to hunk
@@ -346,9 +346,8 @@ static ssize_t smtcfb_read(struct fb_info *info, char __user *buf, size_t
 		dst = buffer;
 		for (i = c >> 2; i--;) {
 			*dst = fb_readl(src++);
-			*dst > -			    (*dst & 0xff00ff00 >> 8) |
-			    (*dst & 0x00ff00ff << 8);
+			*dst = (*dst & 0xff00ff00 >> 8) |
+			       (*dst & 0x00ff00ff << 8);
This is supposed to convert __le16 to __be16?
 			dst++;
 		}
 		if (c & 3) {
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help