Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: hid-sensor-gyro-3d: fix typo in array name

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>

authored by

Bhargav Joshi and committed by
Jonathan Cameron
cdf89f22 6ea592a3

+3 -3
+3 -3
drivers/iio/gyro/hid-sensor-gyro-3d.c
··· 42 42 HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS 43 43 }; 44 44 45 - static const u32 gryo_3d_sensitivity_addresses[] = { 45 + static const u32 gyro_3d_sensitivity_addresses[] = { 46 46 HID_USAGE_SENSOR_DATA_ANGL_VELOCITY, 47 47 }; 48 48 ··· 297 297 ret = hid_sensor_parse_common_attributes(hsdev, 298 298 HID_USAGE_SENSOR_GYRO_3D, 299 299 &gyro_state->common_attributes, 300 - gryo_3d_sensitivity_addresses, 301 - ARRAY_SIZE(gryo_3d_sensitivity_addresses)); 300 + gyro_3d_sensitivity_addresses, 301 + ARRAY_SIZE(gyro_3d_sensitivity_addresses)); 302 302 if (ret) { 303 303 dev_err(&pdev->dev, "failed to setup common attributes\n"); 304 304 return ret;