From patchwork Sun Apr 28 19:43:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13646097 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (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 B88D574BEF for ; Sun, 28 Apr 2024 19:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333450; cv=none; b=SS7Z493rAzYnTtmNpZCCcKVKVDrlRWJQP4MZ/neb324+UqvGvQLaX2+qryi9DDCFbW3krl7GqWIwasTtI+uVEJF27eH6BkRByHHX6e/qEzz9CRjMSEvEHE+vtpB9zj7IzDbhe9AKT1keEOLgxX4tLAcU+u0yGaC9Zmb02mDH2Fk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333450; c=relaxed/simple; bh=DqWJXZc22bMbhLDJy3EvCTZBjymTMxLye39RhiRxrow=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lb+7LQy19+txgLqqDNIqya6glXyR5GNve4EnSyVKkEuujB3eeIgaphHIqUKlMWwyCukzijHQAdj4BGj7mvlHJimb2kSegaFLgwn0T98RFZUEkJ3gPubUbMRCxLIMZlADDfhshsbLCD5qG3hL2ipUEw3fiJco5IC3XADqMyDIguk= 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.174 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="hU/7ZS2T" Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-5ce2aada130so2595571a12.1 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=F5IL0i/k8lLGhiK2hf10qViwiLcx2lbToPPqYjO/MnW5WpNKC6TGC9EYrIffjqGG+r dMy+3aUvyHYjhL2+uOg6RGQ+cU98PEAE+togedYPExV6X6kswoliYuZAnp403BizGCxS jrTKUaWFO067C7R8QrfGu8RvTSU4z0ks8Oi5iuYo0vAffm7rkoAY76hoGoyHofGTo8fl 9brb6midJP0CbRkGe/rRTMPChlWyg00GJq1rKkiJy+qpW1hZ7rgPBdzTS02T/6QBlLiq L++d9b1Syhzvnl2xnXUOuIVObRY74U57HbjzNYrtNArYtI/57JKuRo447vY3GDu4i2hr BuHA== X-Forwarded-Encrypted: i=1; AJvYcCVc6ju/M6Bv3/21ACHnY3ekhad11XoC0LfqMyXr8LFiGNHfXyrivRMdy/2mN/ULhse0qeXy/31BH9aRkrYn2CGo7kyez0B8Smnt X-Gm-Message-State: AOJu0Yz0PEokSbWbcAXw9D6oaXNP+ujOGtbO/PEd2/GXxohyfkav/Jex VsW7lD2S7MRK2VtWdt7dGmjiqTixQNIKVAEEomMg9CTDJIInmPN0l0fa5dGNEhs= X-Google-Smtp-Source: AGHT+IHR308ZaGEspAqgP81t4VcZnbrHzQuAvq2kTrqo5fl5Ooc3oS+Xs8YEpIAd9Z+hKeDIfW6QTQ== 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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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; From patchwork Sun Apr 28 19:43:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13646098 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.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 D9A94745E4 for ; Sun, 28 Apr 2024 19:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333458; cv=none; b=i6IoC6mxJv5G1xEL6PCN62eSBUpm9UbaGHZ7InW7sWId0zKAglkAQQs/swXps8pZsDt3Kb1iB/B9RCUn0RV7g6CAJzIVTaRuTjD1fUpUy5TLSBAgYHieXmDF1eL/BRuLvOF5bYZ6ysRie9mJi/PnftjfKdxIjVG0O2Pd/j9g6Z8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333458; c=relaxed/simple; bh=811te4jalqhlAcpMRzxMNmHHpuACJOxE+5yG5CZ5VKw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RbGJJF8c9XvBA01qsV0IDIK8WQbdOtnK0lH3RCIjyn2PeNFvTt0lJTDenh2VFY2Qz+dqplKrCjMwo4rQfMWtRrIrBoEk+L0gLxBh00uhB0BtxUyV9klrr9U40RWisZW+TbpdOTgArellsNrbJ8d3emocJZVrQkHM7iYo/UgU6hg= 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=REZZLWVJ; arc=none smtp.client-ip=209.85.214.177 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="REZZLWVJ" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e36b7e7dd2so31608885ad.1 for ; Sun, 28 Apr 2024 12:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714333455; x=1714938255; 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=95Ext5T8XeQ4NwII5w6xxgHcQxHIGHc3RjuE+Z3fol0=; b=REZZLWVJ/iNIr8HJhPc4KfxnGu+nNcsdkxi9mi4UIINDYwbrQwm8X5f+goo6pXCM3X vLfk6eFG4m5/qfpkQbuP+/pxKOvFhdIw1O/IMH0NSbbg34CDwx7JGqFVQ2P3hwzRdpkP +ppsArfi5YM+C1v7Hur2Vfq6vqzkFvE46SXxIF517NklY/THTPfPXSH0tKStjPP3Im3F ogfdWloq7rSiaPSLouO53/eZaVgFGN/we3cpycedCozVoH4t3OP5rXJIY5b/iZAJbayi NwvZbOCcqZbl5NXlnR+H1MS3Vw5wt3FkzdSbde8JRC3o+JLS8mkmCTD0F0a2hDRQFr5U OKfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714333455; x=1714938255; 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=95Ext5T8XeQ4NwII5w6xxgHcQxHIGHc3RjuE+Z3fol0=; b=YHAtZvULtwgJ+mp/WdySuf33QZyX0RmHGjfHDIvKHpBeKz+4lZ8Ikch8IBFciFbA3e /I7Bo32oheumS/nC1gtTcTZQWs6elO5sDH8QkAD9xMG/MAQ48HWUJkCetyKiBfV0l4Us 0o0pZbOCokQJZgUKAKUGmVQhx2+nZ2edtL3KbNCilqTcMfSNkd1w+LWkDYsKnVmACAvB 33f8+716Wu1X4WOhVTHvP91PYnhWm1a/1TvMIhjYdfn88MV36ofo2aW9AJlNjRXQgntH usMSOuTozvjvriamaDLDfttlj2IyZe1Lp6YFtvbI71iTFHk9VnS0gsBqn7r5T2aDDdcw 9PGw== X-Forwarded-Encrypted: i=1; AJvYcCWCrb8HUJnDZVd8+500w3SfKFM0CnUqO6yp8facu5inh/noa84WJ6LzzMDCVwRc4Awg/kuJ7sZ8UH3HYYAIIgVeTiycZEYHsRg4 X-Gm-Message-State: AOJu0YwMZjr4fv2e8NpWlZClBXsy6v82ZHRHupIpEl9dtdzPJ7cGqzpt wm4JtqEV5AvvQOrUaLnLdAScFF2KiQioV6bQKXZtBUhIjqFMYfQBldr7Pw0+MSA= X-Google-Smtp-Source: AGHT+IF8Gb3FbhJMc1opjcNmveeXitx/Funeb+MbXTQSZdluh/oI6MXbOmXjE05lUB2Ak4sJrltR9A== X-Received: by 2002:a17:902:684d:b0:1eb:3d24:3fc3 with SMTP id f13-20020a170902684d00b001eb3d243fc3mr5074584pln.47.1714333455216; Sun, 28 Apr 2024 12:44:15 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 12:44:14 -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 2/3] iio: adc: ad799x: add blank line to avoid warning messages Date: Sun, 28 Apr 2024 16:43:25 -0300 Message-Id: <20240428194326.2836387-3-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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Gustavo Rodrigues Add a blank line before if statement to avoid 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 | 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 Sun Apr 28 19:43:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo X-Patchwork-Id: 13646099 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.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 430D7745C2 for ; Sun, 28 Apr 2024 19:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333463; cv=none; b=c45fvZ5MKFB0z/2kvRn7w/Trh563G+pH1yw1BFY1av7jdntpZghk8z84C7sZEaGzRs/axabqaG9nDNggPwql8flzxQMEFItFiHbxVrZ5bouHOIMqSs7ivMAiWbJOw7V/3i4hPKRq+y7yk4C1hxSQJ+9uheij9+bjY5wc64mbnn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714333463; c=relaxed/simple; bh=zS4AnXDB56TofFf+N5bD9jOi5VXP4GDvHtyvSbjX1cE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CVxjj1p+RRvVjPRPXa8DKuVF6bxS+EVtbAU8doOVvWQpWDVWEThAiikVgfxdhqNW2MdXpXupUcOVuUGKQwnraWu0dWOGjhVAtvc1nkQawycyaa2AMklhu7GxwKJZQs3t07XDTI6DFeJR1MCBzp8ocVD7tEKRC2+6UJvTU0UtBk4= 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=wYuP1pvI; arc=none smtp.client-ip=209.85.214.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="wYuP1pvI" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1e4c4fb6af3so25646675ad.0 for ; Sun, 28 Apr 2024 12:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1714333461; x=1714938261; 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=+ABjwBx02udN5kYF+DG5k19J/UsOSoScqfXThrVpOhI=; b=wYuP1pvIj4PQUuoddb1BiVK5jKf60pUY5xQv35eZbateorfTCTdPbEwchiONnAjbuP DlHrLOeqGxlbioKQ8tVP6WtQNl61aztk5dfB6VrFBe9HR79d4ed/OT7wBo2YX4kVfnmP YgUQveDgf4dWFCQs0bsh1Zoj+iplG0jDZQwixTUWBpZHVaLoY0n4IATaVNqkNnNHVEFd X81AiW7nq0VE6SHa5xMn6PmV09aaDp4/CjEibVglUszM8LT3rsN3UgalupFoKiEeec6n bV6BKl8A1uppsuz+ikAHI8dKIqVnxVfpmucvylziLlQI+qRVvHLWIuNPUlTNAV1JgZE6 x7Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714333461; x=1714938261; 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=+ABjwBx02udN5kYF+DG5k19J/UsOSoScqfXThrVpOhI=; b=XF2xuuob9hTU+EKIKRr02VKJOF5hzzHITPRMMais8+t28k6ZZHgFEpamqboosmgbos p18UQEI46c+4MseM9MtJXbTTeTQGSnhAR2xLtezichxA9jalSik2R4CG/X+CrpCpOX8y v76gXZbxNSeQiQg4qdA/NnOWUpvOl6hAQZDvQknIO2jQFRCqvzxtbP6I3im/gQ9hwsRU NNyda+/+3/E0C88UNMNGskvtlO3J0+UGqGPFgUqSgFMrrtBhYAztjZ/uLXN/WSNSUQSB k3KEFr1encyBR0FRA5xkj1ZnvswgSDq61XcxBTb2hrL3t6Q2Wj8lxRkTIn2zxMilxjfb RyDw== X-Forwarded-Encrypted: i=1; AJvYcCVypNwU5iai7O+MOPpHHViH4TfIgNlBwiWEo2bx83jTZhClCz5Bnz6wRIbfjweNS2NstB/W3C+uGL+Mw/DxZaChoicKj8qFIcnX X-Gm-Message-State: AOJu0YxvihgPaEShtT2dk+mfeDe3fH045mOpRlLYhYrWgPCwowOL/kmS DGv6Qimocw6PwXcn7AvaX/hiQ3XiOiHym5/U9/DQz+5kXEL64FiyPJxhbac6CLg= X-Google-Smtp-Source: AGHT+IHN7fVBjs1dCCI0J5AyCaBYr3UpWc7xNEBjnoK+wy0S2i1lnqBxYpDA2nrlp1Vrr7RgpoRaHw== X-Received: by 2002:a17:903:32c7:b0:1e8:682b:7f67 with SMTP id i7-20020a17090332c700b001e8682b7f67mr11057040plr.29.1714333461475; Sun, 28 Apr 2024 12:44:21 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 12:44:20 -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 3/3] iio: adc: ad799x: Prefer to use octal permission Date: Sun, 28 Apr 2024 16:43:26 -0300 Message-Id: <20240428194326.2836387-4-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-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Gustavo Rodrigues Octal permissions are preferred over the symbolics ones for readbility. This ceases warning message pointed by checkpatch. Co-developed-by: Bruna Lopes Signed-off-by: Bruna Lopes Signed-off-by: Gustavo Rodrigues --- 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");