Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian McMenamin <lkmladrian@...>
Cc: Arjan van de Ven <arjan@...>, Paul Mundt <lethal@...>, <linux-kernel@...>
Date: Sunday, September 9, 2007 - 11:50 pm

Hi Adrian,

On Sunday 09 September 2007 16:57, Adrian McMenamin wrote:

Couple of more things:


No externs in *.c files, please. Isn't this defined in maple.h which is
being included?


I very much prefer an empty line between variables and the code.


memcpy?


Are you sure it is 255 and not NR_SCANCODES?
 

Please use input_set_drvdata() here and input_get_drvdata() when
accessing it.


maple_device appears to be fully integrated in sysfs, please add:
	kbd->dev->dev.parent = &dev->dev;

Btw, introducing a temp for kbd->dev should reduce generated code
somewhat.


"return maple_driver_register(&dc_kbd_driver.drv);" is much shorter...


If these are fixed you may add:

	 Acked-by: Dmitry Torokhov <dtor@mail.ru>

Thank you.

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

Messages in current thread:
Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - k..., Dmitry Torokhov, (Sun Sep 9, 11:50 pm)
Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - k..., Adrian McMenamin, (Mon Sep 10, 10:28 am)