mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: apply coding-style into ms5611_probe function
@ 2018-02-16 13:38 rodrigosiqueira
  2018-02-16 13:57 ` Daniel Baluta
  0 siblings, 1 reply; 2+ messages in thread
From: rodrigosiqueira @ 2018-02-16 13:38 UTC (permalink / raw)
  To: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler
  Cc: daniel.baluta, linux-iio, kernel-janitors, linux-kernel

This patch fixes the checkpatch.pl warning and error:

iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible
iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line
iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar"

Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
---
 drivers/iio/pressure/ms5611.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/pressure/ms5611.h b/drivers/iio/pressure/ms5611.h
index ccda63c5b3c3..ead9e9f85894 100644
--- a/drivers/iio/pressure/ms5611.h
+++ b/drivers/iio/pressure/ms5611.h
@@ -63,7 +63,7 @@ struct ms5611_state {
 };
 
 int ms5611_probe(struct iio_dev *indio_dev, struct device *dev,
-                 const char* name, int type);
+		 const char *name, int type);
 int ms5611_remove(struct iio_dev *indio_dev);
 
 #endif /* _MS5611_H */
-- 
2.16.1

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

* Re: [PATCH] iio: apply coding-style into ms5611_probe function
  2018-02-16 13:38 [PATCH] iio: apply coding-style into ms5611_probe function rodrigosiqueira
@ 2018-02-16 13:57 ` Daniel Baluta
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Baluta @ 2018-02-16 13:57 UTC (permalink / raw)
  To: knaack.h, lars, rodrigosiqueiramelo, jic23, pmeerw
  Cc: linux-kernel, linux-iio, kernel-janitors

Hi Rodrigo,

Mostly looking good. Few comments.

Please read:

https://chris.beams.io/posts/git-commit/

1) Capitalize the first letter of commit
2) Use prefix tags to indicate the driver that is changed. Here iio:pressure:ms5611.

If not sure what prefix tags to use please use git log file.c and see the tags used by previous commits.
If not clear from previous commits be creative! :)

3) A better verb describing the change would be Fix instead of Apply.

So, the commit subject should be:

iio:pressure:ms5611: Fix coding style in probe function

4) Please correct all the occurences of the same coding style error (not sure if here is the case).

Other than that it looks good to me. Please send v2.

Do not forget to add under the scissor line of the new patch a small changelog documenting what
has changed since v1.



On Vi, 2018-02-16 at 11:38 -0200, rodrigosiqueira wrote:
> This patch fixes the checkpatch.pl warning and error:
> 
> iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible
> iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line
> iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar"
> 
> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
> ---
> 

^ this is the scissor line.

thanks,
Daniel.

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

end of thread, other threads:[~2018-02-16 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 13:38 [PATCH] iio: apply coding-style into ms5611_probe function rodrigosiqueira
2018-02-16 13:57 ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome