From nobody Mon May 25 06:40:10 2026 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (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 9BC721F91E3 for ; Sun, 17 May 2026 17:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038527; cv=none; b=dyuWRW3C1vpzio2cV8sHEf5Rra7U9uHIE+TAoIrMLjUFhuilV8luEVKH84lgkp5owMrxMbWkYar0dCDsycVbbQ6v+WlhsGoYLTjAfR1lvJInymrV8REWcnyhTDvRkB7zXqSPF37WXcuEt+rN/niLWOp6h2t5drt7X/VATVBR8Dw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038527; c=relaxed/simple; bh=4i3U+9Yy4ls9YwFIxzycxJuN/TJC62hME9rytIzY3pg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NuzvgnX0Ghut2hfY3AXZe8e/s0ihGJEry5C4ifojH/x08MLK7nQ2lToUr2KDqvxlNaVqqkdT8+zboUe5pnf272FPxr8dpBcNoaDSi2MwSzQ2SBO/HFVXd9Cg91J7oHEd9aPuGPla6mHn2FUepxcbPrYdI24tUbEriDByZV0Yduo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=BFon1sMy; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="BFon1sMy" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779038522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yZmaAymEf94w5ri0n7R2r9elxJpUR1I7BbcC1iYQPFk=; b=BFon1sMyUxgtZ9EwV0Zjebho7wZlRIcgOzhTZgBAAI6SCEpiXJKSpLl9ooHVHDgWMuc/55 XOP/4aTutVKdr0JqDkdNOjgOh5cua7tLqAxSG3rwJT4P1JFUqpTk12zJRwuhRdCFmoCp0m thRrxBIEYUQNFGkPRRP5vpxgEDgf1Gg= From: Thorsten Blum To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Thorsten Blum , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] drm/bridge: sii902x: inline i2c_check_functionality check Date: Sun, 17 May 2026 19:21:37 +0200 Message-ID: <20260517172136.3321-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=883; i=thorsten.blum@linux.dev; h=from:subject; bh=4i3U+9Yy4ls9YwFIxzycxJuN/TJC62hME9rytIzY3pg=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmcPxV4+jOT2wK7vgReePpp8pv73KUGq1dcffLyZBBf4 N1vzOwXOkpZGMS4GGTFFFkezPoxw7e0pnKTScROmDmsTCBDGLg4BWAi7K4Mv1kNbC50+pzKlny5 c+2nKws+ZQkc5kjvuJ7pbxj97jtXXC/Df9cG993ut9nmXj44r+dSYLD2y5aezzlvvwa3NOxfJP5 XmBMA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Inline the i2c_check_functionality() check, since the function returns a boolean status rather than an error code. Signed-off-by: Thorsten Blum Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/sii902x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii9= 02x.c index ea543be4ae3e..38d176d4eef2 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -1158,9 +1158,7 @@ static int sii902x_probe(struct i2c_client *client) static const char * const supplies[] =3D {"iovcc", "cvcc12"}; int ret; =20 - ret =3D i2c_check_functionality(client->adapter, - I2C_FUNC_SMBUS_BYTE_DATA); - if (!ret) { + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { dev_err(dev, "I2C adapter not suitable\n"); return -EIO; }