[PATCH] Staging: comedi: comedidev.h: fixed a warning
From: srishti
Date: Tue May 16 2017 - 04:31:53 EST
Fixed a warning : struct comedi_lrange is generally constant.
Signed-off-by: Srishti Sharma <srishtishar@xxxxxxxxx>
---
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 1bb9986..82df090 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.7.4