From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/dp: Add helper to validate DP lane counts Date: Fri, 05 Jun 2026 06:34:43 +1000 Message-ID: In-Reply-To: <20260604085220.2862986-3-damon.ding@rock-chips.com> References: <20260604085220.2862986-1-damon.ding@rock-chips.com> <20260604085220.2862986-3-damon.ding@rock-chips.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review **Status: Looks good, minor note** The helper is clean and correct: ```c static inline bool drm_dp_lane_count_is_valid(int lane_count) { return lane_count == 1 || lane_count == 2 || lane_count == 4; } ``` This correctly reflects the DP spec (1, 2, or 4 lanes only). Using a `static inline` in the header is appropriate for such a trivial function. One minor observation: there's no `drm_dp_lane_count_is_valid` user beyond this series. It might be worth mentioning in the commit message that other drivers could adopt it to replace ad-hoc checks, but that's a commit message nit, not a code issue. --- Generated by Claude Code Patch Reviewer