Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp473698lqe; Sat, 6 Apr 2024 08:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5zVjOZjW0vf9NkkXLY7AAft4TLR3OMuf1CLfB1xD+7lGZARVyAX/qSAE8YWHmBLOX0k6kONikTYv1wBMPy9IMtfT0FDLC3aseMv8IYA== X-Google-Smtp-Source: AGHT+IG7uULySSkYRdCUuRhSgga4UA2Suz8+brLodTi2XnHN05fmpPnTy7wFQsh9kzvuQMH8lQta X-Received: by 2002:a05:6358:7a93:b0:17f:87fc:e0cc with SMTP id f19-20020a0563587a9300b0017f87fce0ccmr4880377rwg.14.1712418284492; Sat, 06 Apr 2024 08:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712418284; cv=pass; d=google.com; s=arc-20160816; b=JQI5xQ7Nql3ZmFcE9yu6P6TJDOgELBhXfOUh+q/S3gpQYMGMHK2yWCwicCEGhGAsIS dmSsHhVOJiLYdW+KmGLmLy4sGZo5UUCR8ELTCjyS7dR01iTZn6lTyRYTkOamxmrCEDvw x3ft8Pk7qBTr1VFfByvN0KtjV4ajPqFr++fGhFqMbrYIDk5yQjCCFoFtsJAaP/N4h1WR NbEY/lU5nYMRRWUuFcL8ob+IfE9cAa9vElzmfVEcVV9klGe1/usnlmLikXkiHeD8kHiI kJ6qxSL5c9nqjAT3k0TBClV8zSS8uOCGc7xelA3FtmFvASmy+SKzeQENAzEqDLJb/QNY pJVw== 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 :subject:cc:to:from:date:dkim-signature; bh=Oi22AWL9AfCcy0lXSHSsCkB4D9QvbYdWz2+5+ZjGTDE=; fh=xZTzNNqoXrTwB6S2ksIboFeTO2R7q/heu1mSBMo7HnE=; b=lh0RObjAHXrkU62S9fgMHi2lKoI0eCC7lF8qTa/8wsxiufdthkx1+pvrrjd+92SZL4 iZVeAHA5kiXKhTT/MIk3iEoOZ/KP24CwBG7nVoAyBjKyXVOxP2SrGVT/4vNWgZyQsjr2 9Y504lhGKB+rU8kfUcRGBQeQsAVFU8UVCBe/cllYH5DHIFNxKxHTfNj9GN3pmLykPcY4 W/M+p1H3zKQKeQ5AFrb6JmwSr0njz2PXMGpcy1vyXazBGpmuiayPOyht1KBYQjEPj+tl kwFvv3aZ3H6cTbfVC3JxjNAiorRfIYC3mdxGSdvE/LeYchUsIO14qO4KGD+jsC/C4bsN 3r5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CwL/r5Bb"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id df5-20020a056214080500b0069949582ee0si2687166qvb.19.2024.04.06.08.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CwL/r5Bb"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 384C51C20C9F for ; Sat, 6 Apr 2024 15:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95CE93D965; Sat, 6 Apr 2024 15:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CwL/r5Bb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B31893BBF5; Sat, 6 Apr 2024 15:44:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418261; cv=none; b=OP8iGGEdwwrkAK6xmNGl4vUalQeT8thENeDgB13tZU9IzOMKStx19mtk3xLQginyenBr/p1OFvAtEeyTU3YnjhoTTwe9r33+/RdVaeXCXFT49R1D2GxAD+LgSUipYEzx02covP/AroLj6bqqhrsdAQudJ5KBW90Q920QF8uqh+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418261; c=relaxed/simple; bh=cfPeK7Hp3R/3MenKywmHbxce7oG/DzlPi6ojjQ+pcEs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uOvcSSPKT7QfNjW5gz+jjey39KM1pmL4M8syj/3YNycvoU2v54mxaVKQyiueYEfpG/Imo+HJlZj3gXxkF9MWlMw8T7f0clFOHJy1yaPLaf/0HJ1Cod2f72eAYa8J7i74r/tE8ejnyfU+/Pd7fLN3sCPHcR4Jz5mWIw0aTB86IHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CwL/r5Bb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DA39C433C7; Sat, 6 Apr 2024 15:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712418261; bh=cfPeK7Hp3R/3MenKywmHbxce7oG/DzlPi6ojjQ+pcEs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CwL/r5Bb93jve8UcA/FUGBf9XmlwiC1us46J4tJEvRIVT9NNcgaScCTMhCXfjcC20 CGrqByZ3V9uLFkFIcwSw1XrPFo54JxHE4dTQ0A4Zch6wasaFXEk0e+iks6ALcUP4wc U7NYNKQVl92wRO8oi9S44fAmS9bvyogfVv03eQSpsjuHMwqoGmeQToE6Z1OJn/WnLc jDSp2d5oSQSNd8UoDnhXC0K+n/FVbvBxesRzNjyUH/DdqEnad82l/F4RTHyGK+Y2R5 8pve9eANWz4Kn55Gj4QHpvWWfd5hMKrDdOgkLd7rRwtuVKgrVzHKkpqZxrJSuy3w9O VdwgPFAQfOibA== Date: Sat, 6 Apr 2024 16:44:07 +0100 From: Jonathan Cameron To: Nuno =?UTF-8?B?U8Oh?= Cc: Dan Carpenter , Dumitru Ceclan , Lars-Peter Clausen , Michael Hennerich , Michael Walle , Andy Shevchenko , Nuno Sa , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] iio: adc: ad7173: Fix ! vs ~ typo in ad7173_sel_clk() Message-ID: <20240406164407.48785a0f@jic23-huawei> In-Reply-To: <8faeeb203456ceb8c07c5f2a46f8a7b367f574e4.camel@gmail.com> References: <5401c681-c4aa-4fab-8c8c-8f0a379e2687@moroto.mountain> <8faeeb203456ceb8c07c5f2a46f8a7b367f574e4.camel@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 04 Apr 2024 11:03:29 +0200 Nuno S=C3=A1 wrote: > 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 > > --- =20 >=20 > Reviewed-by: Nuno Sa >=20 Applied. Thanks, > > =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_s= tate > > *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_= sel); > > =C2=A0 ret =3D ad_sd_write_reg(&st->sd, AD7173_REG_ADC_MODE, 0x2, st- = =20 > > >adc_mode); =20 > > =C2=A0 =20 >=20