Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp686107rdb; Sun, 3 Sep 2023 06:13:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmijRCvOc8dzemDduJCbQ+1KyENt1GRSWhwnwAijoakogX+9UBSxLU8dqkYIEhQbucVyYf X-Received: by 2002:a17:90a:f487:b0:268:5aaf:fbe with SMTP id bx7-20020a17090af48700b002685aaf0fbemr10187881pjb.10.1693746799052; Sun, 03 Sep 2023 06:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693746799; cv=none; d=google.com; s=arc-20160816; b=aKWDVlmuJWJ1ob7Vs4uSjTwJtegD5DdeO+nvCdxrAJOn0tGXEzTbTARFW3DggKeqh2 0ZVIEBN9w34lylXpvPxehtFELUyMNycp2R9t3KpdL8GRMIg3kGr+ct53xRwrViH9Ej7C 9+jxrlT5O7xWASVp9BQvrOVdPHK3csBSV4iZSk5vbftU02fSO4LGY/OGZUpwwvN4U6qS buU12866ZfZsZmPpHNQZXygpikUaIGVSHA8MDyMl22gO/M2WVdyQf6WzztF5ol3T6i9w 4nUUVOPPqxo+mZjLu13iyBTUtz4sAfA9IjyZuaPa+CtLhuE5YJrlBXlWQem6dKAC2QlO YP+w== 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=NZJuB0GC46BTSAgJxvadlCFSeHyhp1tgoSfWQzBUDTI=; fh=Rfp8EGXZDpWs9UatmMjyMXXviRNlylaV4deOCiNY4cw=; b=SpE62RQdorN9xEA+9LEAF7cmXTe6yFyA8u1Z19/WDNmh+PipZbQaDCxDrPyx+naGa8 BMOMlTiObzVJk64F7CFWjSX4LmCE0RrLiByiCYM6jCnmj4g/L5TllYivkMvPRkOF7cBZ 5XNTby9Zh7mKawm4Lkk7adsHbEwTo91OdubjRx8/crMsf8khH1ChCXq0HWJs+0o0MS38 3t1VgX96ThF50GqCmmiA2LQe/FM5ZOf+rfoYAMdrkEsA3ht7uGIW6lC34XLlteZbkQyL QW96ldZ5abb+SfCxicPSi4AhNZZsWpz/eQUJNDLaqCqHI4MZMwxO/ZM12PNoSCsRirMq y7SA== 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 m21-20020a17090ab79500b0026807ec51b2si6006775pjr.53.2023.09.03.06.12.52; Sun, 03 Sep 2023 06:13:19 -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 S229472AbjIBRXM (ORCPT + 99 others); Sat, 2 Sep 2023 13:23:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjIBRXM (ORCPT ); Sat, 2 Sep 2023 13:23:12 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 263021A7 for ; Sat, 2 Sep 2023 10:23:06 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,222,1688396400"; d="scan'208";a="174800128" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 03 Sep 2023 02:23:05 +0900 Received: from localhost.localdomain (unknown [10.226.92.16]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8112C4005632; Sun, 3 Sep 2023 02:23:03 +0900 (JST) From: Biju Das To: MyungJoo Ham , Chanwoo Choi Cc: Biju Das , linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH] extcon: sm5502: Extend match data support for ID tables Date: Sat, 2 Sep 2023 18:23:00 +0100 Message-Id: <20230902172300.65949-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, RCVD_IN_DNSWL_BLOCKED,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 The driver has ID tables but there is no ID matching support. So extend match data support for ID tables using i2c_match_data(). Signed-off-by: Biju Das --- drivers/extcon/extcon-sm5502.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon/extcon-sm5502.c index c8c4b9ef72aa..c4768060c7cd 100644 --- a/drivers/extcon/extcon-sm5502.c +++ b/drivers/extcon/extcon-sm5502.c @@ -689,7 +689,7 @@ static int sm5022_muic_i2c_probe(struct i2c_client *i2c) info->dev = &i2c->dev; info->i2c = i2c; info->irq = i2c->irq; - info->type = device_get_match_data(info->dev); + info->type = i2c_get_match_data(i2c); if (!info->type) return -EINVAL; if (!info->type->parse_irq) { -- 2.25.1