summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Chitroda <sanjayembeddedse@gmail.com>2026-06-16 18:55:20 +0530
committerJonathan Cameron <jic23@kernel.org>2026-06-30 00:15:55 +0100
commit46d67896786c8a07e5ad6a9d6ace6cdd312ef158 (patch)
treec04fb0bb871a099ffca8983920c72983a1114786
parent7758cd492290af3ed3d21067de29d6ad36566719 (diff)
downloadlinux-stable-46d67896786c8a07e5ad6a9d6ace6cdd312ef158.tar.gz
linux-stable-46d67896786c8a07e5ad6a9d6ace6cdd312ef158.zip
iio: hid-sensor-temperature: 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/temperature/hid-sensor-temperature.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/temperature/hid-sensor-temperature.c b/drivers/iio/temperature/hid-sensor-temperature.c
index 9f628a8e5cfb..a8d3a15f9c53 100644
--- a/drivers/iio/temperature/hid-sensor-temperature.c
+++ b/drivers/iio/temperature/hid-sensor-temperature.c
@@ -125,7 +125,7 @@ static const struct iio_info temperature_info = {
/* Callback handler to send event after all samples are received and captured */
static int temperature_proc_event(struct hid_sensor_hub_device *hsdev,
- unsigned int usage_id, void *pdev)
+ u32 usage_id, void *pdev)
{
struct iio_dev *indio_dev = platform_get_drvdata(pdev);
struct temperature_state *temp_st = iio_priv(indio_dev);
@@ -140,7 +140,7 @@ static int temperature_proc_event(struct hid_sensor_hub_device *hsdev,
/* Capture samples in local storage */
static int temperature_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 *pdev)
{
struct iio_dev *indio_dev = platform_get_drvdata(pdev);
@@ -159,7 +159,7 @@ static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev,
static int temperature_parse_report(struct platform_device *pdev,
struct hid_sensor_hub_device *hsdev,
struct iio_chan_spec *channels,
- unsigned int usage_id,
+ u32 usage_id,
struct temperature_state *st)
{
int ret;