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

HID: sensor-hub: Fix typo and improve documentation

Includes the following corrections -
- Changed Measurment -> Measurement
- Changed clode -> close
- Gyro -> gyro

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250507055745.4069933-1-chelsyratnawat2001@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Chelsy Ratnawat and committed by
Jonathan Cameron
27737b84 6cdb4009

+5 -5
+5 -5
include/linux/hid-sensor-hub.h
··· 17 17 * @attrib_id: Attribute id for this attribute. 18 18 * @report_id: Report id in which this information resides. 19 19 * @index: Field index in the report. 20 - * @units: Measurment unit for this attribute. 20 + * @units: Measurement unit for this attribute. 21 21 * @unit_expo: Exponent used in the data. 22 22 * @size: Size in bytes for data size. 23 23 * @logical_minimum: Logical minimum value for this attribute. ··· 39 39 * struct sensor_hub_pending - Synchronous read pending information 40 40 * @status: Pending status true/false. 41 41 * @ready: Completion synchronization data. 42 - * @usage_id: Usage id for physical device, E.g. Gyro usage id. 43 - * @attr_usage_id: Usage Id of a field, E.g. X-AXIS for a gyro. 42 + * @usage_id: Usage id for physical device, e.g. gyro usage id. 43 + * @attr_usage_id: Usage Id of a field, e.g. X-axis for a gyro. 44 44 * @raw_size: Response size for a read request. 45 45 * @raw_data: Place holder for received response. 46 46 */ ··· 104 104 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 105 105 106 106 /** 107 - * sensor_hub_device_clode() - Close hub device 107 + * sensor_hub_device_close() - Close hub device 108 108 * @hsdev: Hub device instance. 109 109 * 110 - * Used to clode hid device for sensor hub. 110 + * Used to close hid device for sensor hub. 111 111 */ 112 112 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 113 113