[PATCH] spi: omap2-mcspi: Fix the redifine warning

2012-11-18 Thread Shubhrajyoti D
Fix the below warning drivers/spi/spi-omap2-mcspi.c:336:34: warning: symbol 'tx' shadows an earlier one drivers/spi/spi-omap2-mcspi.c:327:12: originally declared here So delete the u8 tx as it is assigned and not used(resigned afterwards). Signed-off-by: Shubhrajyoti D --- drive

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 39

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 39

[PATCHv3 6/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-isl1208.c | 20 1 files changed, 16

[PATCHv3 0/7] rtc: convert to c99 format

2012-09-25 Thread Shubhrajyoti D
/cocci@diku.dk/msg02753.html Resending with Andrew Morton in cc for review as it was suggested to me. Fix a typo in the comments that crept in. Shubhrajyoti D (7): rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert

[PATCHv3 3/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-s35390a.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv3 2/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-x1205.c | 92 +++--- 1

[PATCHv3 4/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. while at it also fix a checkpatch warn WARNING: sizeof rs5c->buf should be sizeof(rs5c->buf) Signed-off-by: Shubhr

[PATCHv3 5/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-pcf8563.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv3 1/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-ds1672.c | 26 ++ 1 files changed, 22

[PATCHv3 7/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-em3027.c | 17 ++--- 1 files changed, 14 insertions

[PATCHv2 2/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-x1205.c | 92 +++--- 1

[PATCHv2 4/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. while at it also fix a checkpatch warn WARNING: sizeof rs5c->buf should be sizeof(rs5c->buf) Signed-off-by: Shubhr

[PATCHv2 3/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-s35390a.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv2 0/7] rtc: convert to c99 format

2012-09-25 Thread Shubhrajyoti D
/cocci@diku.dk/msg02753.html Resending with Andrew Morton in cc for review as it was suggested to me. Shubhrajyoti D (7): rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99

[PATCHv2 1/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-ds1672.c | 26 ++ 1 files changed, 22

[PATCHv2 7/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-em3027.c | 17 ++--- 1 files changed, 14 insertions

[PATCHv2 5/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-pcf8563.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv2 6/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-25 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-isl1208.c | 20 1 files changed, 16

[PATCHv2 0/7] rtc: convert to c99 format

2012-09-24 Thread Shubhrajyoti D
/cocci@diku.dk/msg02753.html Shubhrajyoti D (7): rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc

[PATCHv2 3/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-s35390a.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv2 6/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-isl1208.c | 20 1 files changed, 16

[PATCHv2 5/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-pcf8563.c | 13 +++-- 1 files changed, 11 insertions(+), 2

[PATCHv2 2/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-x1205.c | 92 +++--- 1

[PATCHv2 4/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. while at it also fix a checkpatch warn WARNING: sizeof rs5c->buf should be sizeof(rs5c->buf) Signed-off-by: Shubhr

[PATCHv2 1/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-ds1672.c | 26 ++ 1 files changed, 22

[PATCHv2 7/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-24 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-em3027.c | 17 ++--- 1 files changed, 14 insertions

[PATCHv4 4/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/msp3400-driver.c | 40 ++- 1

[PATCHv4 6/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/si470x/radio-si470x-i2c.c | 23 +-- 1

[PATCHv4 3/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/radio-tea5764.c | 13 ++--- 1 files changed, 10

[PATCHv4 0/6] media: convert to c99 format

2012-09-18 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Changelogs - Remove the zero inititialisation of the flags. Shubhrajyoti D (6): media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to

[PATCHv4 1/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/ks0127.c | 13 +++-- 1 files changed, 11 insertions

[PATCHv4 2/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/tvaudio.c | 13 +++-- 1 files changed, 11 insertions

[PATCHv4 5/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/saa7706h.c | 15 +-- 1 files changed, 13

[PATCHv3 3/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/radio-tea5764.c | 13 ++--- 1

[PATCHv3 6/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/si470x/radio-si470x-i2c.c | 23

[PATCHv3 1/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/ks0127.c | 13 +++-- 1 files

[PATCHv3 4/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/msp3400-driver.c | 40

[PATCHv3 2/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/tvaudio.c | 13 +++-- 1 files

[PATCHv3 5/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/saa7706h.c | 15 +-- 1

[PATCHv3 0/6] media: convert to c99 format

2012-09-18 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Changelogs - Remove the zero inititialisation of the flags. Shubhrajyoti D (6): media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to

[PATCHv2 2/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/tvaudio.c | 14 -- 1 files

[PATCHv2 4/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/si470x/radio-si470x-i2c.c | 24

[PATCHv2 3/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/radio-tea5764.c | 14 +++--- 1

[PATCHv2 6/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/msp3400-driver.c | 42

[PATCHv2 5/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/saa7706h.c | 16 ++-- 1

[PATCHv2 0/6] media: convert to c99 format

2012-09-18 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Shubhrajyoti D (6): media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to

[PATCHv2 1/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-18 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/ks0127.c | 14 -- 1 files

[PATCH] matroxfb: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Thanks to Julia Lawall for automating the conversion Signed-off-by: Shubhrajyoti D --- the cocci file was posted

[PATCH] mfd: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Thanks to Julia Lawall for automating the conversion Signed-off-by: Shubhrajyoti D --- drivers/mfd/88pm860x-i2c.c

[PATCH 3/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/tvaudio.c |4 ++-- 1 files changed, 2

[PATCH 1/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/ks0127.c |4 ++-- 1 files changed, 2

[PATCH 4/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/radio-tea5764.c |6 +++--- 1 files

[PATCH 6/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/si470x/radio-si470x-i2c.c | 12

[PATCH 5/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/radio/saa7706h.c |4 ++-- 1 files changed

[PATCH 0/6] media: input: convert to c99 format

2012-09-17 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Checkpatch warn of more than 80 chars have been ignored. Shubhrajyoti D (6): media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99 format media: Convert struct i2c_msg initialization to C99

[PATCH 2/6] media: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/media/i2c/msp3400-driver.c | 12 ++-- 1

[PATCH 0/2] input: convert to c99 format

2012-09-17 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Checkpatch warn of more than 80 chars have been ignored. Shubhrajyoti D (2): input: Convert struct i2c_msg initialization to C99 format input: Convert struct i2c_msg initialization to C99 format drivers/input/joystick/as5011.c |6

[PATCH 2/2] input: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/input/touchscreen/cy8ctmg110_ts.c |4 ++-- 1

[PATCH 1/2] input: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/input/joystick/as5011.c |6 +++--- 1 files

[PATCH 3/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-isl1208.c |6 +++--- 1 files changed, 3 insertions

[PATCH 5/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-rs5c372.c |2 +- 1 files changed, 1

[PATCH 6/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-s35390a.c |4 ++-- 1 files changed, 2

[PATCH 0/7] rtc: convert to c99 format

2012-09-17 Thread Shubhrajyoti D
://www.mail-archive.com/cocci@diku.dk/msg02753.html Shubhrajyoti D (7): rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99 format rtc: Convert struct i2c_msg initialization to C99

[PATCH 2/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-em3027.c |6 +++--- 1 files changed, 3 insertions

[PATCH 4/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-pcf8563.c |4 ++-- 1 files changed, 2

[PATCH 1/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-ds1672.c | 26 ++ 1 files

[PATCH 7/7] rtc: Convert struct i2c_msg initialization to C99 format

2012-09-17 Thread Shubhrajyoti D
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D --- drivers/rtc/rtc-x1205.c | 28

[PATCH] ARM: OMAP: rx51: Fix a section mismatch warn

2012-09-12 Thread Shubhrajyoti D
, *_sht, *_ops, *_probe, *_probe_one, *_console Reported-by: Wolfram Sang Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/board-rx51-peripherals.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-10 Thread Shubhrajyoti D
t; to "foo *bar"] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-03 Thread Shubhrajyoti D
t; to "foo *bar"] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi

[PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-03 Thread Shubhrajyoti D
t; to "foo *bar"] warn for the rx and tx variables. Only a cleanup no functional change. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 256 +++-- 1 files changed, 144 insertions(+), 112 deletions(-) diff --git a/drivers/spi

[PATCHv2 1/3] spi: omap2-mcspi: Call pm_runtime_* functions directly

2012-08-21 Thread Shubhrajyoti D
Call the pm_runtime functions directly making room for possible pm optimisations. Also the runtime functions aren't just about enabling and disabling of clocks though it does enable clocks also. Acked-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |

[PATCHv2 3/3] spi: omap2-mcspi: At remove dont use the runtime_autosuspend calls

2012-08-21 Thread Shubhrajyoti D
At remove we shouldnt be using the autosuspend timeout as we are calling pm_runtime_disable immediately after. Acked-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2

[PATCHv2 0/3] spi: omap2-mcspi: spi cleanups

2012-08-21 Thread Shubhrajyoti D
commit 23dcfa61bac244e1200ff9ad19c6e9144dcb6bb5: Merge branch 'akpm' (Andrew's patch-bomb) (2012-08-21 17:22:22 -0700) are available in the git repository at: git://gitorious.org/linus-tree/linus-tree.git for_3.6/spi Shubhrajyoti D (3): spi: omap2-mcspi: Call pm_runt

[PATCHv2 2/3] spi: omap2-mcspi: Remove the macro MOD_REG_BIT

2012-08-21 Thread Shubhrajyoti D
Remove the macro MOD_REG_BIT instead make the bit field modifications directly. This deletes a branch operation in cases where the the set is predecided. While at it optimise two sequential bit clear in one step. Acked-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2

[PATCH 1/3] spi: omap2-mcspi: Call pm_runtime_* functions directly

2012-08-20 Thread Shubhrajyoti D
Call the pm_runtime functions directly making room for possible pm optimisations. Also the runtime functions aren't just about enabling and disabling of clocks though it does enable clocks also. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |

[PATCH 0/3] spi: omap2-mcspi: spi cleanups

2012-08-20 Thread Shubhrajyoti D
This patch does the following Calls the pm_runtime_* functions directly. Remove the MOD_REG_BIT macro usage thereby removiing un-needed branch. At remove dont use the autosuspend runtime calls. Shubhrajyoti D (3): spi: omap2-mcspi: Call pm_runtime_* functions directly spi: omap2-mcspi

[PATCH 3/3] spi: omap2-mcspi: At remove dont use the runtime_autosuspend calls

2012-08-20 Thread Shubhrajyoti D
At remove we shouldnt be using the autosuspend timeout as we are calling pm_runtime_disable immediately after. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi

[PATCH 2/3] spi: omap2-mcspi: Remove the macro MOD_REG_BIT

2012-08-20 Thread Shubhrajyoti D
Remove the macro MOD_REG_BIT instead make the bit field modifications directly. This deletes a branch operation in cases where the the set is predecided.While at it optimise two sequential bit clear in one step. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 28

[PATCH] spi: omap2-mcspi: Remove the call to platform_set_drvdata(pdev, NULL)

2012-08-16 Thread Shubhrajyoti D
Remove the call of platform_set_drvdata(pdev, NULL) as they are not needed anymore. Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index

[PATCH] Input: omap4-keypad: Fix the pm_runtime_get_sync return check

2012-08-09 Thread Shubhrajyoti D
-keypad: probe of omap4-keypad failed with error 1 Signed-off-by: Shubhrajyoti D --- drivers/input/keyboard/omap4-keypad.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c index 17efede..34cddaf

[PATCH] mtd: nand: omap: Trivial warn fix

2012-08-08 Thread Shubhrajyoti D
this function LD drivers/mtd/nand/built-in.o Signed-off-by: Shubhrajyoti D --- drivers/mtd/nand/omap2.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index e9309b3..29a32e5 100644 --- a/drivers/mtd/nand/omap2.c ++

[PATCH] spi: omap2-mcspi: Fix the error handling in probe

2012-08-02 Thread Shubhrajyoti D
device_put in some of the error paths. Acked-by: Guenter Roeck Reported-by: Guenter Roeck Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c

[PATCH] spi: omap2-mcspi: Fix the error handling in probe

2012-08-01 Thread Shubhrajyoti D
device_put in some of the error paths. Cc: Guenter Roeck Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 7d46b15..b5035e2 100644

[PATCH] Input: omap4-keypad: Fix the probe error handling

2012-07-25 Thread Shubhrajyoti D
the register access in probe instead of waiting for input registration etc. Signed-off-by: Shubhrajyoti D --- drivers/input/keyboard/omap4-keypad.c | 16 +++- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/om

[PATCH] spi: omap2-mcspi: In case of dma errors fall back to pio

2012-07-24 Thread Shubhrajyoti D
-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index bc47781..f243a39 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi

[PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit

2012-07-20 Thread Shubhrajyoti D
-off-by: Arnd Bergmann Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 37ccdb7..7d46b15 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b

[PATCH] spi: omap2-mcspi: Fix the below warning

2012-07-19 Thread Shubhrajyoti D
) [2.175140] [] (kthread+0x90/0x9c) from [] (kernel_thread_exit+0x0/0x8) [2.183898] ---[ end trace d1830ce6e44292f2 ]--- Fix the warn by changing the unmap parameter. Reported-by: Russell King - ARM Linux Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c |6 -- 1 files