Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp412639ybb; Fri, 20 Mar 2020 01:13:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvXURez22sHTWHl1VOKQZp6ss2f/fwUQWg30F0U8Xobm3Al0K6ScAz/3cyhp9BFg0ktUZuZ X-Received: by 2002:a9d:3ae:: with SMTP id f43mr5527958otf.159.1584691987387; Fri, 20 Mar 2020 01:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584691987; cv=none; d=google.com; s=arc-20160816; b=GNBdxXIGCif0ZxLwmNJYgdpQ4STTVl5MnKuut5Byl/YJcpApIn3LZTfsL/F3uwLR6o RrxRNPBnKHep1XzzJ/VE4z01gxmeItJaSab18Mb2Kh+3MCfVh8tXPqLqvNIaUTAbeIKH L8b8r8mgtUBxF5G3/UO01oGEHz5BDABdrCUzbzxrpHMJpXRqe2WtM6OrNoPynOgYBdt0 1GKAxhM6qmog4VVI3/6XD8jMY1lKepDWmU4XiqZta2gj/HZuzlWQivLH9xcF0K6hnIx4 BH8H9Cl4PxWBYhlirBhG/FnWqPUmmHtXLcWFS8JV8OxNfO9cWyRcH/t7WHSW5sa/NGr+ 243g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8uNn0pgvKn2fpP2I6JTFrcoatNgGZjsQe8kBMamy+W4=; b=NTSn+kjZdVJcoPPfEcMdFM6jWMQG09zFJWN4txyjVBhhP6mJ1TFlWY+IrkGExRbmxU snTmMFksVQgIwNKm6uVyVPmP+rXedIQ/qeqcBHPCfhdLbrMftbYokeMal3urp3XcRuJi rqrkQ36sP3D7FMv6y+vY5uf4/bUIXeOmMofFASCOtMeWM/JUjwzdtwcKjUD/l6KC+6RG Bg5hbC3RaXZVBUZuI08NqPo3oYVY+hMIX9YnZNkeEeGUZLSRcaHljDTY4B34DnhF46bA stu6bT5S54edcGvmAmyyWWLwwmCVhsqUQqyiMe2d0AaOEMY4a19ydB0DOseZN7bCMNaS S7zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Ax+m3e+n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si2557625otl.19.2020.03.20.01.12.55; Fri, 20 Mar 2020 01:13:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Ax+m3e+n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgCTILd (ORCPT + 99 others); Fri, 20 Mar 2020 04:11:33 -0400 Received: from mail.andi.de1.cc ([85.214.55.253]:51318 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgCTILa (ORCPT ); Fri, 20 Mar 2020 04:11:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8uNn0pgvKn2fpP2I6JTFrcoatNgGZjsQe8kBMamy+W4=; b=Ax+m3e+nTo5xkxohG8wKZzCk/P 7wmG6uk2I1ntHVWUtwA/LWnMjkwZ4CsCKidBsmvjdYpN5nARe6/b7fz3Su2kvCKqY5t/6IcHVR8uV TzHnciddPPUyjkwNO3UaFamd67sgr7WDYsEAJcw76hncz1Y3xUqG1l8X1gtZ1is+4Mts=; Received: from p200300ccff093a00e2cec3fffe93fc31.dip0.t-ipconnect.de ([2003:cc:ff09:3a00:e2ce:c3ff:fe93:fc31] helo=eeepc) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jFCkP-00058S-7M; Fri, 20 Mar 2020 09:11:18 +0100 Received: from andi by eeepc with local (Exim 4.92) (envelope-from ) id 1jFCkK-00039Z-0g; Fri, 20 Mar 2020 09:11:12 +0100 From: Andreas Kemnade To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, a.zummo@towertech.it, alexandre.belloni@bootlin.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, stefan@agner.ch, b.galvani@gmail.com, phh@phh.me, letux-kernel@openphoenux.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, jic23@kernel.org Cc: Andreas Kemnade Subject: [PATCH v7 7/7] mfd: rn5t618: cleanup i2c_device_id Date: Fri, 20 Mar 2020 09:11:05 +0100 Message-Id: <20200320081105.12026-8-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200320081105.12026-1-andreas@kemnade.info> References: <20200320081105.12026-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That list was just empty, so it can be removed if .probe_new instead of .probe is used Suggested-by: Lee Jones Signed-off-by: Andreas Kemnade --- Functional independent from the other patches, but since they are touching similar areas, commit/merge conflicts would occur. drivers/mfd/rn5t618.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index bc117adede4c..232de50562f9 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -146,8 +146,7 @@ static const struct of_device_id rn5t618_of_match[] = { }; MODULE_DEVICE_TABLE(of, rn5t618_of_match); -static int rn5t618_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rn5t618_i2c_probe(struct i2c_client *i2c) { const struct of_device_id *of_id; struct rn5t618 *priv; @@ -244,11 +243,6 @@ static int __maybe_unused rn5t618_i2c_resume(struct device *dev) return 0; } -static const struct i2c_device_id rn5t618_i2c_id[] = { - { } -}; -MODULE_DEVICE_TABLE(i2c, rn5t618_i2c_id); - static SIMPLE_DEV_PM_OPS(rn5t618_i2c_dev_pm_ops, rn5t618_i2c_suspend, rn5t618_i2c_resume); @@ -259,9 +253,8 @@ static struct i2c_driver rn5t618_i2c_driver = { .of_match_table = of_match_ptr(rn5t618_of_match), .pm = &rn5t618_i2c_dev_pm_ops, }, - .probe = rn5t618_i2c_probe, + .probe_new = rn5t618_i2c_probe, .remove = rn5t618_i2c_remove, - .id_table = rn5t618_i2c_id, }; module_i2c_driver(rn5t618_i2c_driver); -- 2.20.1