From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB78B3AA4E1 for ; Sat, 6 Jun 2026 12:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748281; cv=none; b=e4sXx0azt4C1TTVFzhzsi5X6EafwJz8pSdXw7s+5lkP+I9aMfui8l4WPbI+Q8unjNo7miblugfeQLrC7itzbWD1gMc8b3A59XqzTvga1DIEJlF03ltRYoSEkg2/3H2oX4Y6j8iuK1Ifi19lHa/OzLIcUe6oL5Ea+I/SE/24q7X4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748281; c=relaxed/simple; bh=+me19Dlp04MD0yG/JoDnOwbJvtLRmc7KSkMgHI+WBhA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nLdWDeN2lSzNIPyftzk82PiABlbhkxQpVzo+LjtLKvzD3RG3ASGxpSKvkZwmEG/A9uLo/m4UWBxx5Jiuazb9/N365IEwKloYnK1f/LKfHCeFvoDOPuouPQpaXlP0QIRLR7pSW616myn6IHTjez2x49CqmVo9TMSR26JvgWo/mkY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Gl+NjWDx; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gl+NjWDx" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-842319576d5so1603167b3a.1 for ; Sat, 06 Jun 2026 05:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748279; x=1781353079; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/6G77dJDd4Gc8IncQqcA/KWYZ2vF8mtXNJ4Pfq1nrgs=; b=Gl+NjWDxwArBaMZPEayaYuXF5wGFivCpi5d0Aejf3wcD7J1bbzSwmL6QOim4355WQc 9VyzaAd2VDQEYsJm1LAND7Ov2mnPYG04bqDoWOHo6DB+SxuUAd4epF7/YnOcLB+kplCD 6FObvueZrbDiTX/n8huxkzGRj3yvY47Fsqmx8Dbh6q98S8mshiBWpxoFB1fQ5b4uxu3L cT3fhlGe9a3TwvG99G9vGWWjVfDwMnE907IsxLveSUBGXK6iw3sbUZwaEDJRMN0hhHgZ O2zleUbG+p076f6wnNm0d7XiqgwcpCFVWcO3k4mNDGf5bIiKttdpH15moYd8ZT6FmPtX SJEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748279; x=1781353079; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/6G77dJDd4Gc8IncQqcA/KWYZ2vF8mtXNJ4Pfq1nrgs=; b=MxgS4ePWOl7EnCXjCWuoCpXTJSDlQn5o0xY2jSaJ5VIg47uYhaOjbNK9dAtsMMMvW6 vGnUiReeST3GnQJ2wr5saDpPCYbFIgvKB1pO0vYfMhz7kJSdjWgBihbGO+bH9e6yc23f b3wBw0DWwjngkeK4oYUsuJfasA9WpiJFxWvaSdrC3QSkEFwTQQZRSFo3OMOfKZctrGRH 3FB6IU2NZj1t+0jDyHzlIF5MEbj2cDE4lkcOKq9cHJZnB/ZbYhNt3pLv6NnURZh6YQ/n a3R+KBvFwfBg+09kDiVlD8DekAMs4kIS2JXmbgY4/cRteVVdTGFQGXBsPBvRCGCn9yfp 5YFw== X-Forwarded-Encrypted: i=1; AFNElJ8js/XzVI18Aqb12gSSwOLBBiw17GcZxLa4TgMxWnPhLNa41o5blj59n/Pn+zbN6qG8/lytZQgEN/AmNLA=@vger.kernel.org X-Gm-Message-State: AOJu0YxhQCR485eBBXLS++ZyqBLj236YbrAPvYJu737+s3DlG/sNkx/H ZZR5zPfxNVVehwvg+GsfmLa8neE6dMU57tozEAM+s2Pg1tUPanTg89dd X-Gm-Gg: Acq92OGAevMs6t04SWl18wLS+n+2NZv9Vj4i9kDI+7Q1RS5JFq4CVw1aMOnpyhQbShr woGRYVBaVtSwdaC8LHw14rIBv9Z/GJGO/lgSxl73OjV7eodNtGkT1WmEa3DXrk8ABQ/YfgDV6VU /r52Y7Y92SXZ1m1G5DUza9Gw42ZwbG0cp93u5YqX56L3f008FXlFho+jxommtM9nh0n4eAMjtpG OjY7fnESrf6jyqRULHYDItDsJRRKuzhs1bdOGn7vhfRd+PjAOACFGjWZYnhH0UEYGtl1XZhjxa3 b4UblbUvXHqPSM/5YRaoUx1H5RH/CgXKoHbgKUJ6cgsS69rTOPeTGOTKy+AooSOQRUq076Mvm6i V5FQEpK+IuW4l9XyCA6lQjZ1GzAQH4hg8CnqPMRiGorCD0V5s9y+D+j6lH8x4tOy/1BgzlEXVKV 3x07fIj+le56tsX+FN2CwtpbmbCjFByiEksR1skTry2umFoMGkxLYZ5a2LiKU= X-Received: by 2002:a05:6a00:b483:b0:83e:3050:d0b with SMTP id d2e1a72fcca58-842b0eadfa4mr8204080b3a.1.1780748278841; Sat, 06 Jun 2026 05:17:58 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:17:58 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:42 +0530 Subject: [PATCH 1/7] iio: gyro: hid-sensor-gyro-3d: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-1-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- changes in v4: - Use 'u32' instead of 'unsigned int' as driver is already uses that and re= spective prototype has same data type with input from David and Andy - v3 link -> https://lore.kernel.org/all/20260509101040.791404-5-sanjayembe= dded@gmail.com/ --- drivers/iio/gyro/hid-sensor-gyro-3d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-s= ensor-gyro-3d.c index e48c25c87b6d..bbca2111e79b 100644 --- a/drivers/iio/gyro/hid-sensor-gyro-3d.c +++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c @@ -177,7 +177,7 @@ static const struct iio_info gyro_3d_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -199,7 +199,7 @@ static int gyro_3d_proc_event(struct hid_sensor_hub_dev= ice *hsdev, =20 /* Capture samples in local storage */ static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -234,7 +234,7 @@ static int gyro_3d_capture_sample(struct hid_sensor_hub= _device *hsdev, static int gyro_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, - unsigned usage_id, + u32 usage_id, struct gyro_3d_state *st) { int ret; --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 485E53A8746 for ; Sat, 6 Jun 2026 12:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748284; cv=none; b=WsLN4A0hDzypcQUrI8Y1Y0AP0zJcnWQRz0H0ReYnQKEdtkpumheQLGEn/a2dt7nwmVnerFaJyrQ+uz7oDD76aRpgsv/KN7SnheI2NbrQdyNNU6KzV6bE0uRAwIrWygZgLpgAZspO+uhWizP4P6HB/HFgNEnZSYSKvJ1rWMYgyhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748284; c=relaxed/simple; bh=GqX3qsviXk58AXgPbpCQAUVbN5QAqQDcXvmHrllU8fE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tHTgKLOs+U+GNoPBUCUVK6NL63yPtZ+wQu0WzQeson7g3PXg2bNH5OAuSEAGow1EplNzm257GgtvDUT9z386zICCtu/A5+N//MryzQsB2DBjAWGdHQPBamwIgh8JbiJnN2NonRMXPm1LaT2VUznaRfFzbqFmvgc/qgNZxULx2yE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GAxKszM8; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GAxKszM8" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-36da151a152so2063967a91.1 for ; Sat, 06 Jun 2026 05:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748282; x=1781353082; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=eYUlHjrzq9x0wWhn3UhtXwVB0aizDrgtDKmKAEDK6i0=; b=GAxKszM8Yp2ee8d79sBUTeCYRTAyvg6qb7gk/Q3ucGq81K6JQ39UfMu+W8zjxv5ME0 dT29xb4qxLWVfHylUQ594VC/1r7uLAW23ob278vXAINA/1NxhYk4u6b1o76PQvJb+ikE NcJY/TrkX+3NMjeJw3ZTHJcFehWkJhb2boMhKaZbJo/AWzQk0im3dQWui8EXWCkDv7Ys vvXGORV6wKMIR07w61eij7Hsg2D0Wv9/x1qnIGPbf+43Vg7MX7Y8dMgx+lEmHzv7NbBv rgx5T/q4bJXD5NQghtuKMPk/ojUGyciKNySH32xU96lZ46eP69x9Ff71LbPK6P2THwiO SyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748282; x=1781353082; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=eYUlHjrzq9x0wWhn3UhtXwVB0aizDrgtDKmKAEDK6i0=; b=TchRS6F1P9C66MQ8D6fjwOtppenefvvP20vR4ON7vtRbjJ2ax8bSfWdlKIEF5+ZCVZ Kg6aThL4GdEZb3rB92g9MifolM/cD6u8HdU7iGoAIOhnktwALfFtXwHBvX7uffawKy4T 4Xtuga3TBTZTyQzeSfPT9ZGfWk+Ow3s4w6K6LLQcRlAZ1C+B0js3kv4igf5ppMqfLa8U PwRmx4wJwuyxRpaI+ZWsfkGfrUNUo5Tcw9bYBGVQuSLL/tQ4ZuL8OuPpYcYgDJ/cqQo1 Jiw+k3kBT0V0WtPPoIhhZier25RNOHcpur5m8cn+JwiuIC6ZNFuN7YNtUhPe46y6a+20 TFSA== X-Forwarded-Encrypted: i=1; AFNElJ9o9aJNotaGj7EdigdVzYTta5SN6it+0f21ZYxt4ug8FLzjegW6lozqNikcR8ePV8ufgW14BUXloQQXHQ4=@vger.kernel.org X-Gm-Message-State: AOJu0YwWtPpF4+Yuv3dw5yBiCkrVoLw0LI26DtesM3EGPiou+V0t7KnJ hZc8lZwfAoeArbBfhyMHgd9QjVQn81+q7NmLRO/BM7MoCK+RwRquMmQu X-Gm-Gg: Acq92OFnqkdfMhSboBOu1mujFB54TZZfke+M1O0zErWTZdAsZxzGlWjzw4WVd3xM/LN PurzntKM1vybZj46AiJAWGsvEpIdcZ+933JmIVWQtszVs3aShYljFa7B5eaWVsMFb9I7DF6Eh97 NenjU+tJhlzUXBhnQBzbSwExmxml4Ddx81wGAZoXc3xaNfZL5pyUr3dbZ4qd6oD2s6c9QfT2Dmc 6LIDUXHRZj6dP9QGpoEZyy3BsNbsiv/qWoNy+G6BLqynuYkQjICChGgsf9lqbcIV2IlXfMQOkti 1y1tD+sB7Lt6q7Gc/x6anVq4K+5BhrRdPjseApkDq2vmqFdnZQlE8SQFxIr2XawI/VolZ1sw2ih 3Qg1lkzfCXmkhyw3gw9o9W/AKZEiUw9qjfeMS5f2iiPdJ7UumRAX9kl6jqFssAtOIcMOaQpPFFP Yhs7zfT6jnkmoYcXpuqkb0NSEZA7sDFQcvxgz2BdXeF+B771yb25MEltExBXo= X-Received: by 2002:a17:90b:43:b0:368:a27f:9083 with SMTP id 98e67ed59e1d1-370eee02480mr8504065a91.7.1780748282597; Sat, 06 Jun 2026 05:18:02 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:02 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:43 +0530 Subject: [PATCH 2/7] iio: accel: hid-sensor-accel-3d: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-2-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/accel/hid-sensor-accel-3d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c b/drivers/iio/accel/hi= d-sensor-accel-3d.c index 2bf05ab5235e..42c4259bf209 100644 --- a/drivers/iio/accel/hid-sensor-accel-3d.c +++ b/drivers/iio/accel/hid-sensor-accel-3d.c @@ -223,7 +223,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_= dev, void *data, =20 /* Callback handler to send event after all samples are received and captu= red */ static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -247,7 +247,7 @@ static int accel_3d_proc_event(struct hid_sensor_hub_de= vice *hsdev, =20 /* Capture samples in local storage */ static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -283,7 +283,7 @@ static int accel_3d_capture_sample(struct hid_sensor_hu= b_device *hsdev, static int accel_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, - unsigned usage_id, + u32 usage_id, struct accel_3d_state *st) { int ret; --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 218A03A7F5F for ; Sat, 6 Jun 2026 12:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748288; cv=none; b=gJWgso695CSpENy1lte2l8VxZZojciq+x0YKEIpCGKENhyD4VBs5tcuJc5jmI12L8L+7nKIZeTSswsWX6+29bho/et9jjn4/xw6np51Es6P5dd00E3IRjNSr8GZGgcWswX/NGQhRYyS6GXU9nCX9zW5Nid+jIGM0w4kuJhHWA7Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748288; c=relaxed/simple; bh=2pm3Y7NlnPxbXpjl0DkMA6wQ3bmP8jqcLFQ2x99JvPc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Mk0NPKgZWkL0KdU2yt36Rni5AZZneDU9IUpgdxSw17dhpfYdFztCo/EmzSauvPUKFSoZHHx2s3eVRLW3LwQg8AOKS1Oye6lr1PmvfuYJtN5L+g9yIwOjV3AI2iiU5DqW5Z3Dwot6BdWhAJrJ0WjkN3njvVBtxHZGKwOvYi8Ibss= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gHOm3Cof; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gHOm3Cof" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-84234c83142so1156955b3a.1 for ; Sat, 06 Jun 2026 05:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748286; x=1781353086; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tV97g0zZ+JRJuuxqClWQhzVj4nB+SyGRfwtZkITJgtw=; b=gHOm3CofG8401ccVX/EwyOz6YrbffheXVFrsFhDfdVhIL+IBGLEWXYcK7txATodiG0 Gsh0+JloCRqCrH3NMBLd4+5UlcVZ8d8s3ZzLfF00ACdo312a92vS1RxGgXhzKQv6M8it IBTMWQe73DNWeDOvmnWzqnzqHVWwd8Hq5SH325/gBoFop/fke9gT6gl78ozoOt5A8BbW vXV9oeFvF82sND7cQ6QZEL+B06zt93giPFs2UfYLfuTyF+H5Fet+eTS9dttQ6vfXmnUT qHBPDJkt6N/Jna9G0DCHJBrU3tgmM9SKEzdxQiazG2ubTBQ/4KE90WAXDpkLo5YuNQ7i hRCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748286; x=1781353086; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=tV97g0zZ+JRJuuxqClWQhzVj4nB+SyGRfwtZkITJgtw=; b=F3t0rg5wb9knVEJE+uBnFcb7GFaOGNXKCF+2NOXYUA7PbUDojWfxYMeq0I4jK6OU81 m0Dk7ewgDRFwHimdM7Zl5kJa03zV4ZQHJR7S6GHJ4/+GPjS7g0YwOVyXMY3vIGApLVsA l0q5bb8Fou3xluEYODMBQzp9PT4YM60feGFlZ1fmPP3rQyYFwzxkSDfPN5aClXBwKQkf NiqHJDEQ/Fi3t2qCdgjwU7Wb/Ur6TpUvts4qN/+52K3V2Rsf0Z16Tuuzw/243dS2C39P ixt7XO70Plfzu1ZgrcyeqQDJyBJsVaYg9SHJ41HME7N3zOP+NnIvM99aDRumA+t9fK30 Metg== X-Forwarded-Encrypted: i=1; AFNElJ88RYDEujUMXTUXY6YIsVmkjTRisdNAWzYBlJmmwlqS1ilfiiarxWIz0Te9POs2cd2T8S+cTTRMUyCAtZQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxASOLa3sH9NEwz8DE1vjKQnsQ2dlbexeKgwfOZ2K3Qyd/bDUkh wMuEM9ryU6OHaLzXPjvlYj6ULtFxvDPewbq2AWjiBLu3imdTot6E9CQR X-Gm-Gg: Acq92OFtmdfUZnjK4KJOethoKpHROSlND9aJCu95LxPTw/XSLrMOMTOTXOoM5PJWfig +KNRtmoTUZQ1+NfwPhEMclbMzE5y2trFU2sY737p9TkP9KloOI0+dt9IjI6IMgTSFzSWjttz6gD rlAqKPzf6Y86fN8J0rcR49mNObidMrLS8FvWPTSO3/PAVxHp+tgg99GKrGVeLCv3ZSG9hDgj/Cj X1k/ujNV9z3YfgnB8EZ8XA4K+CyaOACK1xvcMr2oarg0s0qgBJNLfvYuy5wyflctVfN4x4+rXHn 0lxSJ6+dkgCy8zFMxQwpiDLpiv8f889namGqD+HpggXQgCH5d8PEdeXqcDfX0YZcxnaCF+HjGwb OVnm5trFoQmM6/0YLfSsNf6xNVl0iY6P8vSXVb4m2xXuHLJDJHKfT+k93ZCp5aBJG2Q/kULtmC2 Ry2Wj24tZi6sn3o2nkGChz1HMNiLaWxpk5W3AHwtryjP4bvNAvqMW7LF/i2+Q= X-Received: by 2002:a05:6a00:3692:b0:842:5da3:9b84 with SMTP id d2e1a72fcca58-842b0fb2843mr7916192b3a.34.1780748286314; Sat, 06 Jun 2026 05:18:06 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:05 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:44 +0530 Subject: [PATCH 3/7] iio: light: hid-sensor-als: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-3-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/light/hid-sensor-als.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sen= sor-als.c index d72e260b8266..ae2fda8dc500 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c @@ -241,7 +241,7 @@ static const struct iio_info als_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int als_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -263,7 +263,7 @@ static int als_proc_event(struct hid_sensor_hub_device = *hsdev, =20 /* Capture samples in local storage */ static int als_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -305,7 +305,7 @@ static int als_capture_sample(struct hid_sensor_hub_dev= ice *hsdev, /* Parse report which is specific to an usage id*/ static int als_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, struct als_state *st) { struct iio_chan_spec *channels; --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE5CD3A7D6E for ; Sat, 6 Jun 2026 12:18:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748291; cv=none; b=CHM7I1hAgwtsJTHq/ndXV+lwF2iQ/72w9YRBhcsT0mwolMeuQWacIu4n/cujKNIC19OsTUGdcJCAdNZnhkstJcwq1c5QgoKd/pImt5i4IUsrRkvYkj5XhwykD55LUrcqCnYef1b5Qs8nArZC9JLmbCD1eQhmpdzaccCAQd4g/N0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748291; c=relaxed/simple; bh=xBT92X/iokZZhb/ZjZ5JAzsLB+6j1lmE1BdA8QH83Vg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aQ0nfShKgtTOx1d9f32iSqjIRTtdIBl2vmxivMRiVPdmZiB+nHerI47hPUtSIw9edDCCaeUO47ePmOPNUcwMPbJDlCtL1Ohb2V4+qsM9CBij5QbaMcuDcb/BUyByXayiyvTO9YiXTYWvYhg44P80czWGwm76p85XxC4rNZYMs/M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Cz1eqplv; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Cz1eqplv" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-8423f52af13so2026872b3a.2 for ; Sat, 06 Jun 2026 05:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748290; x=1781353090; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=zdrmak029/i3EG0k6Ru+XZi5MEhnOinTZYf/SVwLuno=; b=Cz1eqplvf7szaPRCDUehdnIl2jbSFtbHU4m4zwrRXh0FLx/CiJMmoFLPdkG71iBqwH B4pPnLYhnw50lFT6f6H/M9An2VPSlIof2OeXKMzYnxvfcdxX47i6FrN20PAgp/SFrxwi R9qiB4qs5QIal3QTiOZfRqgQhadfeV3g0R/3Vqjmgpgtj1yoXTMUSS0GiP8GBtDhyGDw PHutkDoc4tfupgXg0kcC4SiJ9dmJfTV5tUHsKMZHaUeAI8Jj4wf3/lhcwjO7fGk6/8KU q3nVzyXqd+bUeWEblk50qhJvKN8QekRrOBhEh4zj2+8ycawSnoNw9IaT3lqmVg4wcqa0 HxUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748290; x=1781353090; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zdrmak029/i3EG0k6Ru+XZi5MEhnOinTZYf/SVwLuno=; b=O0OC6TUZKnbaUojlfImnMvYMct/nnfKuxI07y1Os1lriQVrfc0AmIu4SJ6eMQzDjMc 5HxroxmsLuaLHhDHUXdYPXXtYtB8mHuW0vEnPS+H1lAPUMNm9LCYG4PubZK99cXkY+Z7 u2zREm+CP5eTsMmF8aZnlnltNAniP/TNVpspn+CyB367XFB6EHKG6csznqUl4E7FjwPV Lsu82OpWHXJFaR2Y0IPK+2nbbhPWPhBP5sl6mjA+ioKqq/8gK7IGKuMN5j58QMKPuh/Y zFC7UHCyconc4OjR1vyV/uMgKL7b1RGLbSLuLwLFuxns/99OsaTC1th2oGwv1E8j9D7d MWew== X-Forwarded-Encrypted: i=1; AFNElJ95RnFYlrP5wtk1oecSSiMhilu5V/8d3g/bG9vxzI8bWkVo6TTrscpUhJQC1Eyq3fCc6UzHVbArWjAwbck=@vger.kernel.org X-Gm-Message-State: AOJu0YwmbDlNosPBs7VFC8lbbHFHcunwpEkJYLhKtDOahNqj4PShu94h f77atI0Ud4ngWrXLNsZZi6GYxRat9PdFQqN+FPNkZwzahD0aiORZVtnq X-Gm-Gg: Acq92OGgc+IOciTd4dmLOUdjt6aHDdCk/nVg9kWpMt44570x2M5gkcJok/ZRStDsSzv +iM4NRysL7anq890OutM1/7I4MSGQIDV2s/g32kOSbGP2PsItsrc+3OENWwTF0G173QVYxmqhCp FvIs+3dpEqRu8jUF3aI8N5nHQ3BHJHXOGZcQjjJpLr8frJbptIbaGaxheoa5fAyOMoPiSqupR+A osYiMKgfp2mu0It1glHfQKhMhIH7J9nx9vpzgIJAHC1MZ0BegODQ6MzthBP0OPzzxF1MN/60VFD Rf0SOaXyrq0zCJR/JY4J/XT6cLLxBCsTMstK+evdUgEV1IzfY2q0oA4G2YFQGvEwAVXS5XczWko gPDGtreY7WRAH+1kLlJkz6pw/gyb9M6gS/oEAczX+puaqgQp+uBXGGlp5afs/wPjrSt1Es31ouz E3bvSRZIQrtGI1Df0FZwYO4Q+sGu1EfzVuAfpPI+MuWD7/cxTaw3pHyhQzzwdUnLKWCYp2yA== X-Received: by 2002:a05:6a00:2789:b0:842:614e:cc94 with SMTP id d2e1a72fcca58-842b0f56f5amr7806194b3a.26.1780748290041; Sat, 06 Jun 2026 05:18:10 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:09 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:45 +0530 Subject: [PATCH 4/7] iio: light: hid-sensor-prox: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-4-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/light/hid-sensor-prox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-se= nsor-prox.c index edc9274a2c07..9059f00f0ced 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c @@ -166,7 +166,7 @@ static const struct iio_info prox_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int prox_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -183,7 +183,7 @@ static int prox_proc_event(struct hid_sensor_hub_device= *hsdev, =20 /* Capture samples in local storage */ static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C2AB3ABD99 for ; Sat, 6 Jun 2026 12:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748295; cv=none; b=AEkSHqwHsDbCgUPdt86Iza2yM9hPT8CdqG/WWTufFjXEP18BhPMAKr10KPfcQg+TnXSrKxrqq/vYgEF/hsGQ4kPIAWqNKEsSLYTV6hUJYytOg8YXX6By1GQzVcBbtgMkzRoRdPKirodduP33g9T9uGPivPIDD3Lb7cg+CKCjy2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748295; c=relaxed/simple; bh=bsaWDuC4+cRvmh5t8sNHdcewxT9X5/WCHNtfRMGLUQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iGaTnCt0tEZtayReK1aQJeTUL7tXro0PwO3mMnjgdcUZuZBYlSIEwGulBUOQSVyMnye1r7bDIUuxamJfFVG+zmQ3gGMZdkKQkLjqpoOP0X4EuL/JXN/aE6kTM3+F72Ifl24tBNBchik3Zo80HHAsj6h5p2HztIoXZcDOfXXLass= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Tzs7QoQP; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Tzs7QoQP" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-8423f420455so1231479b3a.3 for ; Sat, 06 Jun 2026 05:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748294; x=1781353094; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4588pint4NDnIkoxZzI34aKv3MZCanP9NRLjE1l7gAo=; b=Tzs7QoQPFUdBVe3Q+SYqwrTYkgsEA+x+eH4WRQKng6MmSI2nBGzqIPpbENYGy9siQs O2pE9rL4OpXx4prLGc8zFfxGk2tv+sExL9As/BR6scSJlkd4wlrEIZcIvMW3lyi0vE3/ NUDCZX3TWXqAdny2+p7QlklHvwALsgNOAv7Xb4v03Pj6fR5pHW8DV3Lu/YCOgCnHQN+2 7pVyTYOjpZ1SDkOsTJ/AR7i1cgJp66jzYZreZcKfd6ADkEVnn5uOGhhE1zPH3gydPb0X OdgGUa0aCSNDTevZEljR88qnNswLaX+6ryZfBSlk0bL2yDPXBBhmKJc3GE+waYD6AV3F 44NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748294; x=1781353094; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4588pint4NDnIkoxZzI34aKv3MZCanP9NRLjE1l7gAo=; b=kFwXZhrSz2hHAZYnv9+bw6neBcSVa43+Cvb7bkls5DcPmOS3WSFRPMEqMO7iCOTwLS UAFAzDQPY4CwS21jRz/OHalpVr9ng4IBMl7/yLdhS8/uwTcRAq10f3PqNMSaLep/aOvs sfF3Rk1hK32scjGktqKxSzBTtGh1gVIYKNa3Eubd9UoKaQDqwYEkeEO755vuiVgexVZf 0OLIwKQyTM4QYZ0+sRCwLOdJTMCO/o9OJz5YIV6ARFjNjE6IuOG37MV+Pf9zBSxxbQQA 7Nfyx3wsktSDwM+7SX84PrVpFy55qnLbAQazjCMgerV2QmgeMDTJex7Ixcc0T9n5tsAB QpPA== X-Forwarded-Encrypted: i=1; AFNElJ98IHuCZCCgLdnIB1AjngaeJ4gHnsavcYiOUtXtXgY9hsoWXe2YH8eMfNonLIubpJv7HH8GQYQU2YXYVcs=@vger.kernel.org X-Gm-Message-State: AOJu0YzEWNgfqtfk0Mmr/5Mjm9aEf/zjC2qwmm8V/xNSJ81Kjpfba90G SGct8MKPuuh2dqr2P60lk8swF4YhkG7KOpnwwL9wApWErvk0EdvyEQS3 X-Gm-Gg: Acq92OEjD3zm12i+iyrYCPgny8oZjRdQd9fgrYbOk/O/FMOfj3o6nQJt0Isa/7RFk+E sm6BkQ6wHG7DoJNMJM9d+R/fsPwuXRcln7TedIMO1AAbLjvGCLBvvrYydm1Atod34uZJzL5icQb 82/ZY/zFWJlgfnkITWLVhFaBiM+ViR3nlQ5Svh0EpbaAT6YFJT/i15PK3hru1L++7gRhqDHvvMB 03sYDJWBtrwMkPHQKS54BojNPSPmR6N0K7RDK3XCmAzeLvCEm2vHNCbMqWoBSY4C2AytronPeK6 nKmQdZTcrscovWOMpjIgqJvG8mz3NxQPsWUyTNe0FM3u197CfH4omQrNkguQk+9O34YI5bQE7yZ HTYXYVXoqzcBC9n77fuIAOzfvpZ4O3UcN0wuBScwysEcxfdbLOLQjSNJAGCBrfPTAl6/nNlACRX L6L8+8BBuRFO2anjC9AXz74OUy/34F3W2i1FTgDhbi/IF3icg84H2UX73koyc= X-Received: by 2002:a05:6a00:23ca:b0:842:5b63:6119 with SMTP id d2e1a72fcca58-842b0e2f430mr7999274b3a.1.1780748293753; Sat, 06 Jun 2026 05:18:13 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:13 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:46 +0530 Subject: [PATCH 5/7] iio: orientation: hid-sensor-incl-3d: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-5-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/orientation/hid-sensor-incl-3d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/orientation/hid-sensor-incl-3d.c b/drivers/iio/ori= entation/hid-sensor-incl-3d.c index 4e23a598a3fb..c7fbff498be7 100644 --- a/drivers/iio/orientation/hid-sensor-incl-3d.c +++ b/drivers/iio/orientation/hid-sensor-incl-3d.c @@ -189,7 +189,7 @@ static const struct iio_info incl_3d_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -212,7 +212,7 @@ static int incl_3d_proc_event(struct hid_sensor_hub_dev= ice *hsdev, =20 /* Capture samples in local storage */ static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -247,7 +247,7 @@ static int incl_3d_capture_sample(struct hid_sensor_hub= _device *hsdev, static int incl_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, - unsigned usage_id, + u32 usage_id, struct incl_3d_state *st) { int ret; --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33D5F3ACF0A for ; Sat, 6 Jun 2026 12:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748299; cv=none; b=LZx+eXVRh4ZjMX7Osn1sAyFtPBx054ZMUvTgA5Y3m6dbkoeJHIpUHWPM3WoMKvUvZklwDSsc7Uq+kAYp/NWFBXiulFid97STp5+7aJVniyVUN/65VhDv1SD/E2CttbLytPcYlpsiqburdDV1wbIIuzWbLzCqey6tPFXpu2/xGwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748299; c=relaxed/simple; bh=9L/E3JsGKziQ3+/+hKLS5npytaMtAbu8QjP5hbmSmKU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P76QotkqqMdGOCnI8PbuAhRHhcxBPcq8T20kGSO2ZIvZkXM/X2YPqaRc0wB/c6d+7wyF5gohUN8wKfRJ18GDoDAjv2TMuLd9Fk6tLp/d98txUaFSEyyibTI9Q1yqxI+538/T/Z6DugSnZzRaBaRRCsR/t/4F0RAyMBTamhzmFis= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FQgsZSHs; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FQgsZSHs" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-c85a297d2d2so1692778a12.0 for ; Sat, 06 Jun 2026 05:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748297; x=1781353097; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oF6o4yICBZJ2JEeavzYUdjsXSOPLZL3YFiV2vZkyltM=; b=FQgsZSHsIkkyvWOeM9aP02mx2fQtwbX5EQbhm/J8BZ5y+D9I80RdJYftpBNvrVsIf5 u92JitW/NyH3l1LkE8wMnpLyi6/F/tohqFGU/nngjNuaJdzLBRQE4w9bJH4jD2nPGNcq Ojb0MS/BFwoQtO8aeWvCTBbRDpPL9wB6jRobVjlgBv/Kt3nPV0YhyaetqADFphL7BGVx LYn5S9BJXtuGUGGwKXpZzIP/edNwFyrxKWaN8o+5MKdHTnQf+QdkPSUqFKcDxVA/fOy8 0aIFR2tNieIekgiUCyUMpkpoJRcq5Yw81t+6bn3RH0tDSzN8z0MuZcS+rRO0LRDOCT1D ETyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748297; x=1781353097; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=oF6o4yICBZJ2JEeavzYUdjsXSOPLZL3YFiV2vZkyltM=; b=hn8Q2JZ0M51+Rk0Kn8Rs+ZsDdzafSRv73UH/DIIMoAqQ05lRHOPDp1t/GA4QmkUO/6 WGKg44IvS/w2vsBzttW3jB/7TMgoIW6itUOi7tNk3up54YdXAXwkOSJoHh5Vv5/7SMkI 2iUG5A2/J66VJ/4vVA7SrjSR6RYJJbvUyoTOsGgdx78vCQABqojCtzTnmFk3WsN9HxBl jJieI9tjH8O1tK3i+ZpOmj5+S5JXlEl9BT45C/XmY3qtUZm6qUykZby3toIQuzt4g6jm P4wyJsNljQgN9UPAYyjVuo4dpsU/UknWfrcSg4D13uwmUw0MlzPmFJpylSmMaX+tGjEI gbiA== X-Forwarded-Encrypted: i=1; AFNElJ8H+0+Hg8adx0vCbqgjvCGsfQAzQ95N56LDdIBkoe7YAyuop/nZUnloIidA+HnK8XNMCLmcwWZM2qMB2IE=@vger.kernel.org X-Gm-Message-State: AOJu0YwzF4jaIbZ15VWGptFouKKRI+ekq3K8b1W6m1sAAgpC6COgAzl/ sbUUoVvkD23f0RLQCwne8SayqArySExmcDA6juwwtq/a1fFyYLO16e4g X-Gm-Gg: Acq92OEBptLYjfc/opS3gPekaOlx66l5YF0T3D9khIzcgp1gMxyZLompvzfXe1Sz4na cxTcbAer5p0YRnINtZ2VaoB2Vc6KgF+3VkzSSloAXC8j2KPaqOHVlVitDolF8PK4ohs+MynyudQ 19SqyqLsje1WtocJG+FjYYWtls1RrYYmu+rJt9qyd3U1vvb/fY3MrUzCDu4M4iVzHU6k6YP5oSJ gnce4ZVDmMpTYcpHm5FHqtVP1MCE6nYVhfPsf2zFWoWcybqGbQu6mi/wgofLW4UTt/FqNXMAlsZ PBY3Tyj1bF72Bkvb/+sGIFupJhcbaCrfB5KnEha7DQ7z31YtZYLgS/zOtqXadk06s3CmANVrttq 7kp+rVIqSU1YDYh699NvF3zariLDQpMfAu+FjUS1Yrxev+3j2onFWtGkbqTqRrIyIqz6LzypL+J 4JlFQ3uyCvOAaqBhDT6AdSx9aGRQsmElGK3E1NsCOrRPv2RWMCDPgV8FHd1k8= X-Received: by 2002:a05:6a00:2789:b0:841:58b0:82c7 with SMTP id d2e1a72fcca58-842b0d82b13mr8379976b3a.8.1780748297468; Sat, 06 Jun 2026 05:18:17 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:17 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:47 +0530 Subject: [PATCH 6/7] iio: orientation: hid-sensor-rotation: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-6-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/orientation/hid-sensor-rotation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/orientation/hid-sensor-rotation.c b/drivers/iio/or= ientation/hid-sensor-rotation.c index 4a11e4555099..20563d8efaf6 100644 --- a/drivers/iio/orientation/hid-sensor-rotation.c +++ b/drivers/iio/orientation/hid-sensor-rotation.c @@ -176,7 +176,7 @@ static const struct iio_info dev_rot_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -209,7 +209,7 @@ static int dev_rot_proc_event(struct hid_sensor_hub_dev= ice *hsdev, =20 /* Capture samples in local storage */ static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -240,7 +240,7 @@ static int dev_rot_capture_sample(struct hid_sensor_hub= _device *hsdev, /* Parse report which is specific to an usage id*/ static int dev_rot_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, struct dev_rot_state *st) { int ret; --=20 2.34.1 From nobody Mon Jun 8 06:38:46 2026 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D16653AD522 for ; Sat, 6 Jun 2026 12:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748302; cv=none; b=CQT2JeA5XxX/OVueS+BQAUszL5vdo/3o42B8gw0OzvZyxI669Oi0M02+eU2P9MDPa+y1muu/gALMmJSGy1Qchk0flXe4fJVYK3Kz0N/Sey/ifRpr6QIe4J+wciZAj97wZYVj35VemQGWVV9cOH92XwZV0sQN5XcwUTQeEjeHCUM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780748302; c=relaxed/simple; bh=+8Th2tqSkkRp9mu4UcTUml9XGNx1UT/wjthRD1B0siU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nn+lV0sAhH/dZajCX2UDzY0jbE8ZSotgCj1I6r4ACjTYR9dPBIqiu/K9sjAfqsteF7O4KgeFkJ8vtm7yJBf+ObNPwpVOAEbrGV8H1Bg7mtwWIAAckGTyA54yFK/mYKpMjhrSZv4SZoDr9J0LK/F7Og/5sjM7FQJtPw79Bl4rMtc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ny0nN/Nf; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ny0nN/Nf" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-8423f626a65so1197745b3a.2 for ; Sat, 06 Jun 2026 05:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780748301; x=1781353101; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=QpfDjdD9Z/m5BcMHs2GpePEiDHhCu6+UBKXmA/fcyZA=; b=ny0nN/Nf32cnjEfsUqMnGD9qt4DiAjxuG/evcLBo+77f/cuMXfGhNMwaF2AePHXKx0 VDC7ChY37MB+aOcP/CsaTqGU/GK+flXpHmVvdUtoZiNoSzQR/tG9ID5G8P9raQI8VxNF BqV11Bc+SFRkP+u475YwGnFExTEXjALu1nJ0l/Hdj5c5COVtM3LPb08O843qN5sDyBlL UFHdErwsK4STfleGUty3R8a8JYvOsh15bRANAN4A8LfiQrC7LQQa8XZJgJqVif0Avd+S v8EZWDJNwVNRiEP/1d8huMFEJrOJX7VTsi8Avv15em5EYgfOsYQa4UpcrHw549yMZ5EG t1rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780748301; x=1781353101; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=QpfDjdD9Z/m5BcMHs2GpePEiDHhCu6+UBKXmA/fcyZA=; b=sFMhieskYyMNZ+ot/FN0RMYdg6gEdF7ETfxaNlOAWQq6guAPGRCcyF8gDVu4NX8LdC qu4ZTqXxwjAE/e2RLh1oYUx4wllCya4drBqoPXTiKn8epowIKTGhSVTC1h+AA/pkvZyU MoDLUKl8onEcQKyXTGmwyLVW0twkNVCzNkHkRIMKJtefBTurMuF7lHEiccCpN7PBkGCK o/zLmAzO78kmfccm4RvG2xEjbUho2t2/1FW+gGfMr8vneTKu0/MPkKr4ElRmHIO8UWvk 7fCNk24vXaqCvcf4s585xAIDQWLP6qd0sCWXhvqbd9dVhCy+425mRD8hjAHwF+VE/a2+ DB9Q== X-Forwarded-Encrypted: i=1; AFNElJ/mHq7m1pXJzFOZULCfkogiRyxtVusc/rD7KYRrATEf8IuMI4QoMrDehNC+oHdbdgbDUcpuITXW5ulpEpA=@vger.kernel.org X-Gm-Message-State: AOJu0YyxsaI/4z9WOlqsNFbNKR9chFuMVDGTdlXXOvWmw/z8zDlZh0k8 6QvDGEfX2uZIUkd3jDyCtxXlq+nNXq4Uc0W3eKP3xPkHjULjD9JKVvdm X-Gm-Gg: Acq92OGd6ItQ9ZskVLIaxhc8ZVoWQILxSo0ZsTUtx7J9QUZitROszqaZOfr3yXhfcBC k3E0XPoeVHiUQnitW9P++AwNpJB/2wdkuP1nAjJHWjJ64AiPbm45dnzSVrm1mXhtxAqLIkHXVu+ QmCIK57ZwzCBysErQhmJ7TCzfGVkmxl+2PdYoomU2KmQ9wQQbYvBfLQF7o7zTZn0uz4EK1KMICF spBOLnn4Y9jOdkWscIu62mLETHxLqDokXcLaxNf0OlFW9yACfRh/kIpDD8CUdv6HnUwXhuPif9t aR5S3PYML0XBRlF6YTK/KW5KuMKiFD/mRMtkz+8A6z+zNVH7UPM/QS9ST3sGZQjfSCM2tSeqpkI A1j7XrQveJqWfGtvB/iYFb4gIDV9M5Sln3Yl6OiCEHUSnB2D0QlBYH5fSH3Mx23EI6Rc/CMJ5rV Qd5CtCEWcgIDOQXBIes7gqzjZopXJV37ab9G2nCcWpBNtrfYKfxUmZBAuyy8k= X-Received: by 2002:a05:6a00:4fc9:b0:842:5931:7b8c with SMTP id d2e1a72fcca58-842b0e20598mr8198084b3a.1.1780748301163; Sat, 06 Jun 2026 05:18:21 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428291ed20sm15253532b3a.61.2026.06.06.05.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 05:18:20 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Sat, 06 Jun 2026 17:47:48 +0530 Subject: [PATCH 7/7] iio: pressure: hid-sensor-press: use u32 instead of unsigned Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260606-6-june-hid-iio-correct-usage-id-v1-7-dd4a6820b674@gmail.com> References: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> In-Reply-To: <20260606-6-june-hid-iio-correct-usage-id-v1-0-dd4a6820b674@gmail.com> To: Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sanjay Chitroda X-Mailer: b4 0.15.2 From: Sanjay Chitroda Prefer 'u32' instead of bare 'unsigned' variable to improve code clarity and consistency with kernel style. Signed-off-by: Sanjay Chitroda --- drivers/iio/pressure/hid-sensor-press.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/hid-sensor-press.c b/drivers/iio/pressure= /hid-sensor-press.c index a039b99d9851..3e47a10d72a8 100644 --- a/drivers/iio/pressure/hid-sensor-press.c +++ b/drivers/iio/pressure/hid-sensor-press.c @@ -155,7 +155,7 @@ static const struct iio_info press_info =3D { =20 /* Callback handler to send event after all samples are received and captu= red */ static int press_proc_event(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, void *priv) { struct iio_dev *indio_dev =3D platform_get_drvdata(priv); @@ -176,7 +176,7 @@ static int press_proc_event(struct hid_sensor_hub_devic= e *hsdev, =20 /* Capture samples in local storage */ static int press_capture_sample(struct hid_sensor_hub_device *hsdev, - unsigned usage_id, + u32 usage_id, size_t raw_len, char *raw_data, void *priv) { @@ -204,7 +204,7 @@ static int press_capture_sample(struct hid_sensor_hub_d= evice *hsdev, static int press_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, - unsigned usage_id, + u32 usage_id, struct press_state *st) { int ret; --=20 2.34.1