[PATCH] Events: 9p.h: Fixed few brace coding style issues

2013-07-29 Thread santosh.anbu
From: "santosh.anbu" 

Kill all the whitespaces conforming to standards

Signed-off-by: santosh.anbu 
---
 include/trace/events/9p.h | 26 +-
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/include/trace/events/9p.h b/include/trace/events/9p.h
index a066636..c91a015 100644
--- a/include/trace/events/9p.h
+++ b/include/trace/events/9p.h
@@ -83,9 +83,9 @@ TRACE_EVENT(9p_client_req,
TP_ARGS(clnt, type, tag),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u32, tag)
),
 
TP_fast_assign(
@@ -97,7 +97,7 @@ TRACE_EVENT(9p_client_req,
TP_printk("client %lu request %s tag  %d",
(long)__entry->clnt, show_9p_op(__entry->type),
__entry->tag)
- );
+);
 
 TRACE_EVENT(9p_client_res,
TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
@@ -105,10 +105,10 @@ TRACE_EVENT(9p_client_res,
TP_ARGS(clnt, type, tag, err),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
-   __field(__u32,  err  )
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u32, tag)
+   __field(__u32, err)
),
 
TP_fast_assign(
@@ -131,10 +131,10 @@ TRACE_EVENT(9p_protocol_dump,
TP_ARGS(clnt, pdu),
 
TP_STRUCT__entry(
-   __field(void *, clnt
)
-   __field(__u8,   type
)
-   __field(__u16,  tag 
)
-   __array(unsigned char,  line,   P9_PROTO_DUMP_SZ
)
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u16, tag)
+   __array(unsigned char, line, P9_PROTO_DUMP_SZ)
),
 
TP_fast_assign(
@@ -146,7 +146,7 @@ TRACE_EVENT(9p_protocol_dump,
TP_printk("clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n",
  (unsigned long)__entry->clnt, show_9p_op(__entry->type),
  __entry->tag, 0, __entry->line, 16, __entry->line + 16)
- );
+);
 
 #endif /* _TRACE_9P_H */
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Events: 9p.h: Fixed few brace coding style issues

2013-07-29 Thread santosh.anbu
From: santosh.anbu asantosh.k...@gmail.com

Kill all the whitespaces conforming to standards

Signed-off-by: santosh.anbu asantosh.k...@gmail.com
---
 include/trace/events/9p.h | 26 +-
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/include/trace/events/9p.h b/include/trace/events/9p.h
index a066636..c91a015 100644
--- a/include/trace/events/9p.h
+++ b/include/trace/events/9p.h
@@ -83,9 +83,9 @@ TRACE_EVENT(9p_client_req,
TP_ARGS(clnt, type, tag),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u32, tag)
),
 
TP_fast_assign(
@@ -97,7 +97,7 @@ TRACE_EVENT(9p_client_req,
TP_printk(client %lu request %s tag  %d,
(long)__entry-clnt, show_9p_op(__entry-type),
__entry-tag)
- );
+);
 
 TRACE_EVENT(9p_client_res,
TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
@@ -105,10 +105,10 @@ TRACE_EVENT(9p_client_res,
TP_ARGS(clnt, type, tag, err),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
-   __field(__u32,  err  )
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u32, tag)
+   __field(__u32, err)
),
 
TP_fast_assign(
@@ -131,10 +131,10 @@ TRACE_EVENT(9p_protocol_dump,
TP_ARGS(clnt, pdu),
 
TP_STRUCT__entry(
-   __field(void *, clnt
)
-   __field(__u8,   type
)
-   __field(__u16,  tag 
)
-   __array(unsigned char,  line,   P9_PROTO_DUMP_SZ
)
+   __field(void *, clnt)
+   __field(__u8, type)
+   __field(__u16, tag)
+   __array(unsigned char, line, P9_PROTO_DUMP_SZ)
),
 
TP_fast_assign(
@@ -146,7 +146,7 @@ TRACE_EVENT(9p_protocol_dump,
TP_printk(clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n,
  (unsigned long)__entry-clnt, show_9p_op(__entry-type),
  __entry-tag, 0, __entry-line, 16, __entry-line + 16)
- );
+);
 
 #endif /* _TRACE_9P_H */
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] i2c.c: Fixed coding style issue for if statement

2013-07-27 Thread santosh.anbu
From: "santosh.anbu" 

Fixed coding style issue

Signed-off-by: santosh.anbu 
---
 drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c 
b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
index cfb9288..e88529c 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
@@ -114,15 +114,19 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct 
dcb_i2c_entry *info)
 
if (idx == 0) {
info->drive = nv_ro08(bios, ent + 4);
-   if (!info->drive) info->drive = 0x3f;
+   if (!info->drive)
+   info->drive = 0x3f;
info->sense = nv_ro08(bios, ent + 5);
-   if (!info->sense) info->sense = 0x3e;
+   if (!info->sense)
+   info->sense = 0x3e;
} else
if (idx == 1) {
info->drive = nv_ro08(bios, ent + 6);
-   if (!info->drive) info->drive = 0x37;
+   if (!info->drive)
+   info->drive = 0x37;
info->sense = nv_ro08(bios, ent + 7);
-   if (!info->sense) info->sense = 0x36;
+   if (!info->sense)
+   info->sense = 0x36;
}
 
info->type  = DCB_I2C_NV04_BIT;
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Events: 9p.h: Fixed a brace coding style issues

2013-07-27 Thread santosh.anbu
From: "santosh.anbu" 

Fixed few brace relate coding style issues

Signed-off-by: santosh.anbu 
---
 include/trace/events/9p.h | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/trace/events/9p.h b/include/trace/events/9p.h
index a066636..9b53b8a 100644
--- a/include/trace/events/9p.h
+++ b/include/trace/events/9p.h
@@ -83,9 +83,9 @@ TRACE_EVENT(9p_client_req,
TP_ARGS(clnt, type, tag),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u32,  tag )
),
 
TP_fast_assign(
@@ -97,7 +97,7 @@ TRACE_EVENT(9p_client_req,
TP_printk("client %lu request %s tag  %d",
(long)__entry->clnt, show_9p_op(__entry->type),
__entry->tag)
- );
+);
 
 TRACE_EVENT(9p_client_res,
TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
@@ -105,10 +105,10 @@ TRACE_EVENT(9p_client_res,
TP_ARGS(clnt, type, tag, err),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
-   __field(__u32,  err  )
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u32,  tag )
+   __field(__u32,  err )
),
 
TP_fast_assign(
@@ -131,9 +131,9 @@ TRACE_EVENT(9p_protocol_dump,
TP_ARGS(clnt, pdu),
 
TP_STRUCT__entry(
-   __field(void *, clnt
)
-   __field(__u8,   type
)
-   __field(__u16,  tag 
)
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u16,  tag )
__array(unsigned char,  line,   P9_PROTO_DUMP_SZ
)
),
 
@@ -146,7 +146,7 @@ TRACE_EVENT(9p_protocol_dump,
TP_printk("clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n",
  (unsigned long)__entry->clnt, show_9p_op(__entry->type),
  __entry->tag, 0, __entry->line, 16, __entry->line + 16)
- );
+);
 
 #endif /* _TRACE_9P_H */
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Events: 9p.h: Fixed a brace coding style issues

2013-07-27 Thread santosh.anbu
From: santosh.anbu asantosh.k...@gmail.com

Fixed few brace relate coding style issues

Signed-off-by: santosh.anbu asantosh.k...@gmail.com
---
 include/trace/events/9p.h | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/trace/events/9p.h b/include/trace/events/9p.h
index a066636..9b53b8a 100644
--- a/include/trace/events/9p.h
+++ b/include/trace/events/9p.h
@@ -83,9 +83,9 @@ TRACE_EVENT(9p_client_req,
TP_ARGS(clnt, type, tag),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u32,  tag )
),
 
TP_fast_assign(
@@ -97,7 +97,7 @@ TRACE_EVENT(9p_client_req,
TP_printk(client %lu request %s tag  %d,
(long)__entry-clnt, show_9p_op(__entry-type),
__entry-tag)
- );
+);
 
 TRACE_EVENT(9p_client_res,
TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
@@ -105,10 +105,10 @@ TRACE_EVENT(9p_client_res,
TP_ARGS(clnt, type, tag, err),
 
TP_STRUCT__entry(
-   __field(void *, clnt )
-   __field(__u8,   type )
-   __field(__u32,  tag  )
-   __field(__u32,  err  )
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u32,  tag )
+   __field(__u32,  err )
),
 
TP_fast_assign(
@@ -131,9 +131,9 @@ TRACE_EVENT(9p_protocol_dump,
TP_ARGS(clnt, pdu),
 
TP_STRUCT__entry(
-   __field(void *, clnt
)
-   __field(__u8,   type
)
-   __field(__u16,  tag 
)
+   __field(void *, clnt)
+   __field(__u8,   type)
+   __field(__u16,  tag )
__array(unsigned char,  line,   P9_PROTO_DUMP_SZ
)
),
 
@@ -146,7 +146,7 @@ TRACE_EVENT(9p_protocol_dump,
TP_printk(clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n,
  (unsigned long)__entry-clnt, show_9p_op(__entry-type),
  __entry-tag, 0, __entry-line, 16, __entry-line + 16)
- );
+);
 
 #endif /* _TRACE_9P_H */
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] i2c.c: Fixed coding style issue for if statement

2013-07-27 Thread santosh.anbu
From: santosh.anbu asantosh.k...@gmail.com

Fixed coding style issue

Signed-off-by: santosh.anbu asantosh.k...@gmail.com
---
 drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c 
b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
index cfb9288..e88529c 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
@@ -114,15 +114,19 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct 
dcb_i2c_entry *info)
 
if (idx == 0) {
info-drive = nv_ro08(bios, ent + 4);
-   if (!info-drive) info-drive = 0x3f;
+   if (!info-drive)
+   info-drive = 0x3f;
info-sense = nv_ro08(bios, ent + 5);
-   if (!info-sense) info-sense = 0x3e;
+   if (!info-sense)
+   info-sense = 0x3e;
} else
if (idx == 1) {
info-drive = nv_ro08(bios, ent + 6);
-   if (!info-drive) info-drive = 0x37;
+   if (!info-drive)
+   info-drive = 0x37;
info-sense = nv_ro08(bios, ent + 7);
-   if (!info-sense) info-sense = 0x36;
+   if (!info-sense)
+   info-sense = 0x36;
}
 
info-type  = DCB_I2C_NV04_BIT;
-- 
1.8.1.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/