mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
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>
This commit is contained in:
parent
6ea592a31b
commit
cdf89f2253
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user