Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp567088ybz; Fri, 24 Apr 2020 05:34:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKUewuV9t7yl0XuXNPW9WOUOrGsPUDjGGebYqmTvPmIdWGr7b8Xcf0iSb9lTc/B1+Yg0zmM X-Received: by 2002:aa7:d514:: with SMTP id y20mr7086842edq.28.1587731653653; Fri, 24 Apr 2020 05:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587731653; cv=none; d=google.com; s=arc-20160816; b=uRueUuGTbAXHiKi02ZNqdSdblzKyDtL4/NGqB20O4JrF8WC5LIh5wZK2xaZFYzIV9K OfJ+8ZVmabLgXMR+h8JlbAbSTbQgmx39oLpNmb84FTUU7cdUPB3fwJ/dFmEcEKgxQI8P j6nwfnbskvKBsFjzo/keeX+RV52ROXg1IoKGXSzo9ONOE5nrncW3XNCIQtVRVvBuuHkb IusZGrfxQ/9gLNJByJ81kY2R0T3k64bXtOdLNaC+6K/WQgltsRg9Yw3sbJiix3u2IZqF hLywF7eJYipGbcPwbC5oJy3/nLT0P5yXsPrDGKKWLhjdg+x+b61+DQJTNl4fKHBB0Zed WQpg== 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=rK5S99VPLxiotkqo/ZhTEUdbYFBwJupsfPzNDsgZ54I=; b=f5ToV1b9L0jLfY1WLTR1EWnoszZ/Ka1tnxItpm5aBbwPQ5EB7BWU55Exh2xw7Vcarh whEV6IQUTmQi1VdBB1rzFVAawj4k/722FG2ZZhRS+RUZ2cA4YJgGGrLewUrlgKhdvoz+ wXVxGUvVvsWNLArfO5hsdrAjgc0YmLDscx1VuZAd61Z6EECrGct0w/d9KiFnhMch//Ts LaTVBBiRle2DRpIqQXm5t3Kosmu2hbbJgf+PGX8UkpvD/wnRgTioCFo/8Tr0K3CvW5xs Z/3dYk/h4xi26F62F/SUYNnSEl6LkgfxzP7BHrMkr6I4BZwnLEULTsE1jT6M68cU3btv omzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iVV34W9+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si2926320eds.553.2020.04.24.05.33.49; Fri, 24 Apr 2020 05:34:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iVV34W9+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgDXMXP (ORCPT + 99 others); Fri, 24 Apr 2020 08:23:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:52670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727854AbgDXMXK (ORCPT ); Fri, 24 Apr 2020 08:23:10 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 237B120776; Fri, 24 Apr 2020 12:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587730989; bh=ceW0OqFGo72zLt1whwqpejHCUYYDHQ7+Wh8tXwZTroQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iVV34W9+VoaPTsC432s6y9IWKgRnIJrvYGv9+c8gY0+QipsdfbMBZkETYyyjy8oHb CsjwjpaW0RlZLhMV6DXbi7gX3TOY2kpmYBqDox0CGzGt96hb2AyNDtVs7dYzPIMKKa 8I79Fna9nXixhz5vM232zW2dfHdMTAPY2WbPtM+4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wolfram Sang , Wolfram Sang , Sasha Levin , linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 5.6 28/38] i2c: remove i2c_new_probed_device API Date: Fri, 24 Apr 2020 08:22:26 -0400 Message-Id: <20200424122237.9831-28-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424122237.9831-1-sashal@kernel.org> References: <20200424122237.9831-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wolfram Sang [ Upstream commit 3c1d1613be80c2e17f1ddf672df1d8a8caebfd0d ] All in-tree users have been converted to the new i2c_new_scanned_device function, so remove this deprecated one. Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/i2c-core-base.c | 13 ------------- include/linux/i2c.h | 6 ------ 2 files changed, 19 deletions(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index cefad08819420..4bfb15ac71f1c 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -2269,19 +2269,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, } EXPORT_SYMBOL_GPL(i2c_new_scanned_device); -struct i2c_client * -i2c_new_probed_device(struct i2c_adapter *adap, - struct i2c_board_info *info, - unsigned short const *addr_list, - int (*probe)(struct i2c_adapter *adap, unsigned short addr)) -{ - struct i2c_client *client; - - client = i2c_new_scanned_device(adap, info, addr_list, probe); - return IS_ERR(client) ? NULL : client; -} -EXPORT_SYMBOL_GPL(i2c_new_probed_device); - struct i2c_adapter *i2c_get_adapter(int nr) { struct i2c_adapter *adapter; diff --git a/include/linux/i2c.h b/include/linux/i2c.h index f6b942150631b..a32f3297d4226 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -453,12 +453,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, unsigned short const *addr_list, int (*probe)(struct i2c_adapter *adap, unsigned short addr)); -struct i2c_client * -i2c_new_probed_device(struct i2c_adapter *adap, - struct i2c_board_info *info, - unsigned short const *addr_list, - int (*probe)(struct i2c_adapter *adap, unsigned short addr)); - /* Common custom probe functions */ int i2c_probe_func_quick_read(struct i2c_adapter *adap, unsigned short addr); -- 2.20.1