From patchwork Fri Apr 26 01:23:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13644058 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 82669184F for ; Fri, 26 Apr 2024 01:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094660; cv=none; b=WSAVMIza4wWVL3+KPfMZUmEFHOAQPwWKY/2vtYXM2hTS8SSevBMFCMaiqgQcV2P7W9mVTP0DQCS8rxYJ9Gv7X3inup2cebV/+/gr9Wm69t+AgAcnjkZ6q4iOPjjPXXkTaJUMfXFAo5LQFpJ7IJOlsoD7g2K/uHNPsUrhK6LxY30= 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.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b="qohgE+dZ" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2af800ff18dso1399475a91.1 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=HKcfGS8pONO1erqt7Sg7Mo/VZLRJYTu3lZWtHZVNUN/VFW6UphiZAgmrEQxk+iAsMi 8kC6d4nXBQPfcmIV9tbVU93suMadkLGjfE+BjSLcZ478gyCPpobDsQDycvGRk1gZio8N AWndim56GVGhd3Q/efMOCZQe3gTrVKwwZyVa9HeNtcFLy98ZK+BU6wjuIH7onpHOYpwr HHGI+ANjKmrlznf0xJ8j6zM9McHYEZFFMggYldo1DzysA+Q6jlCgyzlIN43vdWeTkb27 f04bs9uOjiI/v80esPDDs9FSmoLrxEnlIGurzQdIUPE5L8WO5Sjjst8cwZXqb/mYUpg5 lNoA== X-Forwarded-Encrypted: i=1; AJvYcCVdbxTfo3J7evqiR4E/oFEC5jcT3z/4/nw3Yd5LEcYPCRpxIlIBGC678qX2q6RIuOmPiBKSSRaJRraw9FW+xamdxLE2EpHk0qcG X-Gm-Message-State: AOJu0YwNZb2X1DsOW5wW6fzZxSv33GJBdN+XfpgZLbO9venDQhk+QTFX SDYr7xMIGNjYFQXcvtmCSw6OPTFa+PM7IdYp6BIAjKyzg6KQuVj25psKgi33yrY= X-Google-Smtp-Source: AGHT+IH/brXLbpspcT58oxUEUY0gzcfLVnFrX2PcsjzI336kgn1k36NMQPQvvQoYXnnJkDlqar5k6w== 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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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; From patchwork Fri Apr 26 01:23:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13644059 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 50AEF4690 for ; Fri, 26 Apr 2024 01:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094670; cv=none; b=NUh47D3k6DLCiMM9rKWPKfarp6el3nAGoZjMeyWfamDDerH1/Cjpmh6pwAfvmeOthruFAdj9oho6m4M177jnrHXPwzgSlE7QTAkgmO9J1A8ZYuWwNA8ADiDoGqLRrLk/WlP/8h/zeAyzPvAN9nC0Bm65uG5s/i0co6ySdhVqios= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094670; c=relaxed/simple; bh=q/7fscwlFLgp5jrvmnnjXvzPuaEUxIpvk1ZKeu+ONqU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d6xY/Nztw7gLAdxlCMKgOpsWdrJcdKJ/5/TwGDbH8/L6U3/pVZP8A5uzd0NWFiqxXP5sizIAztpc/Mn2hVpKIsZLYbeMloVXUEtjn68l/oIsDANeidcnqqNjvvBMxIGtDbeiIch4w9XSsGlF2j5Iqv9upnz8JLpR9wh8ZVYEx7o= 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=RldOkJOm; arc=none smtp.client-ip=209.85.215.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b="RldOkJOm" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5c66b093b86so2074774a12.0 for ; Thu, 25 Apr 2024 18:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714094668; x=1714699468; 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=tYAdh+c8F2t7nNzWd25A/VC4D8YRxuL3ztzKs2rZXhk=; b=RldOkJOmzdl5Y532oGZVWf1sbiYUse9jX/SUGF5Ct07Ia6Z/a4pmD179h2YH7yfEZN Ae4VvgsG/ZsTicBYVa/Q+Gyds5ZPTkcjwXdKdGON5KFX6SW/VQI58YaBItZmVC9r4trK mEtGg8lX22vMvl+MadcKjX/aojlZ7mPc+VvKbdM/TTcX0NL9LOXu38llZwXMJvmuk79O 7IG+yHqMdOOua1h/uOBO3cCIayqfLfQk4+1ZCF6yQmKc+juGQLDIsxkMKthc6tfMFe41 g0AkGbSlmwmdsPxOQz/qqnI3t4NpaNQK769d5dSU5pEMpGrW+4lzwgbMwMttFusSJgwN mWLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714094668; x=1714699468; 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=tYAdh+c8F2t7nNzWd25A/VC4D8YRxuL3ztzKs2rZXhk=; b=TDbfGep6pyL5pqhH/+NSIewaEpKdACj604nY4B5lqcdOXCb5uOOp6n6NZXbeUYKsDO 7qmxoOIvO64z7bLGZu1f0xuxXF6aYS0O/q1OOe/ERHiAUOyh7qfir0tpXvZwTgQw4YDZ tPilSaIswAfGoN+vMtmJ44NofMzN3PNLY8VxBgEB1WWGTGbRJy+y5sv9aI7d0LPgNwNh ZMpRneaxvgdIKNlIxkCsUaI8t6deX8/ZpYzOlKI4Y3y7JHjMuKk2JYmgWEYiLUunoEWl T1p10anTxAoIrzvr25m0TpmsBmJAbD98S4LoG4YxkOd4CqCu6Vp1wPtOAfxWYOFUqFBz EzuA== X-Forwarded-Encrypted: i=1; AJvYcCVyg5K8bF8hJN8vdJHgGe+U3itknJNUDxu1VvWuK1G0afcccWAsjpa7Q9rc4FhcGihlxnhLyQ0V0+m2J9droMq4YPwY4fqCchyt X-Gm-Message-State: AOJu0Yw4Vq9TIij9uhqW6lo4+cmVWe0tM+p0SDcvZc5f+TFJsvUoJ03P JUHIQQgYXRvvmieLcUFLAf9dPW1qrfYNS64AhnYqAwm9mEfzaz7H9xQw9YoFLU8= X-Google-Smtp-Source: AGHT+IG4bnGwW/InybqMozAWceD+UywATT7qn2q1BEh2yMu07q8sLO93WpTTyo9rc5pGGW39NLJ45Q== X-Received: by 2002:a17:90b:246:b0:2aa:cadb:d290 with SMTP id fz6-20020a17090b024600b002aacadbd290mr2120610pjb.13.1714094668477; Thu, 25 Apr 2024 18:24:28 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:24:28 -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 2/3] iio: adc: ad799x.c: add blank line to avoid warning messages Date: Thu, 25 Apr 2024 22:23:12 -0300 Message-Id: <20240426012313.2295067-3-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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a blank line before if statement to avoid warning messages. Co-developed-by: Bruna Lopes Signed-off-by: Bruna Lopes Signed-off-by: Gustavo --- drivers/iio/adc/ad799x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c index 3040575793a2..9a12e562c259 100644 --- a/drivers/iio/adc/ad799x.c +++ b/drivers/iio/adc/ad799x.c @@ -335,6 +335,7 @@ static ssize_t ad799x_read_frequency(struct device *dev, struct ad799x_state *st = iio_priv(indio_dev); int ret = i2c_smbus_read_byte_data(st->client, AD7998_CYCLE_TMR_REG); + if (ret < 0) return ret; From patchwork Fri Apr 26 01:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13644060 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.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 A08B64A2F for ; Fri, 26 Apr 2024 01:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094676; cv=none; b=VVYXHbvxmSvXfMKapjxyPiLvFUixh8Nq/txkh1De2n2FkUbY/tliVEuHeJdH+BNCVXqFLrGWKNF+PwzuDNmzNbrnTOnUunkW5qGvWTns9V8d/zzpU6XF8+eUbUKHeLcAhXaH2dg4uoF2jPKTOeTiqltsKMF/1PJSDMQieI+/ZZ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094676; c=relaxed/simple; bh=Itx0yXPcj6JT4FRoj2WykAooUqnzpUUVPQ07Z7qUrI4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jVOvUT9wCjp7DJi8Y0G70k8cGrUHzdPwolFEDiDct9Nh+qP0v+djbRPIEVSapYMy8Rt6BFJSFyjM8kAQnWHsvxTUIbhbaexEvh3vaAMhM+byCTfcR8+8fUfyLv/uszFkfFl2fLOiBSwvqvjGJfutX6aOXFre+THerObFdR/K//E= 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=B2MevCAf; arc=none smtp.client-ip=209.85.210.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=usp.br header.i=@usp.br header.b="B2MevCAf" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ed20fb620fso1472017b3a.2 for ; Thu, 25 Apr 2024 18:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714094674; x=1714699474; 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=iPmMI5xgMUW3sbiVqM7WG7BhjtO5f68c9xpa9VaPLRo=; b=B2MevCAf+IV3eiZkpbOCVsNS+BShHP3RBvvzAWO7ZeDRbzTqwn6Th1uxGZqOuyL9Zb yk7n+XWIy0GUR0qmsbD9ttL1vOCkdWgFF9+au9emtR3zWMLzd2f4PHvbbI2RgqCOD+Vg v9MdWoAd1edV7dXbxqqIBdXj2dUUXUjGaJXmDVTvXGfwCZwUD9Rgp5nUhauCDMW9vPlR 9z6Dzzuq1OgPS95e0f5TRpH+2sYlfj0oHZLY6LnqJTyt1NkGVlDNnREVfJgluEazmhbW UMkjGRfM3y0PiPi0d+DU02BUn7PjWHbTOSQ70hBuXRm2YkSA3v2ngBpsCTUuHrzkZLkF XJ5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714094674; x=1714699474; 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=iPmMI5xgMUW3sbiVqM7WG7BhjtO5f68c9xpa9VaPLRo=; b=f3vb3XQBpe0VmG50KN74b307pVvTVhL2Z5dsb1p+gLhXBXtdcP3o+DTiGjyw1oBi4d tf448GDOndnsxdt+SqRYieMQsiuW2xaBB+uRhuikrpDMAnELBc9igdQGiKAQD12EDVtW gq6AQImj/S2GyzI2ZbE2OYfgpaBTLpExSv5TZEdCsQKzIqF0huPtbb/cGdFM8GiLIOM2 YkUwqo4RUlqksgdYBudzDcaymozNzF/pqgss6V4MwpOXUcaaWeiA6SX7aaaoEDTq+3tA hlVyOjea61j97h/QxRnwIFd/c8TDcJwg8KGytjCfvYr+k/ZZXlzr9IV0s1X/HHwwHwH0 /X0w== X-Forwarded-Encrypted: i=1; AJvYcCXyQJVK8mlAUjc1Lwy0JaqcD7awd4VCRBPAxoX1TlxykXBkPm+kM0J4GuDCshNuCxVKJpgNeh27GbJrRdvLikIwVHMD+thownkV X-Gm-Message-State: AOJu0YxD8F+gbemBOU41AFwMNuB8qqNMsKMO80rhLRzHjfsTSopYsf4N XIxYGL3lWtX/a93Coj2Ewjdde4APh7Clpsff3ufNlR6+GeRR26XmXAsUDrgpJHs= X-Google-Smtp-Source: AGHT+IHmuERcpLua4dtmvB6rwiATxB+WN5ONxq86RoozsM7H/k9MotlC/y6I8BMnjyviQRWo6SlUsA== X-Received: by 2002:a05:6a21:7885:b0:1a9:6c18:7e96 with SMTP id bf5-20020a056a21788500b001a96c187e96mr1813700pzc.19.1714094673946; Thu, 25 Apr 2024 18:24:33 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:24:33 -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 3/3] iio: adc: ad799x: Prefer to use octal permission instead of symbolic Date: Thu, 25 Apr 2024 22:23:13 -0300 Message-Id: <20240426012313.2295067-4-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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Octal permissions are preferred over the symbolics ones for readbility. Co-developed-by: Bruna Lopes Signed-off-by: Bruna Lopes Signed-off-by: Gustavo --- drivers/iio/adc/ad799x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c index 9a12e562c259..0f0dcd9ca6b6 100644 --- a/drivers/iio/adc/ad799x.c +++ b/drivers/iio/adc/ad799x.c @@ -524,7 +524,7 @@ static irqreturn_t ad799x_event_handler(int irq, void *private) return IRQ_HANDLED; } -static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO, +static IIO_DEV_ATTR_SAMP_FREQ(0644, ad799x_read_frequency, ad799x_write_frequency); static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("15625 7812 3906 1953 976 488 244 0");