Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp983071lqa; Sun, 28 Apr 2024 12:44:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXti0XjafNYOyzZ99Jem/4wKQrCU22XGFHqHRKhcRCQ6JAwPDTx2oIaU5ZHpaHYGzxAiOAXdHPqfjs2wroTvtjJQGbJb8PkkamrI9JZ5g== X-Google-Smtp-Source: AGHT+IHAUZNMqA/4z0wyScGeGKJ8PsrtjTjXBbpY45iZwsZ7feJCrurpghzl1L4D4OLxij9z8hRa X-Received: by 2002:a05:6808:2026:b0:3c7:48a3:b28 with SMTP id q38-20020a056808202600b003c748a30b28mr7895502oiw.0.1714333461902; Sun, 28 Apr 2024 12:44:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714333461; cv=pass; d=google.com; s=arc-20160816; b=UoEz8GmgoFBjHTNckGTgQMKETHgYxvriMOCqg4l4SoekVe9WsNPQz7js25xYt68svG cyCvtT/l2Vs/QjCMNxc9/OeR96J1tUs5slwXNFThmmfozxTQx5ddKdk0CEBCFWkykgc/ YAOf37QF2N8ng98fLMOcXgwfSDmhUZcF9lSDRCzYB/bIcpJAHyRXY9tRvLVGJsWfzpbv 3zHm0dvVTGMJNfehW+mu3EqSJCKcJYRaU7rItilHHTKP4c24wM7j60VnOl+biYoYmZV6 MIIicIQoVOt+NH9nZmxaTDNBhFFUuNUn7srMOzjToZNOBAHNn4Z4osHBsLMz/QBQja4e lViw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EJIFdCuYT6rurkmLwGidbFknKPMgcfbkVZjdpfCNHrs=; fh=3HvYw/sHD0MHvW6t9cBIzQHrKBrQzr+k6TcyWjVQgZY=; b=FGkHfrPJwY/WXfzzi8JAuOTjX2wak4c1OqR2x66UT3JmzZCjAR4oVAOu33PPmZ5Axs g1h/LiS1vtSC90O+o5Q1jGR6UHoBR4PjXBvLzmAmNUvDjS42pQ1UbkqQaZ75k3yTq2d6 uEtSnAU4F0uH0laa3QPZS36v7Dl1MnTTqwysbNpD5bz5wLJco9VPKEl4lIwX0HlvxYd2 U+7ae1uus7sI5ZRW1rGEmdeH6jEkZIgIb6S1tkLSOfuraj7aTlzoYg+nMHNBvF593UCK 5AaD+qWPct5Fe1xCiSJZDYAkaA0YfTISk1qg9Jrrds+69ZvtVGNYq6fetwr+pHVqkTiO Gz0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="hU/7ZS2T"; arc=pass (i=1 spf=pass spfdomain=usp.br dkim=pass dkdomain=usp.br dmarc=pass fromdomain=usp.br); spf=pass (google.com: domain of linux-kernel+bounces-161557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s126-20020a637784000000b005f7ea2602edsi16933427pgc.322.2024.04.28.12.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 12:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="hU/7ZS2T"; arc=pass (i=1 spf=pass spfdomain=usp.br dkim=pass dkdomain=usp.br dmarc=pass fromdomain=usp.br); spf=pass (google.com: domain of linux-kernel+bounces-161557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 816122815D7 for ; Sun, 28 Apr 2024 19:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D79BC74BFE; Sun, 28 Apr 2024 19:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b="hU/7ZS2T" Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.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 B1F7D7350E for ; Sun, 28 Apr 2024 19:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333449; cv=none; b=nOBPYGh8EOMJxtGVhq9BRnVvmuuDj0Ua++YgEqGDJJStr/fat/BJ9doIN4nodZ6KHki5JHPWT8rXEnCOfm9QDau6aeqwvE1r5kcgl4Kk8OmnF0Ly5u4UcCIpuY0aPTGNc8Mv+CR29vC8QcEktl8/BTLtsOAnFOMBORbjwcMvV90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333449; c=relaxed/simple; bh=DqWJXZc22bMbhLDJy3EvCTZBjymTMxLye39RhiRxrow=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DObwfVdfVxceraveduSEtndyuvSWB43A1tovnId2CNBzvXQsdA2IeKgucWji2pg4oGegq80X7rIxMBj/0VoZ7uMlCjGv+6Mcq4zBtSabXls9oAemrAiuLLFYOd1AT3qhpV6JKEiwi+h0jBpvq6DNEJWY7MTqIl37f58/VLIqnLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=usp.br; spf=pass smtp.mailfrom=usp.br; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b=hU/7ZS2T; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=usp.br Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=usp.br Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5e8470c1cb7so2546751a12.2 for ; Sun, 28 Apr 2024 12:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714333447; x=1714938247; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EJIFdCuYT6rurkmLwGidbFknKPMgcfbkVZjdpfCNHrs=; b=hU/7ZS2T0fw80aP4kMShJXyAjBQPPCBSCN5lFKGEyWcenbvAYr73sTwiNehM9bAizl 5mwLs3jl55rShSvNnHBnXR8g4p2OXMxR3T5nAmqleFg/igTYglFgg1jtIR9ELOvve2nN kv6ffb60Toa+Xa0xEiScgDtVAgTLVS+oAiAPCxCVBPzbLCKP0dybSxFLnIGnqgl2jbeD TuwDTLBxWTVUVqj60wHmDa+WbjYv1qr1PUFgYxOVc6tFj2bkWy0VpXPUGaVPOf6dt7bn 8C+kww1wj/1+YGLLqZpPEgkSHcfqfNOuPotvmRAV3NKbDbrU6To1UdpT1ayS0ysxRXBU +slQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714333447; x=1714938247; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EJIFdCuYT6rurkmLwGidbFknKPMgcfbkVZjdpfCNHrs=; b=ulbVPUnkpO4wZ6JzUacnlD24OoPGDQrf+FYItWRdWpcqmmylgQdLgiZbLI8Sa9U+P9 upfoqdHjka2rGqStcMcFePz006bsiIw5e52YtIp/O/mlqEa/dRvDq+xqPvuzyDJEVg34 U8TLe9rXb0GJNg0+7BtyIRq1T0eaELr5w86Ysj+qjL5TZ1LRd87JZXGFS9Cto7692m0t UkNjLOxAHRcsksp64SpNWairsup3DNs8h1QADcfrn2/+oqeJpP2p8JMNwM6gfMTCeEtU CW7sLV2J5VHa3L92wWt9RqHO1abXMfjHJMi4Vf1AO0SDlK+rFm1SRnD4YcuZ4Ia2RbWo x7ag== X-Forwarded-Encrypted: i=1; AJvYcCVBWjMRBCEYT17vyb9zS6HIcC9FAjEjOhVj7OYypFQDMq60gCckvxsMPo1RcnBqU+b7jYIYWWpRHGKS4wDJG+JlJa1IuSZH5hw+DRcN X-Gm-Message-State: AOJu0YxhIZK0dJaDMi3K7xRIWvA1B8H0KEyOvOGaydn/xNWzQvWPFBTQ yveUOFlxBVwm4XuIZJy4EHMEo/G6v8L49JiL5OGsq+q3z3rY1bhHFK3cAzp615E= X-Received: by 2002:a05:6a20:6a0d:b0:1a7:242a:cb69 with SMTP id p13-20020a056a206a0d00b001a7242acb69mr5648165pzk.40.1714333447066; Sun, 28 Apr 2024 12:44:07 -0700 (PDT) Received: from ASUSLaptop-X513EAN.. ([2804:14c:81:903a:a3f3:f05c:11d1:1d76]) by smtp.gmail.com with ESMTPSA id l15-20020a170903120f00b001e45b3539dbsm18826374plh.41.2024.04.28.12.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 12:44:06 -0700 (PDT) From: ogustavo@usp.br To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org Cc: Gustavo Rodrigues , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Bruna Lopes Subject: [PATCH 1/3] iio: adc: ad799x: change 'unsigned' to 'unsigned int' declaration Date: Sun, 28 Apr 2024 16:43:24 -0300 Message-Id: <20240428194326.2836387-2-ogustavo@usp.br> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240428194326.2836387-1-ogustavo@usp.br> References: <20240428194326.2836387-1-ogustavo@usp.br> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Gustavo Rodrigues Prefer 'unsigned int' instead of bare use of 'unsigned' declarations to to improve code readbility. This ceases one of the warning messages pointed by checkpatch. Co-developed-by: Bruna Lopes Signed-off-by: Bruna Lopes Signed-off-by: Gustavo Rodrigues --- drivers/iio/adc/ad799x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c index b757cc45c4de..3040575793a2 100644 --- a/drivers/iio/adc/ad799x.c +++ b/drivers/iio/adc/ad799x.c @@ -128,7 +128,7 @@ struct ad799x_state { struct regulator *vref; /* lock to protect against multiple access to the device */ struct mutex lock; - unsigned id; + unsigned int id; u16 config; u8 *rx_buf; @@ -253,7 +253,7 @@ static int ad799x_update_scan_mode(struct iio_dev *indio_dev, } } -static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch) +static int ad799x_scan_direct(struct ad799x_state *st, unsigned int ch) { u8 cmd; -- 2.34.1