Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2281678lqo; Mon, 13 May 2024 13:22:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU36g1R+FKTphIPywOG87pLEwA/HN2FyGHyBKIxTalogk+Z3adF2tia4LSugEhFmunrKhYszWdaQOwjOrdU6JBuS9lMzDnLaTX/NCkT2g== X-Google-Smtp-Source: AGHT+IHM6XQibxfyOwmk2IP8zkPuaWpGesGbby86GiWgBLDbkVw8iv7XFc7J4gjnLz222Y0hdg8G X-Received: by 2002:a17:906:2b48:b0:a59:c9ce:338b with SMTP id a640c23a62f3a-a5a2d5f1479mr790283566b.35.1715631727764; Mon, 13 May 2024 13:22:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715631727; cv=pass; d=google.com; s=arc-20160816; b=NqR9Kq8snSkmHarjSL9SfZ72SCP9xODhrssV8HrgYFgfsXEjIZJMGM//oDultkRgPx 6OgtYI3DrRpoW1uqc6A0F1bRk3Moel1KwCe3csAJYnYGBvLor742DIRAXeSkMZv3FvBT QHk63pnXIZo5cqeGa3UhajgB0kgvXOvCzQM0HZXImBLXqisMM/HB9zaXu2XC8vVNjSRJ Bb7snBMq/z26BRkU27vuQUSDEqjfpsBNTXbs89065QlRN+dtd0r0SVgKJrioPvr0vGee MzNE3GgPuZmw67N8DMLAN+N8zh6DUt6pXJ/i3tXi+j0XdJv6pMjBnXSM3+KKyC4Vx4uh PBpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=KRH5X+1HYEC7611+i5xKKN04opWRJp5Kz9WR7lisqg0=; fh=vBDRmXoXcSIPqqoKV/rwuUq6CNhHzxp/kI4j5xSt2KU=; b=cM5BvR8sbXVdp9n6I+leWCw953oFljlTlf78cfBCyE/OyTZmvrxZ1bVWmrONRaC0Xm I07GyiuXayL13qlzXtO08kxM6OVAp75hxb2lsORMVprE6ou5ClJgcaUOe0E7Fy2YRnzR UaloZbOtABIiTQWLD5fM/+WOsjcVIHEnGmAIvd5CDT4lG4Oo41RH1RsjyiAfAIInnsJI YwiH16BZ2bOB4iVPt65bZaci3SHDgG4QlsJ5q9J+pM3QGvKWeGflcGdd7duDN7e2xBCp 6tR41ZTqQxQtsEUxOd4gLhyCrJ+OnQepSqcgYAe3iwUZ2/Jo8CaTtujR8G+i681ZPDvE FCNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kdo0IEK1; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-178063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178063-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba2ad7si560949166b.553.2024.05.13.13.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 13:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kdo0IEK1; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-178063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178063-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 908B51F24315 for ; Mon, 13 May 2024 20:14:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A833B7E579; Mon, 13 May 2024 20:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="kdo0IEK1" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73CA27D414 for ; Mon, 13 May 2024 20:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715631258; cv=none; b=t4F9Pb+3p0ARVX4+b1vf00dfAm2c+Y8vE6xvzVT7qIBFTsQYf6ATW7gZeK645u9t2jwRnZBP4wiJ+Ts85DrO1vIUp5i1H7WNhFmKtOnMTM/LfWf973HCG8bmoPV+3EIT9BCW99NwV/SupdRqy7gSOqAx2rZju9MulHUVQWFBpSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715631258; c=relaxed/simple; bh=55Wf+mAaH9z5EnP3Stxwcm/ef1ex9U3o3+2+2kyCC94=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vq3SQ1pRVEf0U8WxFr5JJ6K2VOIjz6O8VXbCwATjkzKmU4GY3Ufg5I/zKtBiyZOASYXvIRwD8QkBcEmRRMnttdJLp3aIkWB4bMWV/RMagfBCoCS2rq0LlBFh5lSwC9+YaLdCCOW/C8X4mhi4YykD+Obxv/7Ua78nWnPWz8yuVd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=kdo0IEK1; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=KRH5X+1HYEC761 1+i5xKKN04opWRJp5Kz9WR7lisqg0=; b=kdo0IEK1grh6ayBKMfTKflTiiICWC1 09xIzeBzFOmJCJ9JeaCjsEz76VDMedXuXoySUgiy7ncqBSWrgEZeTBGbMYDL5DfC R3OSu2QhpOV9TUrgECCiGplQ6aTuAo+gYYtVsWjT79HlT1dYROAiX8yvCEruT8Tj R3c6qE5nAg21zoqP4CePY74oGI37Grx3gjbHSpCEuCecfGiycQaq7f1XLB5VokII la9yt/unHDYuZgJnpbqV73vowZElBgOXjrTTDZTAAVzCN+Y5sJ4GaTQvvBanrZ7a GzhXubv8FRtdhgJFpveHkFVZ4nGwcDbpUdFec5a44wS1PHbRVnopC50w== Received: (qmail 2269724 invoked from network); 13 May 2024 22:14:10 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 13 May 2024 22:14:10 +0200 X-UD-Smtp-Session: l3s3148p1@Z3A3h1sY4IdehhtP From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Heiner Kallweit , Wolfram Sang , Sebastian Reichel , Peter Rosin , Jonathan Cameron , Laurent Pinchart , "Rob Herring (Arm)" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: sbs-manager: Remove class argument from i2c_mux_add_adapter() Date: Mon, 13 May 2024 22:11:16 +0200 Message-ID: <20240513201400.16589-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit 99a741aa7a2d ("i2c: mux: gpio: remove support for class-based device instantiation") removed the last call to i2c_mux_add_adapter() with a non-null class argument. Therefore the class argument can be removed. Note: Class-based device instantiation is a legacy mechanism which shouldn't be used in new code, so we can rule out that this argument may be needed again in the future. This driver was forgotten by the patch in the Fixes tag. Fixes: fec1982d7072 ("i2c: mux: Remove class argument from i2c_mux_add_adapter()") Signed-off-by: Wolfram Sang --- The to-be-fixed patch is only in linux-next in my i2c/for-next tree. We want to remove this unneeded parameter in the next mergewindow. I suggest that I just put it on top of my branch to avoid the dependencies. A quick ack would be super-awesome! Thanks. drivers/power/supply/sbs-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/sbs-manager.c b/drivers/power/supply/sbs-manager.c index 9e4141cffbf9..933b04806d10 100644 --- a/drivers/power/supply/sbs-manager.c +++ b/drivers/power/supply/sbs-manager.c @@ -358,7 +358,7 @@ static int sbsm_probe(struct i2c_client *client) /* register muxed i2c channels. One for each supported battery */ for (i = 0; i < SBSM_MAX_BATS; ++i) { if (data->supported_bats & BIT(i)) { - ret = i2c_mux_add_adapter(data->muxc, 0, i + 1, 0); + ret = i2c_mux_add_adapter(data->muxc, 0, i + 1); if (ret) break; } -- 2.43.0