public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hatim Muhammed <hatimmohammed369@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: greg@kroah.com, abbotti@mev.co.uk, hsweeten@visionengravers.com,
	Hatim Muhammed <hatimmohammed369@gmail.com>
Subject: [PATCH 10/10] Constify comedi_lrange struct pointers
Date: Wed,  9 Mar 2022 11:20:03 +0200	[thread overview]
Message-ID: <20220309092003.13928-1-hatimmohammed369@gmail.com> (raw)

From: Hatim Muhammed <hatimmohammed369@gmail.com>

Signed-off-by: Hatim Muhammed <hatimmohammed369@gmail.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


             reply	other threads:[~2022-03-09  9:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-09  9:20 Hatim Muhammed [this message]
2022-03-09 12:24 ` [PATCH 10/10] Constify comedi_lrange struct pointers Ian Abbott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220309092003.13928-1-hatimmohammed369@gmail.com \
    --to=hatimmohammed369@gmail.com \
    --cc=abbotti@mev.co.uk \
    --cc=greg@kroah.com \
    --cc=hsweeten@visionengravers.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox