From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Linus Walleij <linus.walleij@linaro.org>,
Jakob Hauser <jahau@rocketmail.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH v2 2/3] iio: magnetometer: yamaha-yas530: Make strings const in chip info
Date: Wed, 31 Aug 2022 17:15:29 +0300 [thread overview]
Message-ID: <20220831141530.80572-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20220831141530.80572-1-andriy.shevchenko@linux.intel.com>
For better compiler coverage mark strings consts in the chip info.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: no changes
drivers/iio/magnetometer/yamaha-yas530.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magnetometer/yamaha-yas530.c
index 58f527cfde07..a6e34d5f3e85 100644
--- a/drivers/iio/magnetometer/yamaha-yas530.c
+++ b/drivers/iio/magnetometer/yamaha-yas530.c
@@ -189,8 +189,8 @@ struct yas5xx;
*/
struct yas5xx_chip_info {
unsigned int devid;
- char *product_name;
- char *version_names[2];
+ const char *product_name;
+ const char *version_names[2];
const int *volatile_reg;
int volatile_reg_qty;
u32 scaling_val2;
--
2.35.1
next prev parent reply other threads:[~2022-08-31 14:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 14:15 [PATCH v2 1/3] iio: magnetometer: yamaha-yas530: Use pointers as driver data Andy Shevchenko
2022-08-31 14:15 ` Andy Shevchenko [this message]
2022-08-31 14:15 ` [PATCH v2 3/3] iio: magnetometer: yamaha-yas530: Use dev_err_probe() Andy Shevchenko
2022-09-04 15:30 ` [PATCH v2 1/3] iio: magnetometer: yamaha-yas530: Use pointers as driver data Jonathan Cameron
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=20220831141530.80572-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=jahau@rocketmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--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