lkml.org 
[lkml]   [2008]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch -v2 18/23] aty: use memory_read_from_buffer
    Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: linux-fbdev-devel@lists.sourceforge.net
    ---
    drivers/video/aty/radeon_base.c | 11 ++---------
    1 file changed, 2 insertions(+), 9 deletions(-)

    Index: 2.6-git/drivers/video/aty/radeon_base.c
    ===================================================================
    --- 2.6-git.orig/drivers/video/aty/radeon_base.c
    +++ 2.6-git/drivers/video/aty/radeon_base.c
    @@ -70,6 +70,7 @@
    #include <linux/pci.h>
    #include <linux/vmalloc.h>
    #include <linux/device.h>
    +#include <linux/fs.h>

    #include <asm/io.h>
    #include <linux/uaccess.h>
    @@ -2098,15 +2099,7 @@ static void radeon_identify_vram(struct

    static ssize_t radeon_show_one_edid(char *buf, loff_t off, size_t count, const u8 *edid)
    {
    - if (off > EDID_LENGTH)
    - return 0;
    -
    - if (off + count > EDID_LENGTH)
    - count = EDID_LENGTH - off;
    -
    - memcpy(buf, edid + off, count);
    -
    - return count;
    + return memory_read_from_buffer(buf, count, &off, edid, EDID_LENGTH);
    }


    --


    \
     
     \ /
      Last update: 2008-06-02 01:37    [W:0.021 / U:0.480 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site