Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2048297rdh; Sat, 25 Nov 2023 11:23:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/4nV/ql2GPYYFP5Gz49VvjvAvJrx+HkbfYFCYrdeD7UdhG/FHfMlCAUnMyQAdZbTgRAid X-Received: by 2002:a17:90b:3b51:b0:285:b906:a3d3 with SMTP id ot17-20020a17090b3b5100b00285b906a3d3mr118085pjb.2.1700940189013; Sat, 25 Nov 2023 11:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700940189; cv=none; d=google.com; s=arc-20160816; b=peiIYE4t1nUPP+xgNYZ3VHCJ/HOyMCoG4eXwMvexkwwekhh9gn88xqEXKaKNyeOFfC BcYjkkBApDlVc5r6mwHXTRV8FOqugVqjHUVaWJKhzJDF87TU1819PZhqrlWI4Tm6IIAS +QuVsn6JWqMZbtnxZM7CoTITISkYp7pveveYoFjtOlyZhZytyLtOWZhxyA1j0mTeluop x2PU+ogYcNUjnweDnUybKntMNTBHkXs40FtWxt3SbFMfl7xb43wL0u//2tFNSozDyxMs snKDnZnCSTqZXb4r2MdBwChvqvWqDVz6M4qSbUmnsLEZWpm7C/GVDpKUNZsu0LF3+Gsf vZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qELQIm7pWOoeww1/zriiylpM72DDJVtmoXT1quEoKVk=; fh=bm7LTCfNjhVXYCJQYzwNgoWJ61x9nQGAEDwqdMm2+Xs=; b=kPVj4Zg6BOISAePhvpmv4bOH8x+fpkVlXEhHyjTI5XXW9fa/DUXQ/vizMAnTe4PB1Q /Uj+4SVHjuqi3F15wp7GI5tnk4uwfUBlfqFGcRALtGdERgAt0Zcj+EOGqJ/As9V9sG0p d28LhH05amZtFtO/Frbp/itjEx5yE7L9shPOSoiT67NOSJezYOSld2jKLZE+6ykozerB 5dUU6U3BHa03VKv3tOswk4Ft74Yy484QEiN2HfjQfeTx3OuAambHdZf1hTCtUiewQVVA SQAoSbR6r4nnstbEUgS2YwUtlZ24hC1mYu4ZESnPr/M1VPb8BWSCURBndftL1D32x9tF c9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kAcXS0gi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i1-20020a17090a974100b002859aae3eaasi3069001pjw.66.2023.11.25.11.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:23:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kAcXS0gi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CFDE9807F64E; Sat, 25 Nov 2023 11:23:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjKYTWt (ORCPT + 99 others); Sat, 25 Nov 2023 14:22:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjKYTWs (ORCPT ); Sat, 25 Nov 2023 14:22:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9A4115 for ; Sat, 25 Nov 2023 11:22:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 184D8C433C7; Sat, 25 Nov 2023 19:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700940174; bh=SKH8DpdKj2rUFQzT6NaFG0MvPM8ey9Lp6jvp8mfmNt8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kAcXS0gijUWwsyAkYhFTYk3IyT3L30FzvVwLVAbdpkVWSfrAShs+MswkQGhTzLhow 8/zPfrEEHCg89D2Io9VzMmALp10Z171dDm5Ir82pf6HrTHvQf0g0rb6Vm3LU4Dj0Y9 b60EObeKDi9mSm1ZY5TSGmG38DN6nNWkOaEgqPC04tDmH4jZjq3sVAcjvNnXDa9xi2 e6iazidswkRR/vSEAJC671fGBCKVZCdJ6dkJJ59K9TPG2WJ5PCAizOpZAeCV/JFgSq 84VPKMJinzR8uIrW+yM4xYY4pIxndda/51K7Ac3TfyLd3Ggrybqsz9E3jNchgKgCIN b+Ms/ibjNhXsg== Date: Sat, 25 Nov 2023 19:22:49 +0000 From: Jonathan Cameron To: Cc: , , , , Subject: Re: [PATCH v1] iio: adc: MCP3564: fix hardware identification logic Message-ID: <20231125192249.2ed29b08@jic23-huawei> In-Reply-To: <20231122111106.45288-1-marius.cristea@microchip.com> References: <20231122111106.45288-1-marius.cristea@microchip.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 11:23:06 -0800 (PST) On Wed, 22 Nov 2023 13:11:06 +0200 wrote: > From: Marius Cristea > > In mcp3564_config() fix the hardware identification logic > based on the hardware ID registers. Second part of the code was > disabled by an logic error. > Fix a typo related to the "MODULE_DESCRIPTION". > > Signed-off-by: Marius Cristea Fixes tag? > --- > drivers/iio/adc/mcp3564.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/adc/mcp3564.c b/drivers/iio/adc/mcp3564.c > index e3f1de5fcc5a..e914a885a868 100644 > --- a/drivers/iio/adc/mcp3564.c > +++ b/drivers/iio/adc/mcp3564.c > @@ -1122,7 +1122,7 @@ static int mcp3564_config(struct iio_dev *indio_dev) > enum mcp3564_ids ids; > int ret = 0; > unsigned int tmp = 0x01; > - bool err = true; > + bool err = false; > > /* > * The address is set on a per-device basis by fuses in the factory, > @@ -1509,5 +1509,5 @@ static struct spi_driver mcp3564_driver = { > module_spi_driver(mcp3564_driver); > > MODULE_AUTHOR("Marius Cristea "); > -MODULE_DESCRIPTION("Microchip MCP346x/MCP346xR and MCP356x/MCP346xR ADCs"); > +MODULE_DESCRIPTION("Microchip MCP346x/MCP346xR and MCP356x/MCP356xR ADCs"); > MODULE_LICENSE("GPL v2"); > > base-commit: 6543f376ec8aa90a6c1ed44b765f4f0d6c3eb1db