From nobody Mon Dec 1 22:35:41 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40D9A30FC17 for ; Sat, 29 Nov 2025 16:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435531; cv=none; b=bS7xjgi44r60gLG8rv034q1FSPyrO89ghvRpNUwnZ86Uimk7ss8RFdTlliNS0bJT0dnVEG2KS/nvDsE6wfbn2m/l5LhxOfbyV15qydoDhhXDJ1GI/1T0ppPXXjN2kOQP5ml5D47r51DoTCuFxtQ534hYrYjTWMXSVifWOCpAIj8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435531; c=relaxed/simple; bh=lFoITZ+8y9h+znHwjqA5lzaUXuTbRHz9vr6xKWUfQoQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ip0ZxZd7KBKUAmjsCFyimU9D+qGD5pxWk5ubDT1mViYSU0qUyPLFwsjT1A2ECCORiBXczVSJES/gux9aouhySyQa0PBGcJ/s0GGV02OO3b5YKXgXjsB2Zy+zGvBS0njwIsn0sFJPtI1tFU0P0FKrdEpdaLgUja1kMreSDBcVbl0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Fioj0ztG; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Fioj0ztG" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-b7277324204so471670066b.0 for ; Sat, 29 Nov 2025 08:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1764435525; x=1765040325; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BNQekoeq5MvJ5okU84UxS4oYSbes7vTEJXlQrgYvFfA=; b=Fioj0ztGbpKi5xVbcQMDgGRjOEVhue1alt/Blss/r+GbLrSvS7xCBDV4X5tiABFWlb LkOF43MFCNFgY5cgFKPtCelS0ndktiNkCmDmdK0XSFU/iQg1nxebipsUzz9QmyUNbLdg afEqWn2RxQUsNyrQQG2U1Z9NsvnSj3tzqI6d9YDKl+MjPsQ6U1zaHpx76MomfOSj8sAq 4H7rIhtoM2kMoFZHiPsJmrtJPWA+YOrNuJUD2C/hRACM3xo23Dv6ON6wRHzaz3YEdOBV r/1Hvy6rlKupBqffZPjmm2Vq/zr7NSlB7iVSZGbNfqlxUhdM2HdpQBWTni/lwU8peTH7 k45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764435525; x=1765040325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BNQekoeq5MvJ5okU84UxS4oYSbes7vTEJXlQrgYvFfA=; b=s3D/bFsU9suqKK8zyTtYLMrqrKmM1JIVbc/5UTQNn3yXW7AofQHPqYszrD2/ZwtABb km/FBV2SwxnxR9wIifT3FTU3TVLkImEhGxr/ePYXww93gGjOT/qA/oKatQqKaWMygcAd y+dvN53SERpJiT+kcqqh2LgyCoyWXzdQQF5ZkGO0vlqwAaw22nGC5CM2fuVB+MXyF9TS vZv7S6u109DCgjVtwS4+UH98cvRghY3pEOFMzTF3iz8a/FOUWqB+4A3VTiT8ZhjQrrvu //pjVqsOo2NZzW7Osq1SmVekIpehcA/9CdCIFb8U7G/7x7Ekc3/5aaNAeRhLuxNItYJe ZR1g== X-Forwarded-Encrypted: i=1; AJvYcCX8Hqp8Rzc6uAauAXcSETpH2T3hAU8VIGNEbn/W/Sph7XD4xh+QDrjFRdOVdSF7qpoG5Ie4ccxExZ9QoPw=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0uXT5X4PtMossMGO2psIPbs19C/hNXmTWTtXU3fSdECvr+yxL XU7Lb6BmUKya1Uni945+/pojbCCYA1PmWGSRP2/PLlln3+3VKBUAJA69+CTlRAYggHE= X-Gm-Gg: ASbGncutdq9LP382VL1NXWTMbZ5tRhbpbO224tehedhJ+BNy5dlJa4x5aWNVj1Mgit9 a94W4FClbRpF+xLC/6JHKgAzPLb+/8ufwVO1J/o7h0vwqYGkASpoJr8xqIp9aZ/yp+p0bY2Twxa jmUfbEeB//8qiJz2FfwUGCJZh/q/Lswroilg5ogteBnVL2qdLKj39BQxNV686cvxOwaL7Mi42wo L7aMbS9GAlXFRtLDxuEUSPf/4XM9rivYB3Gai94fHpHuKjsFGFeJe05D4/F+SaI9dEu2d3Etwod abCdTYg6vkXzEFEPWCzpcfAPwqexaJrku5xB/6R7ZO2WQLWBiym4irEM365p9daJtjLG/9iW66U zt7AAGxDCIjt2a+iHSNfgtsV6MoMpUfWoIhzqIr/ciUTi/TYjAt0pDWY3s/IoAUpx5As3RGYof5 L6SSzVNtEm1BZDYaVI X-Google-Smtp-Source: AGHT+IH0MuHRfQrTehiJ52oUZvyc1bRjVVlQ90Y5BVCZU/AGDxq3c6qhZBRECgPEx5G8y1z2CMPY2A== X-Received: by 2002:a17:907:a09:b0:b76:7b8c:a6a2 with SMTP id a640c23a62f3a-b76c5513f0amr2236776366b.30.1764435525382; Sat, 29 Nov 2025 08:58:45 -0800 (PST) Received: from localhost ([2a02:8071:b783:6940:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b76f519e2a7sm746363266b.19.2025.11.29.08.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:58:45 -0800 (PST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Eddie James , Andi Shyti Cc: Ninad Palsule , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 11/12] i2c: fsi: Convert to fsi bus probe mechanism Date: Sat, 29 Nov 2025 17:57:47 +0100 Message-ID: <1311bce0d8617c7821cfe0769e97f13dc466d749.1764434226.git.ukleinek@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1926; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=lFoITZ+8y9h+znHwjqA5lzaUXuTbRHz9vr6xKWUfQoQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBpKyYerMbqnhdrESWnep/VE+BwW0xpjbtreFxEN ucImWFZ8nSJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaSsmHgAKCRCPgPtYfRL+ TonZCACcm2Jdwaa3XVZ2Cp3JYYBZY68UG0Sf3G/dj+JWPDhCBlZ+/+v7prYyU4O3d63j5jPdYaY EHU3cy3rKORxvZQ7O3dHJ8Q2skeRpnrR2wTftedZVfUPNiB5jYlJKSe3sx3ktLQbThCQ1z2Zbvi l3lkI4FFBwsAaYkhjWjMj3y3qF+uJZn1qQdQSZZsqQwJFFf27tnOaNp0FRCvfmBqGmdpuMEMr5a gc85eibDINIZDLq4D+16foZZgOyemHYvJKOMt5G438IZ32J4vutnfcPLxCpIxrHsLlkcUkrFaJy CKa7WQj6VFAJxp9cuDEC1oHlZC7RgE+vdw20Qp5r1jOx9j+O X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable The fsi bus got a dedicated probe function. Make use of that. This fixes a runtime warning about the driver needing to be converted to the bus probe method. Signed-off-by: Uwe Kleine-K=C3=B6nig --- drivers/i2c/busses/i2c-fsi.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index e98dd5dcac0f..3a7e577e6eac 100644 --- a/drivers/i2c/busses/i2c-fsi.c +++ b/drivers/i2c/busses/i2c-fsi.c @@ -674,8 +674,9 @@ static struct device_node *fsi_i2c_find_port_of_node(st= ruct device_node *fsi, return NULL; } =20 -static int fsi_i2c_probe(struct device *dev) +static int fsi_i2c_probe(struct fsi_device *fsi_dev) { + struct device *dev =3D &fsi_dev->dev; struct fsi_i2c_ctrl *i2c; struct fsi_i2c_port *port; struct device_node *np; @@ -735,14 +736,14 @@ static int fsi_i2c_probe(struct device *dev) list_add(&port->list, &i2c->ports); } =20 - dev_set_drvdata(dev, i2c); + fsi_set_drvdata(fsi_dev, i2c); =20 return 0; } =20 -static int fsi_i2c_remove(struct device *dev) +static void fsi_i2c_remove(struct fsi_device *fsi_dev) { - struct fsi_i2c_ctrl *i2c =3D dev_get_drvdata(dev); + struct fsi_i2c_ctrl *i2c =3D fsi_get_drvdata(fsi_dev); struct fsi_i2c_port *port, *tmp; =20 list_for_each_entry_safe(port, tmp, &i2c->ports, list) { @@ -750,8 +751,6 @@ static int fsi_i2c_remove(struct device *dev) i2c_del_adapter(&port->adapter); kfree(port); } - - return 0; } =20 static const struct fsi_device_id fsi_i2c_ids[] =3D { @@ -761,10 +760,10 @@ static const struct fsi_device_id fsi_i2c_ids[] =3D { =20 static struct fsi_driver fsi_i2c_driver =3D { .id_table =3D fsi_i2c_ids, + .probe =3D fsi_i2c_probe, + .remove =3D fsi_i2c_remove, .drv =3D { .name =3D "i2c-fsi", - .probe =3D fsi_i2c_probe, - .remove =3D fsi_i2c_remove, }, }; =20 --=20 2.47.3