Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1095619pxm; Wed, 23 Feb 2022 18:01:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP5grU0IT+9lK0s9WWTj764yg3CR2hTUJz63B9c56ojJVqSLUhg3XIerYm3T5khRed+w+s X-Received: by 2002:a17:902:e949:b0:14d:8ab1:919 with SMTP id b9-20020a170902e94900b0014d8ab10919mr651310pll.122.1645668117561; Wed, 23 Feb 2022 18:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645668117; cv=none; d=google.com; s=arc-20160816; b=hQ1k42crCp9llX1k5rgfH7GKbY8jOoLPyIjXnd1PnjSIoqLodB1JAwTjq9BEAGFN5m 8CW83lszHdA0NXyEtOotarzbVEj9FenItp5jrxSnc8721QQynIC7EenhUN4coM1qje+P dcxDtWtpMGj+B0EA1KMKnjMc4rDjmKhxoJX0p/MlXQhubPCvv5Wp5YyxC6naGy9TfVdH 7AgxbG8OmAyaxZSmoDByH+ra3J9ZZmETCiAxTuu56/JACXYmqGLYYeCVSbZ+ykvxjN0G qtNQzu9t4LaLrXVWARcoVC3foR95WGMbyTphzUeTKOJ1XMF6pChomKdwbEPrTlmEbduZ r2Kw== 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=pM5pw1YpKQqELzcFX8vmd83rKnZu8lKXq5VtC+eE4ss=; b=fTcMz5Wcx1Lu8IqmR1pkQocchXw852469s2Sc3P8LaoTbn2r3JvJWnqSY1oyVIN/NE SixM8SH+bu/SqaYkYJZXJOAW6CWxH6mMiha5eeMl6TNQfHLN3VQ90LrOAXLQdd544Vl9 Th+Buua7EOqjL3a7lBYRA/drfnUTm9USOk4MUmjc3R58oCX3W+DTr5JUKcLbXwNauFzY 4pax7PEMJFuGRKzibRnONhRPLE6FC1V3VXHvm9g9WGK1fptoV2DK5KFFbpFVC5n1/Cu+ DhLifdzJ+tTbmqWHuGs//3lKn/H9ABaX87H2gUHEXcy4E0iY1qA+Yq9VJMTWzNZtsie8 MqNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="G9gSDIB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a64si1178535pge.230.2022.02.23.18.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:01:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="G9gSDIB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1AD521BC73; Wed, 23 Feb 2022 17:30:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbiBXAyl (ORCPT + 99 others); Wed, 23 Feb 2022 19:54:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiBXAyj (ORCPT ); Wed, 23 Feb 2022 19:54:39 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B44B141450; Wed, 23 Feb 2022 16:54:02 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id gb39so1001249ejc.1; Wed, 23 Feb 2022 16:54:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pM5pw1YpKQqELzcFX8vmd83rKnZu8lKXq5VtC+eE4ss=; b=G9gSDIB/Ac5CRzuLOjKBmqubWQrPBBJx0jzODrrpVKeV30gd+jXWw3jWHL48/ZBt6q IzYaMihLA/IouqWV66vM1wALPtPCoa4+Gx0NJShaeOoImSM37FWdRYnNMHMKkcCxDALJ m34EuiWV52MdqilI1MV49oLKAK5ya15RRATJrCAT4wAhshPJ5CoaNjiwiJTEHwm1sCxf 2Vc5eXQDzty+aHn31rOWswD3kYWUwsZe+cHkA2H9MeiRGGgtPDRS6kTgcvcTYazEiItc dsIsWi8Z/IoFBYNEFoHZNqlAbGPxnpH6h0SqqamaVYqEZ6JHpMPIoG8Esjh3jLdbU768 TayA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pM5pw1YpKQqELzcFX8vmd83rKnZu8lKXq5VtC+eE4ss=; b=wuvZjB4/HDKLAlI/ZzyYnNencDNonzmwU2nVdvP3Hh3mHpfqRMhMoBNUWsHDmeitpJ SDLCZe9kAn0mL1c4sH81HE4t1uJXiclS9+kuYUU2xrZa2txOo2dg/Im93G0w1fqL+g98 +NmzyAsX88xzuFQrsGbMz/BBU5eXBAFTS5tljcfSA9+W61XCsNRXcrxrh9YCZZmvjfTs Mj9pcpr/5+kmrE5kgopQwDOAzjcoiQqw0/46sqq/0zpNNPm+QvI8zmQZrwXEwOc44Lmh eFjgwbrG9cJlnlhhEfCL1LV4AthE8jOHYtIxuhK/SWG962uv6bs1ttz2JXconYUyTTYs OVig== X-Gm-Message-State: AOAM531m+oOnpoYRaIFMAbtP6qfJuaMQy+i5f4rYEA9q8c6mK+lclUhy fU+d0bNLAywmEGhjheLUNswGatgnGu5bLjq26ac= X-Received: by 2002:a17:906:138f:b0:6cd:93db:e54a with SMTP id f15-20020a170906138f00b006cd93dbe54amr267069ejc.44.1645663757286; Wed, 23 Feb 2022 16:49:17 -0800 (PST) MIME-Version: 1.0 References: <20220223163525.13399-1-jagathjog1996@gmail.com> In-Reply-To: <20220223163525.13399-1-jagathjog1996@gmail.com> From: Andy Shevchenko Date: Thu, 24 Feb 2022 02:47:53 +0200 Message-ID: Subject: Re: [PATCH v5 0/7] iio: potentiometer: Add support for DS3502 To: Jagath Jog J Cc: Jonathan Cameron , Lars-Peter Clausen , Slawomir Stepien , Rob Herring , linux-iio , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Feb 23, 2022 at 6:35 PM Jagath Jog J wrote: > > Add dt-bindings and support for Maxim DS3502 into existing ds1803 driver. > DS3502 is a 7 bit Nonvolatile Digital Potentiometer. LGTM, thanks! Reviewed-by: Andy Shevchenko for the entire series, > Changes since v4: > 1. Included property.h header which has device_get_match_data() > function prototype. > 2. Removed blank space in tag block of the commit message. > 3. Style changes for ds1803_cfg structure. > > Changes since v3: > 1. Dropped the chip type switch statement in read_raw function. > 2. Added device specific read function pointer in their structure. > 3. Added two separate functions to read values from two different types > of devices. > > Changes since v2: > 1. Addressed Andy Shevchenko comments. > 2. Adding device name in Kconfig file. > 3. Spliting up of patch into 3 patches. > 4. Adding channel info into ds1803_cfg in separate patch. > 5. Dropping the use of enum in firmware data instead using previous > pointer method for accessing device specific data. > 6. Separate patch for using firmware provided data instead of > id->driver_data. > 7. Adding DS3502 support in separate patch. > > Changes since v1: > 1. Fixes the alignment to match the open parenthesis in separate patch. > 2. Adding available functionality for ds1803 driver in separate patch. > 3. Moving maxim_potentiometer members into ds1803_cfg structure. > 4. Droping of the INFO_ENABLE channel type. > 5. Firmware entry with data is used instead of id->driver_data to > to retrieve the chip specific data. > > Jagath Jog J (7): > iio: potentiometer: Alignment to match the open parenthesis > iio: potentiometer: Add available functionality > iio: potentiometer: Add channel information in device data > iio: potentiometer: Change to firmware provided data > iio: potentiometer: Add device specific read_raw function > iio: potentiometer: Add support for Maxim DS3502 > dt-bindings: iio: potentiometer: Add Maxim DS3502 in trivial-devices > > .../devicetree/bindings/trivial-devices.yaml | 2 + > drivers/iio/potentiometer/Kconfig | 6 +- > drivers/iio/potentiometer/ds1803.c | 170 ++++++++++++++---- > 3 files changed, 138 insertions(+), 40 deletions(-) > > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko