[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220309092003.13928-1-hatimmohammed369@gmail.com>
Date: Wed, 9 Mar 2022 11:20:03 +0200
From: Hatim Muhammed <hatimmohammed369@...il.com>
To: linux-kernel@...r.kernel.org
Cc: greg@...ah.com, abbotti@....co.uk, hsweeten@...ionengravers.com,
Hatim Muhammed <hatimmohammed369@...il.com>
Subject: [PATCH 10/10] Constify comedi_lrange struct pointers
From: Hatim Muhammed <hatimmohammed369@...il.com>
Signed-off-by: Hatim Muhammed <hatimmohammed369@...il.com>
---
drivers/comedi/drivers/jr3_pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/comedi/drivers/jr3_pci.c b/drivers/comedi/drivers/jr3_pci.c
index 951c23fa0369..f2a750a9112c 100644
--- a/drivers/comedi/drivers/jr3_pci.c
+++ b/drivers/comedi/drivers/jr3_pci.c
@@ -90,8 +90,8 @@ struct jr3_pci_dev_private {
};
union jr3_pci_single_range {
- struct comedi_lrange l;
- char _reserved[offsetof(struct comedi_lrange, range[1])];
+ const struct comedi_lrange l;
+ char _reserved[offsetof(const struct comedi_lrange, range[1])];
};
enum jr3_pci_poll_state {
--
2.35.1
Powered by blists - more mailing lists