From nobody Mon May 25 06:40:20 2026 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 453113BB680 for ; Sun, 17 May 2026 17:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038450; cv=none; b=D/+qZLKE5I0+U3Z8yUK6+3BgMb1ScIOn2j7eS3tfeUGUjnLI1/IdczijLbYiKVBLCDuL9Wpqe91xV2ZCtmd1ufFfRgpSxUJ73Jufnpv4YvuSPAnUi9/0cCP0nWsEP0QhEjiIkk6W0sgG4y+oElDSB2gdUYCWHbfei07m68kc70g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038450; c=relaxed/simple; bh=vsoulUNuQqQHNX9oKC4vtpX947oQ8/AiVwpRZbftkfs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s7SwYXz5nTJ4AJpybu6f+fktvAAPUevnY0hV0bLpJktDTgX9IAXgps3I5MA/iZgA25EZ097/uFbg0QLl9LqZ9MnL7BuL1zC3OAS0vavNQEcbpCybyQVeWX5C4h6KYQVbUVqDBQ+Gg3p7aFaKtdyTudhQ6lsgTG7KBabpH6E8nbE= 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=rdy292ev; arc=none smtp.client-ip=91.218.175.183 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="rdy292ev" 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=1779038445; 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=CgLQ9Y1K8hEZbbpfjEz4NsFKN2z5LFsryS6T3jsNdJM=; b=rdy292evZIjJ7bQD0Tm4QxBSGw9mm7IbmCEHw7PJA0lN1uFeriqVQiUPk2ZflDbLmnIA55 s1sJE17S0UjGYLE4oYdDzwQ2Clis4u9p4i+EoKzu0dfh6N872fggVADXTc65hx5b46MYRQ awimpGS8X9p65YF3Ya7/nVKMQB4heiI= From: Thorsten Blum To: Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab Cc: Thorsten Blum , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] media: i2c: isl7998x: inline i2c_check_functionality check Date: Sun, 17 May 2026 19:20:35 +0200 Message-ID: <20260517172034.3033-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=825; i=thorsten.blum@linux.dev; h=from:subject; bh=vsoulUNuQqQHNX9oKC4vtpX947oQ8/AiVwpRZbftkfs=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmcPx41PNhyxPrceu+LoYs+5bxg3TiH8e6O2f96Phn6L VrKkn1IpaOUhUGMi0FWTJHlwawfM3xLayo3mUTshJnDygQyhIGLUwAmEviMkeFAow37xJ9NS9fN mPzRziztQLfrmuCEBA0r600fHh+1zLdi+F9YGbA/b3/p6/Dbaa8D5Jnfr3To1vT68Ur7GGdP9B+ TzXwA 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: Michael Tretter --- drivers/media/i2c/isl7998x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/i2c/isl7998x.c b/drivers/media/i2c/isl7998x.c index 5ffd53e005ee..96702c5eaa35 100644 --- a/drivers/media/i2c/isl7998x.c +++ b/drivers/media/i2c/isl7998x.c @@ -1460,8 +1460,7 @@ static int isl7998x_probe(struct i2c_client *client) int nr_inputs; int ret; =20 - ret =3D i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA); - if (!ret) { + if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) { dev_warn(&adapter->dev, "I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"); return -EIO;