From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 6ED093624A9 for ; Thu, 21 May 2026 19:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779393476; cv=none; b=aIdEx1vy3CtPUDB2b3QmIcYSSgFvGqCs0QDMkeNmdItBmbbqJkCG1AnRZ43gjunUugnF+7MPXTSPzOuZ6ReY2Xwe8cz6NnrwQ4bfSCl4Kj8iP/DJSzOAxhgjnJ/r3Qt8/qSnkZCWF+EN4vS9j0wYGZiuJimXb6Op0FhiXRdzOyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779393476; c=relaxed/simple; bh=AqCwkI/dpMbNl+kiiunF6ar0+CJqc/elqrs+Uj3cTxw=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=f2TD+759I+lEW9TdbanldyQw9F4SB9FmnRYlpGMfh5CxcJYBm9csTWFdFBP0qqIkvLZ6SrG5jm5Owjxy2XHpoivtNbojf0PzoWC0Z9VwnFdBoVqJxTpQpSj3sohrUXEV+E8SN/grQ36Hiv4tCAZzcSBm4TVKOr5WNqc7Cn4LZZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=RbA+9FpP; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="RbA+9FpP" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id D9E6F4E42D12; Thu, 21 May 2026 19:57:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 86FC96002C; Thu, 21 May 2026 19:57:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D8E0F107E8C45; Thu, 21 May 2026 21:57:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1779393469; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=AqCwkI/dpMbNl+kiiunF6ar0+CJqc/elqrs+Uj3cTxw=; b=RbA+9FpPvCQE6wB7yaimuqIyh4k2DPuIlD+sULLAYxlAnBhEm0TCtVlOwUVxKB/F3rb2v0 c5jkwZBpHoaYKEmkld9kuGwwu+WYpFFSCjX0qswYqtM531GHtP8MQGkphtbrga0LRzgKOS DZPqEZECcEtgNItdzvo8h6uX1nYOXEfTxpK2k9/SnsxHX3nuWCzGk6Ojn3cNzNAC42bQrs cQDufOoerY0udYbS9o/hhU8Ckmp0EeVZilFHlp+RNa4x7jI77wVqRixYWaycNDxGuvGLUX bl1EAEYeACZr/JvjEsL8pF1xEqlBBHlBVqmMnQjGN3IVxJRj746Nu4JlQ17U3w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 May 2026 21:57:40 +0200 Message-Id: Cc: , , , , , , , , To: "Damon Ding" , , , , , , , , From: "Luca Ceresoli" Subject: Re: [PATCH v1] drm/bridge: analogix_dp: Convert status check functions to bool X-Mailer: aerc 0.21.0 References: <20260521102716.1373519-1-damon.ding@rock-chips.com> In-Reply-To: <20260521102716.1373519-1-damon.ding@rock-chips.com> X-Last-TLS-Session-Version: TLSv1.3 On Thu May 21, 2026 at 12:27 PM CEST, Damon Ding wrote: > Convert analogix_dp_is_slave_video_stream_clock_on() and > analogix_dp_is_video_stream_on() from int to bool return type. > > This makes the code more readable and aligns with kernel best > practices for boolean status checks, while simplifying the > callers by removing unnecessary "=3D=3D 0" comparisons. > > Signed-off-by: Damon Ding Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com