]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: magnetometer: hid-sensor-magn-3d: prefer 'u32' type
authorJoshua Crofts <joshua.crofts1@gmail.com>
Tue, 21 Apr 2026 06:58:37 +0000 (06:58 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:23 +0000 (09:58 +0100)
Use 'u32' instead of bare 'unsigned' to resolve checkpatch.pl warnings
and correct type use as defined in the struct hid_sensor_hub_callbacks.

No functional change.

Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/hid-sensor-magn-3d.c

index c673f9323e4762b5c0f150bf020d7c5add1d505c..b01dd53eb1009fd445f17a8506691b3553d1c7df 100644 (file)
@@ -280,7 +280,7 @@ static const struct iio_info magn_3d_info = {
 
 /* Callback handler to send event after all samples are received and captured */
 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev,
-                               unsigned usage_id,
+                               u32 usage_id,
                                void *priv)
 {
        struct iio_dev *indio_dev = platform_get_drvdata(priv);
@@ -302,7 +302,7 @@ static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev,
 
 /* Capture samples in local storage */
 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
-                               unsigned usage_id,
+                               u32 usage_id,
                                size_t raw_len, char *raw_data,
                                void *priv)
 {
@@ -350,7 +350,7 @@ static int magn_3d_parse_report(struct platform_device *pdev,
                                struct hid_sensor_hub_device *hsdev,
                                struct iio_chan_spec **channels,
                                int *chan_count,
-                               unsigned usage_id,
+                               u32 usage_id,
                                struct magn_3d_state *st)
 {
        int i;