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/mediatek: simplify mtk_crtc allocation Date: Tue, 31 Mar 2026 16:46:56 +1000 Message-ID: In-Reply-To: <20260331002357.7995-1-rosenp@gmail.com> References: <20260331002357.7995-1-rosenp@gmail.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: drm/mediatek: simplify mtk_crtc allocation Author: Rosen Penev Patches: 1 Reviewed: 2026-03-31T16:46:56.089353 --- This is a single-patch cleanup that converts `struct mtk_crtc`'s `ddp_comp` from a separately-allocated pointer-to-pointer (`struct mtk_ddp_comp **ddp_comp`) into a flexible array member (`struct mtk_ddp_comp *ddp_comp[]`), combining two `devm_kzalloc`/`devm_kcalloc` calls into one. The transformation is straightforward and correct. The struct is only ever heap-allocated and never embedded, so using a FAM is safe. **Verdict: Looks good.** One minor style nit below. --- Generated by Claude Code Patch Reviewer