Re: [PATCHv4 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-29 Thread Felipe Balbi
On Thu, Oct 25, 2012 at 08:13:18PM +0530, Shubhrajyoti D wrote: > re-factor omap_i2c_init() so that we can re-use it for resume. > While at it also remove the bufstate variable as we write it > in omap_i2c_resize_fifo for every transfer. > > Signed-off-by: Shubhrajyoti D FWIW: Reviewed-by: Feli

[PATCHv4 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-25 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- v4: add spaces for readability drivers/i2c/busses/i2c-omap.c | 74 +++--

[PATCHv4 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-25 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- v4: add spaces for readability drivers/i2c/busses/i2c-omap.c | 74 +++--