lkml.org 
[lkml]   [2010]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[110/205] Input: gamecon - reference correct input device in NES mode
    2.6.34-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

    commit 7b5d3312fbfbb21d2fc7de94e0db66cfdf8b0055 upstream.

    We moved input devices from 'struct gc' to individial pads (struct
    gc-pad), but gc_nes_process_packet() was still trying to use old
    ones and crashing.

    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/input/joystick/gamecon.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    --- a/drivers/input/joystick/gamecon.c
    +++ b/drivers/input/joystick/gamecon.c
    @@ -89,7 +89,6 @@ struct gc_pad {
    struct gc {
    struct pardevice *pd;
    struct gc_pad pads[GC_MAX_DEVICES];
    - struct input_dev *dev[GC_MAX_DEVICES];
    struct timer_list timer;
    int pad_count[GC_MAX];
    int used;
    @@ -387,7 +386,7 @@ static void gc_nes_process_packet(struct
    for (i = 0; i < GC_MAX_DEVICES; i++) {

    pad = &gc->pads[i];
    - dev = gc->dev[i];
    + dev = pad->dev;
    s = gc_status_bit[i];

    switch (pad->type) {



    \
     
     \ /
      Last update: 2010-07-30 20:25    [W:0.021 / U:179.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site