[PATCH] Staging: comedi: drivers: jr3_pci: fixed two warnings

From: carlosteniswarrior
Date: Sun Apr 12 2020 - 10:25:33 EST


Fixed two checkpatch warnings.

Signed-off-by: Carlos Guerrero Alvarez <carlosteniswarrior@xxxxxxxxx>
---
drivers/staging/comedi/drivers/jr3_pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c
index c3c88e6d298f..6bc87d3c6c3b 100644
--- a/drivers/staging/comedi/drivers/jr3_pci.c
+++ b/drivers/staging/comedi/drivers/jr3_pci.c
@@ -91,8 +91,8 @@ struct jr3_pci_dev_private {
};

union jr3_pci_single_range {
- struct comedi_lrange l;
- char _reserved[offsetof(struct comedi_lrange, range[1])];
+ const comedi_lrange l;
+ char _reserved[offsetof(const comedi_lrange, range[1])];
};

enum jr3_pci_poll_state {
--
2.26.0