From patchwork Tue Aug 21 15:02:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 960511 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41vvDx2dHsz9s4V for ; Wed, 22 Aug 2018 01:08:01 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=the-dreams.de Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41vvDx11ZszF1d7 for ; Wed, 22 Aug 2018 01:08:01 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=the-dreams.de X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=the-dreams.de (client-ip=88.99.104.3; helo=pokefinder.org; envelope-from=wsa@the-dreams.de; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=the-dreams.de Received: from pokefinder.org (sauhun.de [88.99.104.3]) by lists.ozlabs.org (Postfix) with ESMTP id 41vv6w4Tw5zF0hg for ; Wed, 22 Aug 2018 01:02:46 +1000 (AEST) Received: from localhost (p54B3375F.dip0.t-ipconnect.de [84.179.55.95]) by pokefinder.org (Postfix) with ESMTPSA id 0E8D92D8F92; Tue, 21 Aug 2018 17:02:43 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Subject: [PATCH 0/2] i2c: remove deprecated attach_adapter callback Date: Tue, 21 Aug 2018 17:02:38 +0200 Message-Id: <20180821150240.19964-1-wsa@the-dreams.de> X-Mailer: git-send-email 2.11.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wolfram Sang , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" So, I wanted to do this in the next cycle, but Linus seems to want it this cycle already [1], so here it is: Remove the attach_adapter callback from the 2.4 times by converting the last user to a custom probing mechanism based on deferred probing. We used this already in commit ac397c80de89 ("ALSA: ppc: keywest: drop using attach adapter") successfully on HW, so we agreed to use it on the windtunnel driver as well. With the last user gone, we can then remove the callback \o/ I think this allows for more cleanup in the core, but let's do this later and focus on the removal for now. Tested on a Renesas R-Car Salvator-XS board (M3N) by using and rebinding various I2C busses. Build bot and checkpatch are happy, too. I'd like to send a pull request to Linus this merge window, so looking forward to super fast comments, acks, etc... Thanks, Wolfram [1] http://patchwork.ozlabs.org/patch/959322/#1976742 Wolfram Sang (2): macintosh: therm_windtunnel: drop using attach_adapter i2c: remove deprecated attach_adapter callback drivers/i2c/i2c-core-base.c | 11 +---------- drivers/macintosh/therm_windtunnel.c | 25 +++++++++++++++++++++++-- include/linux/i2c.h | 6 ------ 3 files changed, 24 insertions(+), 18 deletions(-)