Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Monday, February 11, 2008 - 9:13 am

Hi Adrian,

On Sun, Feb 10, 2008 at 10:57:01PM +0000, Adrian McMenamin wrote:

What is the point of the above 2 functions?


input_set_drvdata().. Oh, wait, you are doing it below...


input_dev is zeroes upon initialization, no need to set unused methods
to NULL. Also please consider using a temp for input_dev, it should
reduce generated code a bit.


I did not see the driver reporting MSC_SCAN events. Also, MSC_SCAN is
usually reprted as EV_MSC, not EV_ABS.


		return error;

There is no reason to "hide" real error reported by input_register_device.


Hmm, this could probably go into dc_pad_open so we dont poll hardware
if there are no users.


Don't you need to stop polling callback? Either here ot in dc_pad_stop,
depending on where maple_getcond_callback() is.


-- 
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] SH/Dreamcast - joystick (Control pad), Adrian McMenamin, (Sun Feb 10, 3:57 pm)
[PATCH 2/2] SH/Dreamcast - joystick (controlpad), Adrian McMenamin, (Sun Feb 10, 4:05 pm)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Mike Frysinger, (Sun Feb 10, 5:22 pm)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Adrian McMenamin, (Mon Feb 11, 7:20 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Dmitry Torokhov, (Mon Feb 11, 8:58 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Dmitry Torokhov, (Mon Feb 11, 9:13 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Mike Frysinger, (Mon Feb 11, 9:19 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Dmitry Torokhov, (Mon Feb 11, 9:25 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Adrian McMenamin, (Mon Feb 11, 9:29 am)
Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad), Mike Frysinger, (Mon Feb 11, 9:45 am)