Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp683240rdb; Fri, 1 Sep 2023 00:37:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfgZs4fcwieGKf4DTBmahBcyeeytZ2gyekBQtifC2iJ4ttn6nFcppGMb3++alYg6DmldQK X-Received: by 2002:a17:902:e74f:b0:1b7:ca9c:4f5c with SMTP id p15-20020a170902e74f00b001b7ca9c4f5cmr2718065plf.28.1693553869976; Fri, 01 Sep 2023 00:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693553869; cv=none; d=google.com; s=arc-20160816; b=KeT0HeoQkj96wF9kCW8CXh4kYnEVP98UY3nE7PJp8LLKVH5P8Rd8XbKr3sX+952ew6 p72PWw+tLh/4VxCUxJ6lyA1F+4M8eIrY1SuLcoo2S/gjJrUIVHhhHsAya9eObmUbPqqG oDFRax0fzOQtIqPoRF6W81abPiwfkYsMEaEDN8y39y7obTGCQwbX+/VrNylxjfcY9BtR ovUm0FpifmMxPoroFagQvXiO//SbUDFC5QsFkasHsXRRuaQqb3zyqMfdYYORq/uPg7qE YkDgMXF7e1+AbX6kx8268gdRMY80/93oZwvTQMK+DauiNLTeLadAaOxeLiw2K6R2cUF5 zFYQ== 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=sxnKa6So+4cL/7tA0dnMSA5mfthuNg2n7TZnZJk/uSE=; fh=o9SLWXOy7CjDICPJAAOsnetKjW4un45DYkhKAFpyC5o=; b=0J1Vc+ct91XvcqIyxFTeo9GD5kci0/uQLNB0pgu1kXgiRpPmUBTm1dqC5Upr4yUEj8 eIRc/kE5hkhSUYk9ZRh+SRAbgcNMamfowVqJUy8USH31JrK4d4mZ3R/Sjfq3Pfa4YPF8 jQbPNEFiT48o/uDgRjfh01UWbV7p1gB5gObgRW9T6565oiZxAZEP+UHuUh+ULOT0LnB6 gKNzhIGTRgTXIjG5NL47xEWrio4FDBVM4FIQXTFG8SgpUwXUr73EJVTYF887ZTgBterp Gpd2o6G1+dUMh63d4ArbtM7TDt9VSudeLNN9dzL4ehgTa3s9OnWaOb/wqsf1fmSApvN+ /ZpQ== 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 k126-20020a632484000000b00543d0bf8632si2493060pgk.866.2023.09.01.00.37.44; Fri, 01 Sep 2023 00:37:49 -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 S1344500AbjHaQFM (ORCPT + 30 others); Thu, 31 Aug 2023 12:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235362AbjHaQFM (ORCPT ); Thu, 31 Aug 2023 12:05:12 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B81B1A3; Thu, 31 Aug 2023 09:05:08 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,217,1688396400"; d="scan'208";a="178328413" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Sep 2023 01:05:07 +0900 Received: from localhost.localdomain (unknown [10.226.92.179]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 82EE74018907; Fri, 1 Sep 2023 01:05:05 +0900 (JST) From: Biju Das To: Guenter Roeck , Heikki Krogerus Cc: Biju Das , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v2 0/5] Match data improvements for rt1711h driver Date: Thu, 31 Aug 2023 17:04:56 +0100 Message-Id: <20230831160501.55081-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 extend support for retrieving match data for ID lookup by using i2c_get_match_data(). The first patch fixes the driver_data for ID table and second patch convert enum->pointer for constification of data and extending match data support for ID table. The third and fourth patches replaces comparison of did against hardware differences with data and feature variable. The last patch drop CONFIG_OF ifdeffery. This patch series is only compile tested. v1->v2: * Drop space from ID table * Remove trailing comma in the terminator entry for OF table. * Updated commit description for patch#2. * Swapped the rxdz_sel variable in struct rt1711h_chip_info to avoid holes. * Changed enable_pd30_extended_message variable type to bool. * Added patch for dropping CONFIG_OF ifdeffery for OF table. Biju Das (5): usb: typec: tcpci_rt1711h: Make similar OF and ID table usb: typec: tcpci_rt1711h: Convert enum->pointer for data in the match tables usb: typec: tcpci_rt1711h: Add rxdz_sel variable to struct rt1711h_chip_info usb: typec: tcpci_rt1711h: Add enable_pd30_extended_message variable to struct rt1711h_chip_info usb: typec: tcpci_rt1711h: Drop CONFIG_OF ifdeffery drivers/usb/typec/tcpm/tcpci_rt1711h.c | 46 ++++++++++++++++---------- 1 file changed, 29 insertions(+), 17 deletions(-) -- 2.25.1