Re: [PATCHv2 11/11] INPUT/MISC/ONKEY: OnKey module of DA9052 device driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Wednesday, December 22, 2010 - 3:11 am

Hi,

On Tue, Dec 21, 2010 at 07:04:19PM +0100, dd diasemi wrote:

Looks pretty nice, just a couple of comments.


Can we have only one da9052_unlock() instead of exiting in the middle of
the function? Also, have you considered provifing da9052_read() helper
which would do the locking?


You need to chek whether memory allocation succeeded here.


__set_bit() is prefered way now.


You are referencing wrong thing, you need to use platform_get_drvdata().

Thanks.

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

Messages in current thread:
Re: [PATCHv2 11/11] INPUT/MISC/ONKEY: OnKey module of DA90 ..., Dmitry Torokhov, (Wed Dec 22, 3:11 am)