Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp959662rdb; Sun, 3 Sep 2023 20:03:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe287984wlxEdLaPotITR/7XY1oWLLdoQxDRap4ZukymobCJRBu04ZEQcaEawzxhrKrv1W X-Received: by 2002:a17:902:e5c3:b0:1b8:8ff5:2cee with SMTP id u3-20020a170902e5c300b001b88ff52ceemr7952242plf.64.1693796616713; Sun, 03 Sep 2023 20:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693796616; cv=none; d=google.com; s=arc-20160816; b=UEYgf15GW96vsuNyx7z7fbWoBsa8b1mBN+JZ9GjrUA5a24XZ8q/D/Se4BkDd2v09HQ k9lKRwUtnJlDiJl1XU/P4KkbtdoS52zCV+n6JwQpis3zgCWbGohlNt65CwlqaA6mCXOV xJEpqN/362kKjjeLWqvKCUKJBZmYXtJ3QmDMVLlKBF7w8LNFLxe5B8BJ20XvzCOGbhO/ JmhIVv8sx4zbw2X7Ze2VhsIOuZeeoN/La4BpyJhxIOqFX+Ouk0HLExg3vdl/640VYfaH gweVPJ8y/raCt/P+p79FAR8IjzWIohH6R0lHpE4Q+h4VsPsmMZS0MODjHYV3+18JeSxg M3VA== 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 :message-id:date:subject:cc:to:from; bh=z22jxB1Yofu32XTU4LNwK9gNdYrPsxzvVlE7hHneLG8=; fh=pnZF6rzA50VQ06Ks8UUSgsDCVUaPEFlTI8rdPUngd8k=; b=E5SECbAGrHt6i2usCHV7HNxcmS6FKsbhTMPOz35Ero3Av0UOSiEwVgMpNfuCLPFiEp Bk8Nm5p3/MjZUSxaFKp0RfRgJXQLs5JeU3XiKlzKFd7tauyZCA/NstpGoK0tURQNE8Wm JAQ1IF14yeOPD0vzBqGOb5XF2tQZIyvVZmlRkfmgymlRa9WxQE/EBGplxiHGuCAkVz8N JXN5L1ANKEa935lybYW+ol8j5MGCw3RHGaM9CqR2ic+oSobcOYd5Hi4B9xJn+4eMmbKP TUkZ5lHBBCa+TMa9yY9QHZLhOzNUODGk7eRiMHxSh4Zj1LI5iZOkM13jz2M/bmbY9993 fp4g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a170902d2c500b001aadba392c1si7092021plc.464.2023.09.03.20.03.22; Sun, 03 Sep 2023 20:03:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236692AbjICLz7 (ORCPT + 99 others); Sun, 3 Sep 2023 07:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjICLz6 (ORCPT ); Sun, 3 Sep 2023 07:55:58 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2077E11D; Sun, 3 Sep 2023 04:55:55 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,224,1688396400"; d="scan'208";a="174842999" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 03 Sep 2023 20:55:54 +0900 Received: from localhost.localdomain (unknown [10.226.92.30]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id AFB1D41C2D8A; Sun, 3 Sep 2023 20:55:51 +0900 (JST) From: Biju Das To: Jonathan Cameron Cc: Biju Das , Lars-Peter Clausen , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Marek Vasut , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das Subject: [PATCH v3 0/4] Match data improvements for mcp4725 driver Date: Sun, 3 Sep 2023 12:55:44 +0100 Message-Id: <20230903115548.59306-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS 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 This patch series aims to add match data improvements for mcp4725 driver. This patch series is only compile tested. v2->v3: * Added struct mcp4725_chip_info with chan_spec and chip_id variable and used that as OF/ID table match data. * Added variables use_ext_ref_voltage and dac_reg_offset to struct mcp4725_chip_info to handle hw differences between mcp4725 and mcp4726. v1->v2: * Update commit description with reason for change. Biju Das (4): iio: dac: mcp4725: Replace variable 'id' from struct mcp4725_data iio: dac: mcp4725: Use i2c_get_match_data() iio: dac: mcp4725: Add use_ext_ref_voltage to struct mcp4725_chip_info iio: dac: mcp4725: Add dac_reg_offset to struct mcp4725_chip_info drivers/iio/dac/mcp4725.c | 42 ++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 14 deletions(-) -- 2.25.1