Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2718771rdb; Mon, 4 Dec 2023 05:55:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/bm9aWxd2KQnkXKGjq5l+OnAomAakhl2zzvzejEgNFzQbwwKtTGNtsSvfBwd748HTprtF X-Received: by 2002:a17:90a:8c02:b0:286:6cd8:ef15 with SMTP id a2-20020a17090a8c0200b002866cd8ef15mr4841023pjo.45.1701698100164; Mon, 04 Dec 2023 05:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701698100; cv=none; d=google.com; s=arc-20160816; b=pLEQiloK5KMkw/qoZw9HYjW/8gZpWmVeMTtxK3bUlcQfRnne5LUC5xTIiJ9M2bnXWm ljr86mFucIJ2+EeV0h9SU6FOXG7XoJ+gfi9nwhz8j9diP78EGCaS1X5epm+gb191YmfU jRuXZ5lKM8vS0GVS+KWswHQY8E2cHrkfDUGLknzghbwfYqPaaKesa53lviJm2f92RV7V n7/EJLAJU35CIERM31gvfvsYuTWCMkoDHzOCXhazOgqm1i/7HxLnZRuoySx1VTCdDa0o /f4fstnfNl0TIBUOR+QtzNCmXpcXgzz3/yau7YQrPUJqTSWrS41MDhq0Ngi+sRVpyEiL lRrQ== 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=JbXFFtrLDHMNrHo3gSZSf0sQdHnSmmuN6Yk8urWaqgo=; fh=bm7LTCfNjhVXYCJQYzwNgoWJ61x9nQGAEDwqdMm2+Xs=; b=vnaj7tbXiypRBqk5AuZ5EVudgTzksNTUBJ4ox1M+bMsWqCQVARyqyHh6Kfn2dKCoaC eyxn1OGORO5y6Icu0OV/87dIWATRlb3zR1OZH4bR0igwJtaa0jXEUhXQ+RKZCaj2U8fb FcHGlsq3rv/YUXgemKbbCZ1BxkqXWYhpq/2rVk8M53zVR2qUWLxPyNizrK7SriGGsPq5 i+WHgKtpHFrV3shiEIHfefzvlE8RmkHtVMYhcClfKXb8MAyL0X79d+VHsrgkDmm1Os3M uaCxzdGJW3S/nAV93cMMMcGoP7sgCQd/PoVR913xPDwH71nffodZIxAE0k8NNWLCdiHc 9mlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N9Jvulx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id rm14-20020a17090b3ece00b00285a3fa637csi671023pjb.3.2023.12.04.05.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N9Jvulx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id CF3D58057E13; Mon, 4 Dec 2023 05:54:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344599AbjLDNyi (ORCPT + 99 others); Mon, 4 Dec 2023 08:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235718AbjLDNye (ORCPT ); Mon, 4 Dec 2023 08:54:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 203191A1 for ; Mon, 4 Dec 2023 05:54:37 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07BB4C433C7; Mon, 4 Dec 2023 13:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701698076; bh=Yt42qsEglskrxT0sttipdDbX/oRzAJS4t3qsL4MIXac=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=N9Jvulx4+op58wlpRaJzIAuECstRCWjq/nxT0DeBL9bRqlLJ2fssUrqoAro3wHkp+ UAVCyq1xy1g2tg9im3QNoJEXQ4wREkbzNcYHoS6ki7eI/KhGaAsfVbbg4qh23igNI5 hBskAtgsVPyHUSQcw/Zv5LPHkGyKcJl4kx4W7S1O9KRs8AFgcPnW80EXkh1N7OZiiK iNEPmY0gqEuyZHfH4Zq54y+ni9XgnP+EfeVUj3zeElsCWktr3GFvCrWO7JxUADi4Na mWwvY3A0IYSMd1ty9KoWCuyNYO1ybmiWQIDA6y2d9tO5lDYBEbFwkEAvH3v+OBWIo/ WH4woiVcNIqDw== Date: Mon, 4 Dec 2023 13:54:30 +0000 From: Jonathan Cameron To: Cc: , , , , Subject: Re: [PATCH v2] iio: adc: MCP3564: fix hardware identification logic Message-ID: <20231204135430.603709a9@jic23-huawei> In-Reply-To: <20231129135619.63475-1-marius.cristea@microchip.com> References: <20231129135619.63475-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:54:55 -0800 (PST) On Wed, 29 Nov 2023 15:56:19 +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". > > Fixes: 33ec3e5fc1ea (iio: adc: adding support for MCP3564 ADC) > Signed-off-by: Marius Cristea Applied to the fixes-togreg branch of iio.git. Thanks, Jonathan > --- > 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