Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1488739lqd; Thu, 25 Apr 2024 18:24:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiQCW2QhTTAimKJncWkEMd/pIUV/dk/oZ3hxV1L+klm3XRLjfHMjzG1ThH5TjWJZmOpr9MoDMVwwNd1pDex+rg4O+M942cD2FoJdDjww== X-Google-Smtp-Source: AGHT+IE8Ytogq9qxXqKIoeWN/3k7N8v6O/IuXq1JCcp6N7tcTRhTEAvsFYO6Z4rT6pvdpar9Pew1 X-Received: by 2002:a05:620a:2953:b0:78e:e5f2:214f with SMTP id n19-20020a05620a295300b0078ee5f2214fmr1659045qkp.74.1714094666662; Thu, 25 Apr 2024 18:24:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714094666; cv=pass; d=google.com; s=arc-20160816; b=zHEZk6OQLz7ywN8M1ODWrwAI5gR5hI2P+hFpCOo6jqdhTPJUiA8g20ROxmZFgZ+KUM n4R0AhoA1yD+w/mn0lh/mlC4P+As+5vIvapMqq2qPtEe0awd4GoqXUlwf5IXroa0teBq WMnKg86QE3DPD8DTHT/0AzhB1SS/QAOt9+vqTkzqtvlgLT4vVZSqsrIBwzsmZw3YEI60 OyBTLDXa4KsZC39NJccSB6yZDTz1c8swZHr2/x5cfrvs24P+IJtX/hgkY00EzqJ2XB+m 5OtbHkSzSGnQ95QDuS8qT3JMemeFF949DTc22W0KrqEZUOJTWjXx3/Ts7YGA1qyduhx8 k6pw== 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=4XTXjNi5Gsgixf7+CF9tdY9WwNZpzvpF4TetBpKpSXk=; fh=szr2MpZlZ5CsJObMp/cI1O5M+8aIMwDt71TQurC7yD8=; b=exkDn2dHEqUzrUT2ObvmCxqXrtEvg4YW2RlHfcwOfWED25P14X2AxFr5bmI4YhtzFL JOPQzmjUOVqeWoTU6ICebBQdhX+IF9hlI8tD5f07IVpAuHxGaf71w5myCFceAkP6DjBu TvOybqrlQHBCJjbp/+q1pN48TnYT6iLMVowDr20GPXOMI9MMNtEwg55bx2JV4/+Ek02w LizOnZq4o3uFNBxWJ52km8FQPCaiDGStLB3Cx4TZ8vbSAK366NcyjyUrBis+XnHk7cWH pj0Fg6TD5J+klY9wx2W90SVCi7+na25eHu9RKexCTeRVQYy7dmBStFb9ZDCrAMX3RT+Q 8daw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=qohgE+dZ; 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-159411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y12-20020a05620a09cc00b00790a4acd80bsi1562753qky.54.2024.04.25.18.24.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:24:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=qohgE+dZ; 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-159411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159411-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 683E51C20D05 for ; Fri, 26 Apr 2024 01:24:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4137417CD; Fri, 26 Apr 2024 01:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b="qohgE+dZ" Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 82185184D for ; Fri, 26 Apr 2024 01:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094660; cv=none; b=AESuuyhmBCq7ZeppgT7z2mQkYzgSVyxaAm8eXsuRmn6WMFmuethZdgNXCtZuHG91N5sI6Fm2gqMDeCO/k+QGJamShtQuNYsfcAMxCxl/FqAxVQrZ5CkaCYeUxp7+POeG1HxhNAmEKkym5B1KmjQ/okJjgFenkLwwFIUhdHGEkxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094660; c=relaxed/simple; bh=dZWiA2Ve5wwLdM4H6cElVHbi4Ey09vnby20FDRH/V9I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g/twxDGe/6LgN+q0arFZyXxVAMH4VfWUQI1jy4XAgnIOsI0k/N2C26eI7pH09Qp4gyortNYPogV5wnlRJV8N4oNkRlakonmfF42p/dC0L4GhjJLnjlWSW+qZ//HCblwdr/Q8YH8xFoXIlzvLR8zmD0/clzc2e5dzcmr1qFCVlL8= 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=qohgE+dZ; arc=none smtp.client-ip=209.85.216.49 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-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2a58209b159so1389502a91.3 for ; Thu, 25 Apr 2024 18:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714094658; x=1714699458; 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=4XTXjNi5Gsgixf7+CF9tdY9WwNZpzvpF4TetBpKpSXk=; b=qohgE+dZib+J2Ep8DN9oPtAfQhBcQXzNvvjNBVzNStQVRWm4gnZNqQZsRTGBO746sO DonPN0eDv07Pmx0HTQNz0FIKt2JQGXyfrwbY5J1iyw1bU8stnUcm0jZ5ZBO5s34UD0rW k6Lut9RWUOBuopKgUkSQ++X6yQAdJOOhoIGs1GL2XY9Z/n+nTk29kN+QMjxjpevE4SO7 ha3UZOn9XcU9kQ1yzv63HeXa7DuykEkuKnCXcz2/gfxyx4TIWeppMDUy6aOgYc3HMgeu WD6jTNwvogcISZUBX5Qh2JbWhJRHCY9CElVLD4Uidq1JVwz4xeVHqE4GIhYd2dpbfxpA egCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714094658; x=1714699458; 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=4XTXjNi5Gsgixf7+CF9tdY9WwNZpzvpF4TetBpKpSXk=; b=QUCrIpZnndUZC7uLyN4EJVU2jLFWunyBCt94balFzOB+W6mn2cXoBUJnQUUeclWGn0 8vNEfVJkClEUQtCjqTpwO2oLSD5kJubgJNN2A/et/6fbrq5+ph1JzWRlU1dgebsfuw8m 5Q9nHe/5GVoL9p77turduivWXMuSsynfycx4ONHgLCVthnpiW8PsLT3eDeAr9CVBuEL1 0BEy+96AxDMpR85ZOpyd0XQuoVU6zhc5Gti8XeqJCQxj8SJSgi/pO9Ctg4Ka8MrPeIaS 7MjeX4KePa8Aj4DoCA/HXVb6ODuKrmFEC/Hm6pg70m4o6U93YE8bOXTaIw9S36OAY3Xq qv8w== X-Forwarded-Encrypted: i=1; AJvYcCUG8y/mNj/h1YbSOcmB69OcJH84MoyjscxNdofSeWhOky1VqlrbyCfR/fZd9QzrGCFOXpyv8NorhbFpCEJ1LiNRhmGez6SafS1kIqiq X-Gm-Message-State: AOJu0YwFoD0NTjecfPH3SS8sgSdbF2qWD3QhLyYWUehTcEdXsS/Wh2jd yV+1xc+dTnv8wiyDKOvED+0QsXAssrHc9mmKc9+1JzA9oS062H9B0X8qEjnRtH0= X-Received: by 2002:a17:90a:a50c:b0:2af:893a:4962 with SMTP id a12-20020a17090aa50c00b002af893a4962mr1313308pjq.10.1714094657911; Thu, 25 Apr 2024 18:24:17 -0700 (PDT) Received: from ASUSLaptop-X513EAN.. ([2804:14c:81:903a:9968:e871:2529:9bcd]) by smtp.gmail.com with ESMTPSA id p8-20020a17090a930800b002a513cc466esm15294305pjo.45.2024.04.25.18.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:24:17 -0700 (PDT) From: Gustavo X-Google-Original-From: Gustavo To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org Cc: Gustavo , 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: Thu, 25 Apr 2024 22:23:11 -0300 Message-Id: <20240426012313.2295067-2-gustavenrique01@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240426012313.2295067-1-gustavenrique01@gmail.com> References: <20240426012313.2295067-1-gustavenrique01@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Prefer 'unsigned int' instead of bare use of 'unsigned' declarations to to improve code readbility. Co-developed-by: Bruna Lopes Signed-off-by: Bruna Lopes Signed-off-by: Gustavo --- 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