From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.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 v1 1/1] iio: accel: kxcjk-1013: Add missing terminator entries
Date: Mon, 28 Oct 2024 09:50:26 +0200 [thread overview]
Message-ID: <20241028075123.615813-1-andriy.shevchenko@linux.intel.com> (raw)
Add missing terminator entries to struct kx_odr_start_up_time
initializators.
Fixes: d381089dda44 ("iio: accel: kxcjk-1013: Convert ODR times array to variable in chip_info")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
Jonathan, sorry for the last minute update, but it seems I was thinking,
but forgot to modify the initializers. Feel free to fold this one into
the original commit if you can / want to do it.
drivers/iio/accel/kxcjk-1013.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c
index a6621cd69707..28ed0e09d099 100644
--- a/drivers/iio/accel/kxcjk-1013.c
+++ b/drivers/iio/accel/kxcjk-1013.c
@@ -190,6 +190,7 @@ static const struct kx_odr_start_up_time kxcjk1013_odr_start_up_times[] = {
{ 0x05, 3900 },
{ 0x06, 2700 },
{ 0x07, 2100 },
+ { }
};
/* KXCJ9-1008 */
@@ -206,6 +207,7 @@ static const struct kx_odr_start_up_time kxcj91008_odr_start_up_times[] = {
{ 0x05, 3900 },
{ 0x06, 2700 },
{ 0x07, 2100 },
+ { }
};
/* KXCTJ2-1009 */
@@ -222,6 +224,7 @@ static const struct kx_odr_start_up_time kxtj21009_odr_start_up_times[] = {
{ 0x05, 4000 },
{ 0x06, 3000 },
{ 0x07, 2000 },
+ { }
};
/* KXTF9 */
@@ -232,6 +235,7 @@ static const struct kx_odr_start_up_time kxtf9_odr_start_up_times[] = {
{ 0x04, 11000 },
{ 0x05, 5100 },
{ 0x06, 2700 },
+ { }
};
/* KX023-1025 */
@@ -249,6 +253,7 @@ static const struct kx_odr_start_up_time kx0231025_odr_start_up_times[] = {
{ 0x05, 4400 },
{ 0x06, 3000 },
{ 0x07, 3000 },
+ { }
};
enum kx_acpi_type {
--
2.43.0.rc1.1336.g36b5255a03ac
next reply other threads:[~2024-10-28 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-28 7:50 Andy Shevchenko [this message]
2024-10-28 19:03 ` [PATCH v1 1/1] iio: accel: kxcjk-1013: Add missing terminator entries 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=20241028075123.615813-1-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--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