From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 53E0032A3EC for ; Tue, 16 Jun 2026 13:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781616337; cv=none; b=paSFiAGoV/sZmVtYFkMTrxaDca6k4YOnFB+hUL6UT8gHuSWvRhBXhV4qsWIs7aCKh6lnS15E6DluM1DsWdOctrgERBVdv0F8eCIBX0gsl9AjYw4IKY64GrnxdwiV1hCNnKbuhGlqEZ3zXxFoY71GsWD9Vxc4NPYZiq2HHqIviMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781616337; c=relaxed/simple; bh=ivbSDbPjMlcwVSaPpwbnzauJAgE6QePNzCiPCOIkAos=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Zv1gwlSMplXS1CRtR5gMMSRKxCMP9B1yUIbofr0CyfP+sJNM4L/jpkpIcuOPr7npfkCdJMCQn4TYLHHBXrB1SW9sqj6gP6haBQ+knGDvpivcmiqZdePHHT5o/9pRBNri+Wfo08k8GnL61rKRWnN2SuwAscKcMTEHMHbUIn4czvo= 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=U/FqFtul; arc=none smtp.client-ip=209.85.210.181 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="U/FqFtul" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-8423efad617so2821623b3a.0 for ; Tue, 16 Jun 2026 06:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781616336; x=1782221136; 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=rBh3T8DiAUTzySoFqHErLUnRhZqyPc5fESGPTvCXENU=; b=U/FqFtulpgqDzj+DMnXHncndgFaZFsID/BuFVPNaf5pgLhDMjukwN3bVt40sv7MwSQ +jIjEE7EJlg1Rhu5fuqiD2wxSkNJ2QCU+MBGmaoTYC5WgBOIVGP9eEHdwIdcJmf9iwCe j++h+OfxDYbQixBGbatbOeF/ql3nEJ0XxxzJm24eI+jK0GqQnxPcNrCVR2ctCv4TLjHN 4Cta4l3SUfF1ECTLxYif5KCKSs4gnCpAcL18j6AEA2qFqowD1p9bJve0BFiEbdulz6WF V9qwyCLgbRLyMC315qnMKCY7oF0nVsyEK5xHbvhZo+L8ZDthSXoxkaAuYPs3c8JSiD5i rKxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781616336; x=1782221136; 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=rBh3T8DiAUTzySoFqHErLUnRhZqyPc5fESGPTvCXENU=; b=bw9FmbdFQcJE9GVtPNWCPdzScQfsYSzLul0F8KPWpUjwWTiDkefapgxrWc8MEyIHVw iJd+PuJBa7pnIs6rceOZM04C9cR+vOGerNswQ1tXYaCfuGPhxztzP+k+4JxszGnvSRGt RPY2o6L27wV/liAvKaY/q7ZWHZAtxnDYBMAe/WiAkmmZfmnmgRkcFIAgOnLoshqFfYuS 17mlTAOGhyCYJdDXb+hCDaUTi7CP1iWGu5PCyuT9AP2JNK+WyyLv7a9NLYhkW22SAUSS WnN4z1l+h/I3ggJe8U/SckyelDi1Wvm90CCpEYMoUscnQmP9nHBUJPWNUSj6fMqfPCh5 mxNg== X-Forwarded-Encrypted: i=1; AFNElJ/lx2gEsYQiQ6wTpxKFHQS42OYcbV4ncuSv1J+oTURixySrkDoTMaDi9U4DW4TMqXK0oNrhLqpVqTyxnN8=@vger.kernel.org X-Gm-Message-State: AOJu0Ywwrxok3QUOugoo53XXohqnAKdgZrzf9Fhv3VgssRaIm/YdluYI NAioVd8PmxHlJcz2PMluu4pblwkk8Fbiw/By40yvefv+zitbGKEMHkrC X-Gm-Gg: Acq92OGVIzhtZHkw4pf4wnPgsvUVj/c94vTpqy62Q8taI/OFW6n2+AD8579uXTwrCWl dnJ/yAC9spqZ3xonS5YJiQqDowAAVI/z6F5sDvs6HF23CYEcrfYf8D0gEOYs+E+8EkRUWRjI/JU SkqG7B0YI+2Xk05PzpZ0uUVcO5i1sHp7fqlrLpyh3BrhcjKWlHe7pOqs6LSX3ZWvDlwn7vZYW+K YWofneoGBXoAETzMp+H06QM30W6BWy3QTtXDOhxsuyJ1SHdbhUUW4s3ZXy1vsn6O4w3JmYlGp5H qJNfvzREhTxyzMbVHa6gBrYR9NCl+dnCqcg/xmBUcR4PgbDntN0l3nSdlN/Dl/aaL6IEYAqOVjU rgtx2+jcy8rwU3M/aC7Sc4NROiB/xz0jEJWYNGxELUMccEmEFIE5gPS9EmUX9emDvgqctCsowMm KC6tdhZ/TyNJ2yMZJ4JNEKEiRXRug78qbk4r8s5npo39OV+yar X-Received: by 2002:a05:6a00:4fc8:b0:841:edb9:4ea2 with SMTP id d2e1a72fcca58-8451561d852mr3340064b3a.32.1781616335757; Tue, 16 Jun 2026 06:25:35 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8434b046911sm13105079b3a.53.2026.06.16.06.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 06:25:35 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda Date: Tue, 16 Jun 2026 18:55:20 +0530 Subject: [PATCH 1/3] iio: hid-sensor-temperature: use u32 instead of unsigned int 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: 7bit Message-Id: <20260616-16-jun-hid-iio-u32-api-type-v1-1-952c74195f46@gmail.com> References: <20260616-16-jun-hid-iio-u32-api-type-v1-0-952c74195f46@gmail.com> In-Reply-To: <20260616-16-jun-hid-iio-u32-api-type-v1-0-952c74195f46@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 'unsigned int' for usage_id variable. This matches expected callback API type and improves code clarity. No functional change. Signed-off-by: Sanjay Chitroda --- drivers/iio/temperature/hid-sensor-temperature.c | 6 +++--- 1 file 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; -- 2.34.1