diff options
| author | Sanjay Chitroda <sanjayembeddedse@gmail.com> | 2026-06-16 18:55:22 +0530 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-06-30 00:15:55 +0100 |
| commit | ef4c70122013c1e58b52a0d10bbca9a688be095a (patch) | |
| tree | dc4c5dd16c7aa1a69f3175969ea314afb2a06d72 | |
| parent | dc0cbeb497b00ef1c1fc307fd7d9250893dc3f43 (diff) | |
| download | linux-stable-ef4c70122013c1e58b52a0d10bbca9a688be095a.tar.gz linux-stable-ef4c70122013c1e58b52a0d10bbca9a688be095a.zip | |
iio: hid-sensor-custom-intel-hinge: use u32 instead of unsigned int
Prefer 'u32' instead of 'unsigned int' for usage_id variable.
This matches expected callback API type and improves code clarity.
No functional change.
Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
| -rw-r--r-- | drivers/iio/position/hid-sensor-custom-intel-hinge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/position/hid-sensor-custom-intel-hinge.c b/drivers/iio/position/hid-sensor-custom-intel-hinge.c index a26d391661fd..2139ddb670c4 100644 --- a/drivers/iio/position/hid-sensor-custom-intel-hinge.c +++ b/drivers/iio/position/hid-sensor-custom-intel-hinge.c @@ -190,7 +190,7 @@ static const struct iio_info hinge_info = { * and captured. */ static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned int usage_id, void *priv) + u32 usage_id, void *priv) { struct iio_dev *indio_dev = platform_get_drvdata(priv); struct hinge_state *st = iio_priv(indio_dev); @@ -209,7 +209,7 @@ static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, /* Capture samples in local storage */ static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned int usage_id, size_t raw_len, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { struct iio_dev *indio_dev = platform_get_drvdata(priv); @@ -236,7 +236,7 @@ static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, static int hinge_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, - unsigned int usage_id, struct hinge_state *st) + u32 usage_id, struct hinge_state *st) { int ret; int i; |
