2017-03-02 17:13:52

by Georgios Emmanouil

[permalink] [raw]
Subject: [PATCH 1/4] Staging:wilc1000:wilc_spi: Fixed comment style to the preferred kernel comment style

Fixed comment style to the preferred kernel comment style.

Signed-off-by: Georgios Emmanouil <[email protected]>
---
drivers/staging/wilc1000/wilc_spi.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 55d53c3..6bd4047 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -1,11 +1,9 @@
-/* ////////////////////////////////////////////////////////////////////////// */
-/* */
-/* Copyright (c) Atmel Corporation. All rights reserved. */
-/* */
-/* Module Name: wilc_spi.c */
-/* */
-/* */
-/* //////////////////////////////////////////////////////////////////////////// */
+/*
+ * Copyright (c) Atmel Corporation. All rights reserved.
+ *
+ * Module Name: wilc_spi.c
+ */
+
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
--
2.1.4


2017-03-02 17:09:55

by Georgios Emmanouil

[permalink] [raw]
Subject: [PATCH 4/4] Staging:wilc1000:wilc_spi: Added blank line after function and modified comment style

Added blank line after function and modified comment style.

Signed-off-by: Georgios Emmanouil <[email protected]>
---
drivers/staging/wilc1000/wilc_spi.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 4f38922..33c2f7c 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -1128,11 +1128,8 @@ static int wilc_spi_sync_ext(struct wilc *wilc, int nint)

return 1;
}
-/********************************************
- *
- * Global spi HIF function table
- *
- ********************************************/
+
+/* Global spi HIF function table */
static const struct wilc_hif_func wilc_hif_spi = {
.hif_init = wilc_spi_init,
.hif_deinit = _wilc_spi_deinit,
--
2.1.4

2017-03-02 17:16:32

by Georgios Emmanouil

[permalink] [raw]
Subject: [PATCH 2/4] Staging:wilc1000:wilc_spi: Fixed alignment to match parenthesis

Fixed alignment to match parenthesis.

Signed-off-by: Georgios Emmanouil <[email protected]>
---
drivers/staging/wilc1000/wilc_spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 6bd4047..b48cb1c8 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -408,7 +408,7 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,

if (len2 > ARRAY_SIZE(wb)) {
dev_err(&spi->dev, "spi buffer size too small (%d) (%zu)\n",
- len2, ARRAY_SIZE(wb));
+ len2, ARRAY_SIZE(wb));
return N_FAIL;
}
/* zero spi write buffers. */
--
2.1.4

2017-03-02 18:51:22

by Georgios Emmanouil

[permalink] [raw]
Subject: [PATCH 3/4] Staging:wilc1000:wilc_spi: Fixed spelling error

Fixed spelling error. 'unkmown' to 'unknown'.

Signed-off-by: Georgios Emmanouil <[email protected]>
---
drivers/staging/wilc1000/wilc_spi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index b48cb1c8..4f38922 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -963,12 +963,12 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
}

{
- u32 unkmown_mask;
+ u32 unknown_mask;

- unkmown_mask = ~((1ul << g_spi.nint) - 1);
+ unknown_mask = ~((1ul << g_spi.nint) - 1);

- if ((tmp >> IRG_FLAGS_OFFSET) & unkmown_mask) {
- dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unkmown_mask);
+ if ((tmp >> IRG_FLAGS_OFFSET) & unknown_mask) {
+ dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unknown_mask);
happended = 1;
}
}
--
2.1.4

2017-03-04 22:45:06

by Julian Calaby

[permalink] [raw]
Subject: Re: [PATCH 1/4] Staging:wilc1000:wilc_spi: Fixed comment style to the preferred kernel comment style

Hi All,

On Fri, Mar 3, 2017 at 4:04 AM, Georgios Emmanouil <[email protected]> wrote:
> Fixed comment style to the preferred kernel comment style.

Fixing comment style and other stuff like that are the _least_ of the
problems with this driver, but you've done it, so...

> Signed-off-by: Georgios Emmanouil <[email protected]>

Reviewed-by: Julian Calaby <[email protected]>

> ---
> drivers/staging/wilc1000/wilc_spi.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/

2017-03-04 22:45:38

by Julian Calaby

[permalink] [raw]
Subject: Re: [PATCH 2/4] Staging:wilc1000:wilc_spi: Fixed alignment to match parenthesis

Hi All,

On Fri, Mar 3, 2017 at 4:05 AM, Georgios Emmanouil <[email protected]> wrote:
> Fixed alignment to match parenthesis.
>
> Signed-off-by: Georgios Emmanouil <[email protected]>

Reviewed-by: Julian Calaby <[email protected]>

> ---
> drivers/staging/wilc1000/wilc_spi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/

2017-03-04 22:46:10

by Julian Calaby

[permalink] [raw]
Subject: Re: [PATCH 3/4] Staging:wilc1000:wilc_spi: Fixed spelling error

Hi All,

On Fri, Mar 3, 2017 at 4:06 AM, Georgios Emmanouil <[email protected]> wrote:
> Fixed spelling error. 'unkmown' to 'unknown'.
>
> Signed-off-by: Georgios Emmanouil <[email protected]>

Reviewed-by: Julian Calaby <[email protected]>

> ---
> drivers/staging/wilc1000/wilc_spi.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/

2017-03-04 22:46:48

by Julian Calaby

[permalink] [raw]
Subject: Re: [PATCH 4/4] Staging:wilc1000:wilc_spi: Added blank line after function and modified comment style

Hi All,

On Fri, Mar 3, 2017 at 4:07 AM, Georgios Emmanouil <[email protected]> wrote:
> Added blank line after function and modified comment style.
>
> Signed-off-by: Georgios Emmanouil <[email protected]>

Reviewed-by: Julian Calaby <[email protected]>

> ---
> drivers/staging/wilc1000/wilc_spi.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/