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.

HID: sensor-hub: Fix typo and improve documentation for sensor_hub_remove_callback()

Fixed a typo in "registered" and improved grammar for better readability
and consistency with kernel-doc standards. No functional changes.

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

authored by

Chelsy Ratnawat and committed by
Jonathan Cameron
7e00d74e 413e1d6a

+5 -4
+5 -4
include/linux/hid-sensor-hub.h
··· 128 128 struct hid_sensor_hub_callbacks *usage_callback); 129 129 130 130 /** 131 - * sensor_hub_remove_callback() - Remove client callbacks 131 + * sensor_hub_remove_callback() - Remove client callback 132 132 * @hsdev: Hub device instance. 133 - * @usage_id: Usage id of the client (E.g. 0x200076 for Gyro). 133 + * @usage_id: Usage id of the client (e.g. 0x200076 for gyro). 134 134 * 135 - * If there is a callback registred, this call will remove that 136 - * callbacks, so that it will stop data and event notifications. 135 + * Removes a previously registered callback for the given usage_id 136 + * and hsdev. Once removed, the client will no longer receive data or 137 + * event notifications. 137 138 */ 138 139 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 139 140 u32 usage_id);