From patchwork Fri Nov 18 22:36:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 22631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp459717wrr; Fri, 18 Nov 2022 15:22:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf58+IxvxUaPRfZehtm3NG/L1PsxmiG9Hs/QyhRb/Jsi/EHV7A5szQsTiX9wFVf0ikkyDAlk X-Received: by 2002:a05:6a00:1c8d:b0:56c:f87e:c662 with SMTP id y13-20020a056a001c8d00b0056cf87ec662mr10105123pfw.65.1668813727028; Fri, 18 Nov 2022 15:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813727; cv=none; d=google.com; s=arc-20160816; b=HsfwTjPLKZtVKjAOsi+n2ZY46vRyJZcEkquP9B30KvDiOJ0wg36LFotLJJQoPf3GQx 2qrkSezwsc2OzXs3p1cv0MnZ+XTrlZwwD/E7ugTStBr48XwM8UU59NDUuksW4Oi68LE5 p7QObYoVcZvS5TTZZmxUg2OQd8zqwmTkd99g0hGDj18PMAzDSdc1RaiBuCNo5dsiMzt5 G0Lhh3WxryMpkFJgpV4wEXHfJTScbHhUPOTStGvnz1hBkjV076ovDA407wwZm+0C9iB0 s9m1pkBHXrqBgYgKs5LMR5TNSDvhh/CI+2qUpCoQcuT2KoxrlZ236SxuLd7/wQlynxXs m9dA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FDnXQfNsVIQQAB8toYO2vJHOqHHXC5TFrxL7tejmNVw=; b=lADVgZ7djfSi6/+447Yj0ALPTU/HQU15yiImwhHb6M5f3h9PIPii18RfpAd5WA+rHM 8hn3S2HqbKY5iflIqXJ4240Ylti9KGBf9mO3gGz6ewFvEnyo5OANZWPeIWpnPkQCZlh2 ZJbSSWOnjwyg35zauZpDclE8uLYStpiolhryoFTnC1ugGvI6cOe1HuVjU85PZQ8uz58g Mjtskit4XXhts6bWF90wtLXHiwDowweUnizZfiXbQcvA9+9wtZmr26IgoGUzN87ROa+j LFZyKFye1tU7Sr7UmQF6WFQ+XTsQA4ztIEyFREFsafOu13f2fncXExE4n9pT/wDTPu11 PLzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=KuKVH8yt; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a170902c94c00b001748ede4e05si5341699pla.119.2022.11.18.15.21.53; Fri, 18 Nov 2022 15:22:07 -0800 (PST) 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; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=KuKVH8yt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbiKRXTW (ORCPT + 99 others); Fri, 18 Nov 2022 18:19:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234215AbiKRXTE (ORCPT ); Fri, 18 Nov 2022 18:19:04 -0500 Received: from algol.kleine-koenig.org (algol.kleine-koenig.org [162.55.41.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91EF597ED1; Fri, 18 Nov 2022 15:04:23 -0800 (PST) Received: by algol.kleine-koenig.org (Postfix, from userid 1000) id 5F70968F731; Fri, 18 Nov 2022 23:46:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kleine-koenig.org; s=2022; t=1668811575; bh=LlspP/CA3mDLhx5AvEkQCfgDBdtUPqlu+K6RNIoku6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KuKVH8ytJVbCJPPfClkVqVK/dVOGGWU+fk6eowX6oJJfczzpxGgC3Wv9NCrA79VCu PjpMMMixcBbeLppwKyYjjSWahr2tlIrPk+O2AT6OqPZ6TpiTUPMOqLDLfefieggdd1 jAGbGJ7dbzYJCEVPoG2a7l3wPR9Q8EYXB6P40m6Kvaxks407PlFze8XWz44WGIWyPO b1bOrpwmJnFrEE+9HbCOutdTPdzp/pn0W1G7EJzclTU40X9JYohKFu5OZkL4mYHym5 C9Mr4ocS6IZeufXFM/Xn8n6EdRDpHUPP33C8kzFRUbv9Z9l1ezF5YnG2fGfbEDNUbg mla6R1S0pjflQ== From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , David Airlie , Daniel Vetter , Javier Martinez Canillas , Ajay Gupta , Benjamin Mugnier , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Uw?= =?utf-8?q?e_Kleine-K=C3=B6nig?= Subject: [PATCH 038/606] drm/i2c/ch7006: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:12 +0100 Message-Id: <20221118224540.619276-39-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749878022376974789?= X-GMAIL-MSGID: =?utf-8?q?1749878022376974789?= The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/i2c/ch7006_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/ch7006_drv.c b/drivers/gpu/drm/i2c/ch7006_drv.c index 578b738859b9..e0476a5bf84c 100644 --- a/drivers/gpu/drm/i2c/ch7006_drv.c +++ b/drivers/gpu/drm/i2c/ch7006_drv.c @@ -386,7 +386,7 @@ static const struct drm_encoder_slave_funcs ch7006_encoder_funcs = { /* I2C driver functions */ -static int ch7006_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ch7006_probe(struct i2c_client *client) { uint8_t addr = CH7006_VERSION_ID; uint8_t val; @@ -495,7 +495,7 @@ static const struct dev_pm_ops ch7006_pm_ops = { static struct drm_i2c_encoder_driver ch7006_driver = { .i2c_driver = { - .probe = ch7006_probe, + .probe_new = ch7006_probe, .remove = ch7006_remove, .driver = {