Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1619507

[PATCH] Staging: comedidev.h comedi_lrange should be const struct

From "Arthur Brainville (Ybalrid)" <ybalrid@ybalrid.info>
Newsgroups linux.kernel
Subject [PATCH] Staging: comedidev.h comedi_lrange should be const struct
Date 2017-04-09 16:40 +0200
Message-ID <tumat-400-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


According to checkpatch.pl, comedi_lrange should be declared as `const
struct` instead of `struct` in driver/staging/comedidev.h

Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
---
 drivers/staging/comedi/comedidev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index 1bb9986f865e..82df090783b5 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -623,7 +623,7 @@ extern const struct comedi_lrange range_unknown;
  * There may also be a flag that indicates the minimum and maximum are merely
  * scale factors for an unknown, external reference.
  */
-struct comedi_lrange {
+const struct comedi_lrange {
 	int length;
 	struct comedi_krange range[];
 };
-- 
2.12.2

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] Staging: comedidev.h comedi_lrange should be const struct "Arthur Brainville (Ybalrid)" <ybalrid@ybalrid.info> - 2017-04-09 16:40 +0200
  Re: [PATCH] Staging: comedidev.h comedi_lrange should be const struct Greg KH <greg@kroah.com> - 2017-04-09 21:20 +0200
  Re: [PATCH] Staging: comedidev.h comedi_lrange should be const struct kbuild test robot <lkp@intel.com> - 2017-04-10 05:00 +0200
  [PATCH] checkpatch: Avoid suggesting struct definitions should be const Joe Perches <joe@perches.com> - 2017-04-10 19:50 +0200
    Re: [PATCH] checkpatch: Avoid suggesting struct definitions should  be const "Arthur Brainville (Ybalrid)" <ybalrid@ybalrid.info> - 2017-04-10 21:00 +0200

csiph-web