From nobody Sun May 19 13:14:41 2024 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 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-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-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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; =20 u8 *rx_buf; @@ -253,7 +253,7 @@ static int ad799x_update_scan_mode(struct iio_dev *indi= o_dev, } } =20 -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; =20 --=20 2.34.1 From nobody Sun May 19 13:14:41 2024 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 2C8614687 for ; Fri, 26 Apr 2024 01:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094670; cv=none; b=Wrkywx48qzv47IRzfzTxok2C0UumBAO2Ai5ngnkooYLLpoedCFlvrbiA2gH/wW6ZiJ/hR3OIHvsffmPJLbws4tpguuZQbtshHjOrq9hiTvEuMsL2dceBEEQGwW5wj9DIrGx842seZdZtIo8Jt+LMEBp35gCi3qKH6ZNiZ8qEL4U= 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.216.53 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-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2a2d248a2e1so2037159a91.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=M93vyWoEOz+S07Nm9fPd6pbv5fWyPLa4pk5UcwxgFtP5MYQVRlzvXBSffe6XZU2u60 UaSDnOD1VMa9cjc+DXzfLZ3ddDITmYfvvq6iwVzROL8ZdhBPZP0XolubeLS/u8YRl0i4 VT7jUgHIzeUaNTMckD12whqu66AkGRZ8/S/pMJwraiteMlYtPlGwjSXsNJYPtJVDkTzz dbEjh4me1enYgC0Ha5mAQK1lYdm7URIqr2GSpOtSglwvDRxzHlQn5iOQi+2LnMBCBo7S MKwsW2iUAUpGbN+sWUS43pXykEwuqjFyEO74C6IssjvAuP/CKhGQzPcN+Gpz34GwV8YM ChOA== X-Forwarded-Encrypted: i=1; AJvYcCV0FKDwO8DcZVWC4PmGui5KGjypCuGcHZIk+I6QcEVjJIQMNRLU/ojqQotOxiFqLv1K/IjCb9bqXRBfqBqvDiEtXnwnMEf3NYR5veQw X-Gm-Message-State: AOJu0Yw5yNfXnEMUfwZB54r8rBjBvtPL3BPgzyKxcvkuaa5utf9vbV+4 OUMRm671hFs5WfNPcOOGqjqDjz5b//MoMJlL9DfRrhpGuAbJbDH3GuE26hphE6M= 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 =3D iio_priv(indio_dev); =20 int ret =3D i2c_smbus_read_byte_data(st->client, AD7998_CYCLE_TMR_REG); + if (ret < 0) return ret; =20 --=20 2.34.1 From nobody Sun May 19 13:14:41 2024 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 9DEFD46B8 for ; Fri, 26 Apr 2024 01:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094676; cv=none; b=HeqL+Xw7DvSJRvzuLRFgzThbDe8mmpaDZVb7c/ZEazXrqOelcqTUUWxhOETAsWRXD7afJ42zXH/yZa6j8FLyOfi+llxXt8nc7IYM7jf0a2anfSkrl2nAFr1628W7HKC8tIOQ2lROQXDumZ2Pe37YYQtbN6fO1/9uig0fVX3rFps= 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.182 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-f182.google.com with SMTP id d2e1a72fcca58-6ed691fb83eso1407858b3a.1 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=XIKcjA46/fSfgLVwjMtyKLWEw4XDuxpO20/ewb50lfXdLELxJs1T+rntOpiBZefDUm WG2g/EN2aVpebxKBtf4nDGIGi57lghTfWAbBk1cBprxJWLfACxY6klDD8xbrBSCMwlYP 30A1pDQoSjZEjps4Y8uDfgz+BJSidciPXmSpDhXWSVsreFt8q9qHIy80IPTFCB/dQ8DC Kb+TlO7judzlyJJ6rvfAJT+RcETCkU21J5FKmj0Hp475/YdQwzsd3OXJtpJ8ykytmME3 +fUSQpS0Xadk2Au3xEha0hQ+T67bEPC6V2ZpzAewJDBkJ33fKaxnn/46L+IVZ7Fj/UXW 8wTQ== X-Forwarded-Encrypted: i=1; AJvYcCVmDJ+ncpF27Gf3PP3XRtBvgjkSjLjUFHSxBq/KMPuLOCa52R15abMOAlAfoc8pTrMjC1vMLOXZfGRGR1pOxJfJGI822pLsh1JmjAV8 X-Gm-Message-State: AOJu0YzsmUpMLGt5TZ33E0KqW2C53hcoEwwJZ9XhEiS8sDVdeNHum1pI PXX7wNq/D68XRm2HnrbJdd1sWE9B94rPN9syOchpvvKZLfN9AG3yIbTkwYfPdoM= 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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; } =20 -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"= ); --=20 2.34.1