]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: hid-sensor-gyro-3d: fix typo in array name
authorBhargav Joshi <rougueprince47@gmail.com>
Sat, 28 Feb 2026 19:14:00 +0000 (00:44 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Mar 2026 12:10:29 +0000 (12:10 +0000)
The array 'gryo_3d_sensitivity_addresses' has a clear spelling mistake
in its prefix. Rename it to 'gyro_3d_sensitivity_addresses' to correctly
match the naming convention.

Signed-off-by: Bhargav Joshi <rougueprince47@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/hid-sensor-gyro-3d.c

index c43990c518f7756e1269dac61c791d34e2704ff0..c340cc899a7c98cea39518902acf654d5df1fb8e 100644 (file)
@@ -42,7 +42,7 @@ static const u32 gyro_3d_addresses[GYRO_3D_CHANNEL_MAX] = {
        HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS
 };
 
-static const u32 gryo_3d_sensitivity_addresses[] = {
+static const u32 gyro_3d_sensitivity_addresses[] = {
        HID_USAGE_SENSOR_DATA_ANGL_VELOCITY,
 };
 
@@ -297,8 +297,8 @@ static int hid_gyro_3d_probe(struct platform_device *pdev)
        ret = hid_sensor_parse_common_attributes(hsdev,
                                                HID_USAGE_SENSOR_GYRO_3D,
                                                &gyro_state->common_attributes,
-                                               gryo_3d_sensitivity_addresses,
-                                               ARRAY_SIZE(gryo_3d_sensitivity_addresses));
+                                               gyro_3d_sensitivity_addresses,
+                                               ARRAY_SIZE(gyro_3d_sensitivity_addresses));
        if (ret) {
                dev_err(&pdev->dev, "failed to setup common attributes\n");
                return ret;