From 3dba1847dfaaa24406110d2fc21d3bc8cad67f96 Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Tue, 11 Jun 2024 16:16:10 +0100 Subject: [PATCH] channel: Correct linear x/y/z modifier names I'm not sure where the `*-g` names came from, but the kernel calls them `linear_*`[1]. This fixes an error when using the Bosch BNO055, which is the only user of these modifiers. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/industrialio-core.c?id=83a7eefedc9b56fe7bfeff13b6c7356688ffa670#n147 Signed-off-by: Chris Spencer --- channel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channel.c b/channel.c index 6905a7655..c35454570 100644 --- a/channel.c +++ b/channel.c @@ -113,9 +113,9 @@ static const char * const modifier_names[] = { [IIO_MOD_PM2P5] = "pm2p5", [IIO_MOD_PM4] = "pm4", [IIO_MOD_PM10] = "pm10", - [IIO_MOD_LINEAR_X] = "x-g", - [IIO_MOD_LINEAR_Y] = "y-g", - [IIO_MOD_LINEAR_Z] = "z-g", + [IIO_MOD_LINEAR_X] = "linear_x", + [IIO_MOD_LINEAR_Y] = "linear_y", + [IIO_MOD_LINEAR_Z] = "linear_z", [IIO_MOD_PITCH] = "pitch", [IIO_MOD_YAW] = "yaw", [IIO_MOD_ROLL] = "roll",