lkml.org 
[lkml]   [2015]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 5/9] staging: sm7xxfb: fix alignment
    On Wed, Jun 17, 2015 at 04:54:44PM +0530, Sudip Mukherjee wrote:
    > @@ -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-kernel" in
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2015-06-19 17:01    [W:2.379 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site