Re: [PATCH 2/2] iio: hid-sensor-gyro-3d: fix typo in array name
From: Jonathan Cameron
Date: Sun Mar 01 2026 - 06:54:58 EST
On Sun, 1 Mar 2026 00:44:00 +0530
Bhargav Joshi <rougueprince47@xxxxxxxxx> wrote:
> 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@xxxxxxxxx>
Hi Bhargav,
This stands on it's own so I've picked it up.
Applied to the togreg branch of iio.git and pushed out as testing for
all the normal reasons.
Thanks,
Jonathan
> ---
> drivers/iio/gyro/hid-sensor-gyro-3d.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c
> index 8e3628cd8529..4f88fe478d84 100644
> --- a/drivers/iio/gyro/hid-sensor-gyro-3d.c
> +++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c
> @@ -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;