linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
@ 2015-01-05 12:01 nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w
  2015-01-05 12:36 ` Joe Perches
  2015-01-05 18:32 ` Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w @ 2015-01-05 12:01 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Nizam Haider

From: Nizam Haider <nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

fixed a coding style issue

Signed-off-by: Nizam Haider <nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/spi/spi-gpio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index aee4e75..702b0b8 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -92,7 +92,7 @@ struct spi_gpio {
 
 /*----------------------------------------------------------------------*/
 
-static inline struct spi_gpio * __pure
+static inline struct spi_gpio *__pure
 spi_to_spi_gpio(const struct spi_device *spi)
 {
 	const struct spi_bitbang	*bang;
@@ -103,7 +103,7 @@ spi_to_spi_gpio(const struct spi_device *spi)
 	return spi_gpio;
 }
 
-static inline struct spi_gpio_platform_data * __pure
+static inline struct spi_gpio_platform_data *__pure
 spi_to_pdata(const struct spi_device *spi)
 {
 	return &spi_to_spi_gpio(spi)->pdata;
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
  2015-01-05 12:01 [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w
@ 2015-01-05 12:36 ` Joe Perches
       [not found]   ` <1420461363.2652.6.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
  2015-01-05 18:32 ` Mark Brown
  1 sibling, 1 reply; 6+ messages in thread
From: Joe Perches @ 2015-01-05 12:36 UTC (permalink / raw)
  To: nizamhaider786; +Cc: broonie, linux-spi, linux-kernel

On Mon, 2015-01-05 at 17:31 +0530, nizamhaider786@gmail.com wrote:
> From: Nizam Haider <nizamhaider786@gmail.com>
> 
> fixed a coding style issue

This is a checkpatch defect and not a coding styple (style) issue.

Please don't blindly take checkpatch messages as dicta.

btw: The "From: " line in your email message body isn't necessary 
     or desired.  Please be careful with spelling/typos too.

> diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
[]
> @@ -92,7 +92,7 @@ struct spi_gpio {
>  
>  /*----------------------------------------------------------------------*/
>  
> -static inline struct spi_gpio * __pure
> +static inline struct spi_gpio *__pure

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
       [not found]   ` <1420461363.2652.6.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
@ 2015-01-05 13:30     ` Mark Brown
       [not found]       ` <20150105133014.GP11764-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2015-01-05 13:30 UTC (permalink / raw)
  To: Joe Perches
  Cc: nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

On Mon, Jan 05, 2015 at 04:36:03AM -0800, Joe Perches wrote:
> On Mon, 2015-01-05 at 17:31 +0530, nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> > From: Nizam Haider <nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> > fixed a coding style issue

> This is a checkpatch defect and not a coding styple (style) issue.

> Please don't blindly take checkpatch messages as dicta.

No, it's a coding style thing.  It may have been identified by
checkpatch but that's what it is.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
       [not found]       ` <20150105133014.GP11764-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2015-01-05 13:38         ` Joe Perches
  0 siblings, 0 replies; 6+ messages in thread
From: Joe Perches @ 2015-01-05 13:38 UTC (permalink / raw)
  To: Mark Brown
  Cc: nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Mon, 2015-01-05 at 13:30 +0000, Mark Brown wrote:
> On Mon, Jan 05, 2015 at 04:36:03AM -0800, Joe Perches wrote:
> > On Mon, 2015-01-05 at 17:31 +0530, nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> > > From: Nizam Haider <nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 
> > > fixed a coding style issue
> 
> > This is a checkpatch defect and not a coding styple (style) issue.
> 
> > Please don't blindly take checkpatch messages as dicta.
> 
> No, it's a coding style thing.

It's a coding style consistency thing.

> It may have been identified by
> checkpatch but that's what it is.

__pure is a #define for a gcc attribute

include/linux/compiler-gcc.h:#define __pure                             __attribute__((pure))

macro attributes are almost always used
with space separators in the kernel.

All instances of __pure in the kernel have
a space before the use.

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
  2015-01-05 12:01 [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w
  2015-01-05 12:36 ` Joe Perches
@ 2015-01-05 18:32 ` Mark Brown
  2015-01-05 18:46   ` Joe Perches
  1 sibling, 1 reply; 6+ messages in thread
From: Mark Brown @ 2015-01-05 18:32 UTC (permalink / raw)
  To: nizamhaider786; +Cc: linux-spi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

On Mon, Jan 05, 2015 at 05:31:03PM +0530, nizamhaider786@gmail.com wrote:
> From: Nizam Haider <nizamhaider786@gmail.com>
> 
> fixed a coding style issue

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue
  2015-01-05 18:32 ` Mark Brown
@ 2015-01-05 18:46   ` Joe Perches
  0 siblings, 0 replies; 6+ messages in thread
From: Joe Perches @ 2015-01-05 18:46 UTC (permalink / raw)
  To: Mark Brown; +Cc: nizamhaider786, linux-spi, linux-kernel

On Mon, 2015-01-05 at 18:32 +0000, Mark Brown wrote:
> On Mon, Jan 05, 2015 at 05:31:03PM +0530, nizamhaider786@gmail.com wrote:
> > From: Nizam Haider <nizamhaider786@gmail.com>
> > 
> > fixed a coding style issue
> 
> Applied, thanks.

Still unnecessary and decidedly non-standard kernel style.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-05 18:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05 12:01 [PATCH 3/3] spi:spi-gpio: fixed space coding styple issue nizamhaider786-Re5JQEeQqe8AvxtiuMwx3w
2015-01-05 12:36 ` Joe Perches
     [not found]   ` <1420461363.2652.6.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2015-01-05 13:30     ` Mark Brown
     [not found]       ` <20150105133014.GP11764-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-01-05 13:38         ` Joe Perches
2015-01-05 18:32 ` Mark Brown
2015-01-05 18:46   ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).