iio: accel: kxcjk-1013: Add missing terminator entries
PATCH 1/1 iio: accel: kxcjk-1013: Add missing terminator entries
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 <[email protected]>
---
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(+)
drivers/iio/accel/kxcjk-1013.c +5 -0
@@ -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 {
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Jonathan Cameron
maintainerQuoted 10 lines · On Mon, 28 Oct 2024 09:50:26 +0200 Andy Shevchenko…
Add missing terminator entries to struct
kx_odr_start_up_timeinitializators.Fixes d381089dda44 ("iio: accel: kxcjk-1013: Convert ODR times array to variable in chip_info")Signed-off-by Andy Shevchenko <[email protected]>---
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.
No problem. Folded in.
Thanks for the quick fix,
Jonathan
Quoted 48 lines
drivers/iio/accel/kxcjk-1013.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/iio/accel/kxcjk-1013.c +5
-0@@ -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 {