From: Darshan Rathod <darshanrathod475@gmail.com>
To: abbotti@mev.co.uk
Cc: hsweeten@visionengravers.com, linux-kernel@vger.kernel.org,
Darshan Rathod <darshanrathod475@gmail.com>
Subject: [PATCH] staging: comedi: das16 : fixed a struct warning in code
Date: Sat, 26 Apr 2025 09:41:45 +0000 [thread overview]
Message-ID: <20250426094145.13564-1-darshanrathod475@gmail.com> (raw)
fixed a warning messages for a struct
Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com>
---
drivers/comedi/drivers/das16.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/comedi/drivers/das16.c b/drivers/comedi/drivers/das16.c
index f5ca6c0d4d0c..73717f75d60f 100644
--- a/drivers/comedi/drivers/das16.c
+++ b/drivers/comedi/drivers/das16.c
@@ -956,8 +956,8 @@ static const struct comedi_lrange *das16_ai_range(struct comedi_device *dev,
/* get any user-defined input range */
if (pg_type == das16_pg_none && (min || max)) {
- struct comedi_lrange *lrange;
- struct comedi_krange *krange;
+ const struct comedi_lrange *lrange;
+ const struct comedi_krange *krange;
/* allocate single-range range table */
lrange = comedi_alloc_spriv(s,
@@ -990,8 +990,8 @@ static const struct comedi_lrange *das16_ao_range(struct comedi_device *dev,
/* get any user-defined output range */
if (min || max) {
- struct comedi_lrange *lrange;
- struct comedi_krange *krange;
+ const struct comedi_lrange *lrange;
+ const struct comedi_krange *krange;
/* allocate single-range range table */
lrange = comedi_alloc_spriv(s,
--
2.43.0
next reply other threads:[~2025-04-26 9:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-26 9:41 Darshan Rathod [this message]
2025-04-28 10:44 ` Ian Abbott
2025-05-07 5:49 ` kernel test robot
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=20250426094145.13564-1-darshanrathod475@gmail.com \
--to=darshanrathod475@gmail.com \
--cc=abbotti@mev.co.uk \
--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
all inboxes | Powered by JetHome®