From patchwork Tue Jun 28 14:03:07 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: 586203 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4602ECCA479 for ; Tue, 28 Jun 2022 14:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347331AbiF1ODY (ORCPT ); Tue, 28 Jun 2022 10:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347329AbiF1ODX (ORCPT ); Tue, 28 Jun 2022 10:03:23 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B20F529CA3 for ; Tue, 28 Jun 2022 07:03:22 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6BoG-0008KM-Eu; Tue, 28 Jun 2022 16:03:20 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1o6BoB-003DSp-EF; Tue, 28 Jun 2022 16:03:18 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o6BoE-001gzB-69; Tue, 28 Jun 2022 16:03:18 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, kernel@pengutronix.de, linux-i2c@vger.kernel.org Subject: [PATCH 1/6] drm/i2c/sil164: Drop no-op remove function Date: Tue, 28 Jun 2022 16:03:07 +0200 Message-Id: <20220628140313.74984-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220628140313.74984-1-u.kleine-koenig@pengutronix.de> References: <20220628140313.74984-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; h=from:subject; bh=CQ7TN6D6r4hRl9yUpOYDAsNsGGA68o6Un056TERuUpM=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBiuwoFzQL0YrVffntniiGmjx15gJBrqYBudDhy8/e+ NMQDH9eJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCYrsKBQAKCRDB/BR4rcrsCejaCA Cg0szUXxQuGzgIZ5GTOcdqp/LDDuRzqcCKBvoUWKlSgVsvvo4TpqGTDyOVt9M/NsvTcjAjBVc3X4Fb veSir5gjC7QwSpKsB8lzuvMNNHmWobKsUoOcNVCtGkzQcErDVGmqH3jUOjDfUfeAjdvF0TrwDybIUN 3QPlmK0/whY+cuZ8dpLnTSjIpVGS1w86OfcVN7/niBVcQqcRyMl+ZP++e4G9tFuLKkPJ53XOwJXkWn Mgkhoqgf8x5VwGQmhI7M+ea1bZ6yNQOvEBwMk61wFUtYUPPbmIdX2rAa5L0PNR9M0ZYO2q8r+Zlvw0 jpq3Sho5SN3BNVm7nDwnNShnJ3taPh X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-i2c@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org A remove callback that just returns 0 is equivalent to no callback at all as can be seen in i2c_device_remove(). So simplify accordingly. Signed-off-by: Uwe Kleine-König Forwarded: id:20220526202538.1723142-1-u.kleine-koenig@pengutronix.de --- drivers/gpu/drm/i2c/sil164_drv.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c index 741886b54419..1bc0b5de4499 100644 --- a/drivers/gpu/drm/i2c/sil164_drv.c +++ b/drivers/gpu/drm/i2c/sil164_drv.c @@ -370,12 +370,6 @@ sil164_probe(struct i2c_client *client, const struct i2c_device_id *id) return 0; } -static int -sil164_remove(struct i2c_client *client) -{ - return 0; -} - static struct i2c_client * sil164_detect_slave(struct i2c_client *client) { @@ -427,7 +421,6 @@ MODULE_DEVICE_TABLE(i2c, sil164_ids); static struct drm_i2c_encoder_driver sil164_driver = { .i2c_driver = { .probe = sil164_probe, - .remove = sil164_remove, .driver = { .name = "sil164", },