Claude review: drm/panthor: Pass an iomem pointer to GPU register access helpers

Claude Code Review Bot
2026-04-11T23:38:14Z

Patch Review

**Approach**: Mechanical conversion of `gpu_read/gpu_write` helpers from taking `struct panthor_device *` to `void __iomem *`, with all call sites passing `ptdev->iomem`.

This is clean and correct. The conversion is straightforward and the poll timeout macros are properly updated. No concerns.

One minor style note: the forward declarations in the PANTHOR_IRQ_HANDLER macro use the new `iomem` parameter before the function definitions appear below the macro. This works because the macro is expanded at instantiation time, but it creates a slight ordering dependency that could confuse readers. Not a blocker.

---
Generated by Claude Code Patch Reviewer