i2c-algo-pcf: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 i2c-algo-pcf: replace schedule_timeout()
I would appreciate any comments from the janitors list. This is one (of a few) places where I had to make a decision to set the state before the call to
schedule_timeout();
This of course affected any decision to replace the code with msleep() or not. Please inform if the other state from the one I used is desired.
Thanks,
Nish
Applys-to: 2.6.7
Description: Remove pcf_sleep() and replace invocations with msleep().
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/i2c/algos/i2c-algo-pcf.c +0 -6
@@ -101,12 +101,6 @@ static int wait_for_bb(struct i2c_algo_p } -static inline void pcf_sleep (unsigned long timeout) -{ -schedule_timeout ( timeout *HZ ); -} - -static int wait_for_pin (struct i2c_algo_pcf_data *adap,int *status) {int timeout =DEF_TIMEOUT ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors