Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp137523lqe; Thu, 4 Apr 2024 02:00:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7MkPabT0LAni9ygNRXWEa3wcWQeb+MQvxCFy2tzHWYmkCjGIdOfKCx1QPJiSTmn4j+idzuk8k9R56NO8MWcZNUhBKou+iB8ODnIeW+Q== X-Google-Smtp-Source: AGHT+IFFGeVCHiNXfQwNGdamf1e4XExFCjL/yBRYFf5aMR37i4BaV520T0wMmGFq4XxSwCiyj69f X-Received: by 2002:a05:620a:2491:b0:78b:ea82:5eb4 with SMTP id i17-20020a05620a249100b0078bea825eb4mr8087707qkn.25.1712221211485; Thu, 04 Apr 2024 02:00:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712221211; cv=pass; d=google.com; s=arc-20160816; b=S7tdTWQ9cSZzXqZ/bIXdWk79qAeMB3gqsPnJ4zWr3hWs+VRtMxE0KAxaeoNvai2mVe gcynssOnNmOqlxVCj06VXSbxfHDbZEs64LlkXFUYSpaMmvLMd5+9QbEVzKLBJORM96Nm enf3Fx+FEUOUPcIRzYQhqKWwcFuHSfoafY06hAnqADL+WlPGZPNi5n91i3OSTBf9W5cs HAh4oAdpkyr2qf8rzEXhsIhy9kuizlM4DDZjAb9DsQpZDxaH7PcWn+edcqYMnAVHw4yP ijHbPktY6PZq7dSXX7L0JAo3SpnhpAGZNhsuCgBlgczz7dY5zmV2E62d8QKFh8pV5nKD CPXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=OOhldulBQUILs95IIEuLjdbv/PRLLb7tYoW3G02BM1Q=; fh=vo6Jz4aPfuy2KMg5xkLbYVscGqkhGZbhRtPdR1hWBqM=; b=lLtVJrR7BbZsIc8gfhQgVJoiqZwhkCexYHpal/SW0WBZ4/TYZsaaqhZFYBmkfhCtH/ fkTzCXwJPRQ4Rn3xzrffm9HVU5eBeWuddolaB+scEbWGHyxYjdwdlylgymn4q7nAZap4 ALDvE952s85juk3foAMMKW/Q2EVNms4BSk5w/T5tT5ACowuo4tvwwMYKAq7tgiZ+Ojj8 STronQTGk1+GTkmNDHD0AyMgFYRylXVJEsJzlvDtnrD29q2EaJXJ6tyVxqd4pZy2K5ZE fYdLuhMRuGJNQdLYfJlB8D/zSqtaCYx8XZDgOW6vOZ4ISTWu5QoS1y7kaBaSPI4f0CFq eViA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fGxIBB6G; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v22-20020a05620a441600b0078d37db2d61si3590824qkp.362.2024.04.04.02.00.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 02:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131144-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=@gmail.com header.s=20230601 header.b=fGxIBB6G; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 124B61C21F49 for ; Thu, 4 Apr 2024 09:00:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 468AB74267; Thu, 4 Apr 2024 09:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fGxIBB6G" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 D6DEE3D96B; Thu, 4 Apr 2024 08:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712221201; cv=none; b=FHoJfDRJJkzMvvfs5Qc6FUuXF3OEryRf9zXc6+D0ia+cD2Yv7rHoJruhKhk6In1MYts0+pXPYp4kG2nj2Pq0i1R5ciDaauLNj40O7z81RNs2sGjNH7SESjM8z1CVDU5IlI+a49O5UlemPcgMXbR0uGHYE6YrcVUSYzyajnkSyjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712221201; c=relaxed/simple; bh=zFV67fOp03KxbIcwK8vP/lP0IGis8ozPjbOeUJBXnYQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=aVQnaCuXZs7QRNhrj8YozhoXq0oIAQTv9soXpTvbpfJp09+t+D/0FTDZ+Fd8sK6WLFdEOFnXiZM3jQuC7n1joohpejkkEcovzZmPWl1YIByRSJ4OybsmUTQYewguFqYZPNKkAmcg1vq64VC95hd/+te86HjXG+qgBZtFkY2N2/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fGxIBB6G; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-56e1bbdb362so651882a12.1; Thu, 04 Apr 2024 01:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712221198; x=1712825998; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=OOhldulBQUILs95IIEuLjdbv/PRLLb7tYoW3G02BM1Q=; b=fGxIBB6GwGSg3ORo18n22QSxykmpNuOSZRPpKYz+S/Zft55fOunJKt+v0uttlFNNsr D+dNelPqOphSF9H06bUWvTMdBw/bv3At/v7f4tUJml+krleLtDPHpVwd1MQ5sx281biK wZKxMpP/RSAjsEcJeeTtt2g/qBrXEXdDlhCcWdpWoSaLhNYvrlKiTGIVN4adnLQROgvn 8mKVkSlHgTFPhbZtSfynG0pgG1Envkh7KaablJ6U5C2YvG2dkbz3h3+3KkHDufBI/h7M 1kHibHUBt6VbSDJUyKzY3ktDy6nKrkzGfJvmniHQKyOFZUpnBUdCEsx3uPmu2mHnrvjO 5YRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712221198; x=1712825998; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OOhldulBQUILs95IIEuLjdbv/PRLLb7tYoW3G02BM1Q=; b=XB6TZs67WoGRh6I2o/ToxT97Ng1ENlDN0R1rB0qZmFcKwQeW9CBHy06/2mHVdPWz7u S3kq2tLOcB7VeEd4Hm6eQbjShsJo2J0U1xajSAMaRWT65dgr6xh2mNbEGJER/GNJ/Qcj GXQxGDpLHn26wX6GEaS2SJYiejmrRhUQINYir+prTYYmVeEjkbDD+ADlpjTAtRVXWnZG rIVANlBWBbqh8nwiUqYyhHwHNYHP3YDBK+Etnp3RH/shWweAoe1+Qp/B26DW07ggTtIt T60IqI86CHYZZlacejAdUGA93I+hvmOXhBFirEDNB2E91JjJaek+1ox/n6PlOgngLh6m 9c+A== X-Forwarded-Encrypted: i=1; AJvYcCWuW0RGgxM4JB2dyxNI8sxFx/g1N7l2hxx4yETdoK/HCe9tYqXgWpcWbfs9rfMtFxMZHl6/zXq2L9B4r3SgAmPSb8kaOatRbdRAiSahbsi3MrNc8mn7f04H6x4ptqh2kcTF8OU997v/sUaWUfzvipHDXW5T92Ib6A6ka7R+I9Q9X0WF+FGKFJfJ X-Gm-Message-State: AOJu0YzRbtCx0MYyMlMk27hZocZZHGh143l06eafpbybtV0zsSctPiL3 YdlnvfgA+UMTj5Yu3g7ovwncE+zxuQbk/+ZiUxoeRjdIqBLBAvXuT5A0zqShWxDv+Q== X-Received: by 2002:a17:906:2314:b0:a51:7a24:4de4 with SMTP id l20-20020a170906231400b00a517a244de4mr1422298eja.41.1712221197942; Thu, 04 Apr 2024 01:59:57 -0700 (PDT) Received: from ?IPv6:2003:f6:ef1b:2000:15d4:fc17:481e:8afe? (p200300f6ef1b200015d4fc17481e8afe.dip0.t-ipconnect.de. [2003:f6:ef1b:2000:15d4:fc17:481e:8afe]) by smtp.gmail.com with ESMTPSA id i25-20020a17090639d900b00a4df5e48d11sm8805509eje.72.2024.04.04.01.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:59:57 -0700 (PDT) Message-ID: <8faeeb203456ceb8c07c5f2a46f8a7b367f574e4.camel@gmail.com> Subject: Re: [PATCH] iio: adc: ad7173: Fix ! vs ~ typo in ad7173_sel_clk() From: Nuno =?ISO-8859-1?Q?S=E1?= To: Dan Carpenter , Dumitru Ceclan Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Michael Walle , Andy Shevchenko , Nuno Sa , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Date: Thu, 04 Apr 2024 11:03:29 +0200 In-Reply-To: <5401c681-c4aa-4fab-8c8c-8f0a379e2687@moroto.mountain> References: <5401c681-c4aa-4fab-8c8c-8f0a379e2687@moroto.mountain> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-04-04 at 10:31 +0300, Dan Carpenter wrote: > This was obviously supposed to be a bitwise negate instead of logical. >=20 > Fixes: 76a1e6a42802 ("iio: adc: ad7173: add AD7173 driver") > Signed-off-by: Dan Carpenter > --- Reviewed-by: Nuno Sa > =C2=A0drivers/iio/adc/ad7173.c | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/iio/adc/ad7173.c b/drivers/iio/adc/ad7173.c > index 4ff6ce46b02c..b1d6ea17ced3 100644 > --- a/drivers/iio/adc/ad7173.c > +++ b/drivers/iio/adc/ad7173.c > @@ -835,7 +835,7 @@ static unsigned long ad7173_sel_clk(struct ad7173_sta= te > *st, > =C2=A0{ > =C2=A0 int ret; > =C2=A0 > - st->adc_mode &=3D !AD7173_ADC_MODE_CLOCKSEL_MASK; > + st->adc_mode &=3D ~AD7173_ADC_MODE_CLOCKSEL_MASK; > =C2=A0 st->adc_mode |=3D FIELD_PREP(AD7173_ADC_MODE_CLOCKSEL_MASK, clk_se= l); > =C2=A0 ret =3D ad_sd_write_reg(&st->sd, AD7173_REG_ADC_MODE, 0x2, st- > >adc_mode); > =C2=A0