From 1b2bb0dbf23eebf3c51fab5d89773408f3ce08d1 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Mon, 18 Mar 2024 01:25:35 +0000 Subject: [PATCH] input: analog_axis: fix the variable name for calibration Use a coherent name for the calibration data structure variable name. Signed-off-by: Fabio Baltieri --- drivers/input/input_analog_axis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/input_analog_axis.c b/drivers/input/input_analog_axis.c index ace693ddf5..d94c042104 100644 --- a/drivers/input/input_analog_axis.c +++ b/drivers/input/input_analog_axis.c @@ -249,7 +249,7 @@ static int analog_axis_init(const struct device *dev) analog_axis_channel_data_##inst[ARRAY_SIZE(analog_axis_channel_cfg_##inst)]; \ \ static struct analog_axis_calibration \ - analog_axis_calibration##inst[ARRAY_SIZE(analog_axis_channel_cfg_##inst)] = { \ + analog_axis_calibration_##inst[ARRAY_SIZE(analog_axis_channel_cfg_##inst)] = { \ DT_INST_FOREACH_CHILD_STATUS_OKAY_SEP( \ inst, ANALOG_AXIS_CHANNEL_CAL_DEF, (,)) \ }; \ @@ -258,7 +258,7 @@ static int analog_axis_init(const struct device *dev) .poll_period_ms = DT_INST_PROP(inst, poll_period_ms), \ .channel_cfg = analog_axis_channel_cfg_##inst, \ .channel_data = analog_axis_channel_data_##inst, \ - .calibration = analog_axis_calibration##inst, \ + .calibration = analog_axis_calibration_##inst, \ .num_channels = ARRAY_SIZE(analog_axis_channel_cfg_##inst), \ }; \ \