From patchwork Mon May 31 13:34:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 450565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74CE2C47083 for ; Mon, 31 May 2021 13:38:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44D9861953 for ; Mon, 31 May 2021 13:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232083AbhEaNjH (ORCPT ); Mon, 31 May 2021 09:39:07 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.83]:16610 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232370AbhEaNg5 (ORCPT ); Mon, 31 May 2021 09:36:57 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1622468094; cv=none; d=strato.com; s=strato-dkim-0002; b=Mm4ccRTf4qPETdpv0td27lQMGxExBSb44+JIcH4RFl1sH84W6LMql2MYHrn1tb3WrF j5fNB1Po+P/sW5Zfet8lKfCDq6zhWAmlJM8pmnGepG7BuSqLFCv7f4Z0xNSCv4mCA6Lh nrH9kmJjhsinSeU+9rtW1DYbYVJhKZYovAEldV1bl43Ys0iqyQgB/QibEPbGjrrbNkZ0 BKdKXHY3owGLsUCMdYXzPd4KaGKNFuE3EaNgepWU56F5rJQJgksLoHhIj2enBaCyys1C VNHNOSYoof/TUZQ+C8kAdUoZ6GjbRGT7kjNPZ+3LyLlZ2GJWRqyjjnFeB5iDEv1PRII1 BA+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1622468094; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=K2eJgpXpY/tpzZTBI+UgcYaqxpRI58FPkFkDl3yfQRM=; b=L2QTHmym/F7Lxg3E6KcUa+IxaA7OcknTYd/SwpXFlBBofwwWbmnzYxvI8JIyL+Srog uWIvY19dyb/jacemNW2Uxtth9dY62zME+wO4aVSDobi9zt/lqM8ECizQSA7c7DChh0v0 VAAQoQ7u1IjLVbZHrajedxf0qI3avAC/mBfMctlP3DU4DMw2e4e0oK/xL8c9Hhw3Lq94 1mR9ECuV3nP8nKASWp7uRi4Tzlqib/uePUbxv4rl2sO0VSmk0JUGtVQqX1psRmesh9Tk D0XxX5Vaqs4CmzIh7Tf2RYjFvs1i9P0t3gMrrNINebsmn8XrfLGJFZ4epSnaSr0EHVlH Cf3g== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1622468094; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=K2eJgpXpY/tpzZTBI+UgcYaqxpRI58FPkFkDl3yfQRM=; b=jtWyRGL4G9GLbyaZPahM0gkJxKnnJzuAdtv4T0LB7epZi2vNFMBdWXKG45lALq1UjQ ItrgLnrmHIFkG5PZoYMiOVTnhZc97c69h5YwZMqZMXTIm5WcmfD6U3SkfzYfN27+UASM 2rRi5JAZ2UBxJwDVeHhx9eZc4crvEGTJgHPpYm/9rIj+mIb1u4Zs4twc9Kaf8qHc2JLp q9AqoBk3if9DGIZ6T0cWH0VP/TSSLHdP4S3fG9ePz47UaFVMKu/mmrj8yFOuTcO2aCfV NYDuxoVididt8fp+ie4mpiA2g72cfJMBWHcVzybZ1L3ADeaq62GAeHVsu6ZI/psE/7qd YpxQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB526Kcak=" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.26.3 DYNA|AUTH) with ESMTPSA id U0b2c9x4VDYsKx9 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 31 May 2021 15:34:54 +0200 (CEST) From: Stephan Gerhold To: Chanwoo Choi , MyungJoo Ham Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, Stephan Gerhold Subject: [PATCH v2 2/6] extcon: sm5502: Implement i2c_driver->probe_new() Date: Mon, 31 May 2021 15:34:34 +0200 Message-Id: <20210531133438.3511-3-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531133438.3511-1-stephan@gerhold.net> References: <20210531133438.3511-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org sm5022_muic_i2c_probe() does not use the i2c_device_id, so implement i2c_driver->probe_new() instead of probe(). Signed-off-by: Stephan Gerhold --- drivers/extcon/extcon-sm5502.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon/extcon-sm5502.c index f0d155cf7518..907ecd01ebb7 100644 --- a/drivers/extcon/extcon-sm5502.c +++ b/drivers/extcon/extcon-sm5502.c @@ -563,8 +563,7 @@ static void sm5502_init_dev_type(struct sm5502_muic_info *info) } } -static int sm5022_muic_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sm5022_muic_i2c_probe(struct i2c_client *i2c) { struct device_node *np = i2c->dev.of_node; struct sm5502_muic_info *info; @@ -704,7 +703,7 @@ static struct i2c_driver sm5502_muic_i2c_driver = { .pm = &sm5502_muic_pm_ops, .of_match_table = sm5502_dt_match, }, - .probe = sm5022_muic_i2c_probe, + .probe_new = sm5022_muic_i2c_probe, .id_table = sm5502_i2c_id, };