Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1416332ybf; Thu, 27 Feb 2020 10:32:29 -0800 (PST) X-Google-Smtp-Source: APXvYqz+D504BTUXKL4Fr/WoJUnY1/5iizk1DroP916iCjQC/7jJGhJSWu5rwTAxM+yc4I0Zybzp X-Received: by 2002:a05:6830:1203:: with SMTP id r3mr217960otp.230.1582828349193; Thu, 27 Feb 2020 10:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582828349; cv=none; d=google.com; s=arc-20160816; b=y7x5RnGC//8I9MipotD/BkRGhfDmH4WQhwFQepZZF0AG1sOsEstf64tiXtyksLGcqd sDK9BsNmwKlZtmFnkO/moq2xhQgxRpZZz7Utg5T64M0QDcYdaZOKcLao1IGJU9/qbGUR FiFbWVj+Obx3RVR5nHXay3aQ1kUAT4PtFEIZKAMVfKyjb7udEsZlmL7q4dT/b8574Yuj S+riEQd2eVB60bEPdqeCQQKT8j/zU0s5TTQcKQ3Dqnat34flOE3Y24vIN6QFdP99VE4H puxEZVKer1rQF+d9OISK9brRX6WROyimzuTDeBZBGxwUH5GWU0XVIjKwMyKMy9+YpCc/ 6yDA== 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=3Bz2vR2Tg5c+O+QNTGdqbIUhPXuM0m6WC7tdqcFYb6M=; b=FFg/njdxC+k+ZmDN6VlI1E3mxClGJGQcxOOGxfyIMcv04ZfQU71ZpL8ylBGdYjAos1 LJ4LpHmDRQUL+yoVkVx9wMxFkqxuFO9kjKCSzoO31lT4F+iWgVOmx9zcDySOJw4BORmj b2BzveywTn1V85H7B15kzHgw3kgTAvVSBakhOFk2bV5lCzwu0cWp/o3V8XVfuSLKT9xD //rkCOfVrOiCPTZXKAlHjQnNfb4ysbniWeq+PCYFr5uA3eGvcWTnzmw5MUyByllHDGvD T8a4Kak2amGq/4UXxcn7Eouel+5+JjTkHRFn2Rfv52MSaXZIqbmnY052v6K95capmQOA QAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=dMAhh5kV; 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 g17si10960otr.261.2020.02.27.10.32.17; Thu, 27 Feb 2020 10:32:29 -0800 (PST) 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=dMAhh5kV; 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 S1730211AbgB0Sbq (ORCPT + 99 others); Thu, 27 Feb 2020 13:31:46 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:51264 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729577AbgB0Sbp (ORCPT ); Thu, 27 Feb 2020 13:31:45 -0500 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=3Bz2vR2Tg5c+O+QNTGdqbIUhPXuM0m6WC7tdqcFYb6M=; b=dMAhh5kVdVTlSW7LUUcZawFdsG VrjszrEQqD55+XATVj+aHw0gxaLaPG+FH+gXNJW020IS+LAwFyobUciaIYlH+tHxgBy4Xmpv7ZUOc odp6oHs+NFEGcQI1/i9Cfzv+nm/BG6fPQ5yHuuOGsCAoSrv3TrThp+C0o00Y6Cen6k4g=; Received: from p200300ccff13fd00e2cec3fffe93fc31.dip0.t-ipconnect.de ([2003:cc:ff13:fd00: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 1j7Nwc-0006zQ-59; Thu, 27 Feb 2020 19:31:34 +0100 Received: from andi by eeepc with local (Exim 4.92) (envelope-from ) id 1j7Nwb-0003oj-Lb; Thu, 27 Feb 2020 19:31:33 +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 v6 7/7] mfd: rn5t618: cleanup i2c_device_id Date: Thu, 27 Feb 2020 19:31:12 +0100 Message-Id: <20200227183112.14512-8-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200227183112.14512-1-andreas@kemnade.info> References: <20200227183112.14512-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 321836f78120..b8033e2d650f 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -153,8 +153,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; @@ -256,11 +255,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); @@ -271,9 +265,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