Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp950467rwe; Wed, 31 Aug 2022 14:09:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4aykq8dUf2VfDDmDddcxvctbd1DPLs6R+13V35Ozp1xTX5ndmJ07gc2uZm8OPXL0aj53L6 X-Received: by 2002:a17:907:3e07:b0:741:7db9:eb74 with SMTP id hp7-20020a1709073e0700b007417db9eb74mr12263453ejc.83.1661980181048; Wed, 31 Aug 2022 14:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661980181; cv=none; d=google.com; s=arc-20160816; b=lLqM/CLQ/PsYgmOfnbKRMSL+r7R3fuRfW8cc2NMvQ0PR+kka3nGFezGHWNgPITbUo1 2faRjwOB97GoYVY72Gadf8Skpt4qMdTj0m/oA+81f57iKSyfiFptiQQf2XKQYdlYMxVz Tgrqe9IKQ6/E+Rqvm+zmBKXPKE6lGdsoKi7AwC+WD2LNvmoG5nJ3Wcp4bynApI4FjeDp zoTzvUCJjadCA+Jjmqw8aPYHzpQ2Wvt7sXzleN2H2AAwPe7H9egzbCXRSyKwUe0SvZrz LzACtS6mbM5qnycOIgkEy0rRG55bCmncQoiyrGTedWcOY31qH0Xv8YvdqQ5N3djlxDRD ylhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aMjCOGjnBUx54TRXPoHZ+EBmpoeeI1dfZnROfWg9ciQ=; b=HrVTL3n1wYb19lYDGL5JxY8JwDUNpBp5LSGMZp64A9/FULKIi+LWKvT2TJ3MlBr+s3 bYW7YPFQVFFcFLEBkHPeAzV0/E+IoZfGqNHilCKizwtmoqgm/bifuLc6Jh9tpFdmzSc4 MD+w0L2AbGzYvCG1puAh921PAAJpyPQGtOX1W5QHmEcJCgbx4HYKhziX9G/hajTr1o+t WBRU3y6oYK1mAk0cMepeTNE6CFdStNDBjEvvu4+4QXoveSy16LSLEGy/KYKmvU0AFq9/ EewQEbdSkC+O9H4RiCALizlloxlY3/JAmCVmTt5u3rnTFyUzmUqndjzx4z0CLBL2jL1q 4zJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QLLI9KcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb23-20020a170907961700b007418e87eea8si9248173ejc.770.2022.08.31.14.09.14; Wed, 31 Aug 2022 14:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QLLI9KcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231891AbiHaUWZ (ORCPT + 99 others); Wed, 31 Aug 2022 16:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiHaUWY (ORCPT ); Wed, 31 Aug 2022 16:22:24 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE4BD91E3; Wed, 31 Aug 2022 13:22:23 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id a15so11751380qko.4; Wed, 31 Aug 2022 13:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=aMjCOGjnBUx54TRXPoHZ+EBmpoeeI1dfZnROfWg9ciQ=; b=QLLI9KcJVZZBfr8hTLfqVotJeC1mqDmH4oTbWTFf0s9RlSKjRD2puasLTD0d5Kk689 MNnfgPoRgp1D4YdWxVaktZIvwKgRTcQZ4kF1cl/UXG6Csd6F0rKZYrvUBkJ7nmc9miLG 3roAfYiM87IEIZtGdGVKwvcewQCG7dmZ/LMpSohhuPFsJNjkebHYUfcQHYGr45mJF7Ba lVp8PselLF8Fzvq0LSEcvLvM3V63bHaXCKm6X6LInE6YNm9vJDwFjtzQ+FzYjUWZ4mpQ JaRMHEe5qpmW/7HSGS4Bu0pHiwAPuh9euPMMwurw8hqcOsAmCK9mMz1hH3fVL3f6ZH9H tx5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=aMjCOGjnBUx54TRXPoHZ+EBmpoeeI1dfZnROfWg9ciQ=; b=URHH5lCC3wLl6QBI1R/nTCcMV7n9aTrKiR78X0EDMKaYZU2jAuxkvUZIrP7hEgYYKe 0f3btPfXHV5atq0ATLrJxecP5PKbISaXy5syeenEoJ0fq5ZIzzcM1V85duX/7EivGACg eB4h7+k+CjXh6WsE3jcZSs1Kyjjzy7eXiiaQ8/6rl0zbZvSnEXfsf8INQEr94tknvZnr I3VT59eNIhkvHGQVEq5g1kmna7M1uNzRi81Okfsy6+bIzm70OjOT6n5pVAOcEhcv5Wy5 yy86QqsHTDOWgdnnyZOdH98JtDynh660KcOGoWQwaH+o4ajjXQkunmEyLnT4drs2eK1N uLww== X-Gm-Message-State: ACgBeo1pM5YhCIgoTRh/x9Z6j0W331tJtxmgxlw3n0obx5QDgp3Ubm/Q FYiAQqp/XNq9H84LysNdiNQOQ7d0xizJz7yomNU= X-Received: by 2002:a05:620a:288a:b0:6b8:fcfe:db02 with SMTP id j10-20020a05620a288a00b006b8fcfedb02mr17481309qkp.504.1661977342561; Wed, 31 Aug 2022 13:22:22 -0700 (PDT) MIME-Version: 1.0 References: <20220831100506.3368103-1-vincent.whitchurch@axis.com> <20220831100506.3368103-2-vincent.whitchurch@axis.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 31 Aug 2022 23:21:46 +0300 Message-ID: Subject: Re: [PATCH v2 1/5] iio: adc: mcp320x: use callbacks for RX conversion To: Vincent Whitchurch Cc: Jonathan Cameron , kernel , Lars-Peter Clausen , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 5:19 PM Vincent Whitchurch wrote: > On Wed, Aug 31, 2022 at 02:40:49PM +0200, Andy Shevchenko wrote: > > On Wed, Aug 31, 2022 at 1:05 PM Vincent Whitchurch > > wrote: > > > Replace the device_index switch with callbacks from the chip_info > > > structure, so that the latter has all the information needed to handle > > > the variants. > > > > Below are for the further patches, as I see the original code has the > > same disadvantages. > > Right, these comments are in the original code that is either being just > being moved or that even just happens to be in the context of the diff. > > Just to clarify, do you mean by "further patches" that you expect > patches to fix these comments to be added to this series which adds > triggered buffer support? Yes. -- With Best Regards, Andy Shevchenko