Re: [PATCH 3/4] Blackfin I2C/TWI driver: add missing pin mux operation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bryan Wu <bryan.wu@...>
Cc: <i2c@...>, <linux-kernel@...>, Bryan Wu <bryan.wu@...>
Date: Saturday, November 3, 2007 - 9:48 am

Hi Bryan,

On Fri,  2 Nov 2007 14:24:23 +0800, Bryan Wu wrote:

I suggest swapping the order of the parameters - it makes more sense to
pass the object first and the action second than the other way around
IMHO.

Also, all other functions in this driver are named bfin_twi_<something>
so it would be nicer to do the same here.


See my previous review: this array should be const and possibly static.


Mike Frysinger suggested that you should return the error code from
peripheral_request_list() and I agree with him.


You must check the error code and handle it.


If you do this here, then you should also do it in the error path in
i2c_bfin_twi_probe().



-- 
Jean Delvare
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/4] Blackfin I2C/TWI driver: add missing pin mux..., Jean Delvare, (Sat Nov 3, 9:48 am)