]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: add FbRange.len() and use it in boot.rs
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 10 Mar 2026 02:10:52 +0000 (19:10 -0700)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 10 Mar 2026 11:13:46 +0000 (20:13 +0900)
commita247f8a107b5ddbf21084599ad8d8190d1357de8
tree7d2c1196d9b72aed70e2649623b5ed8c8059012e
parentba6e088ac6df02dfca2b90c54f8bb3559aab162c
gpu: nova-core: add FbRange.len() and use it in boot.rs

A tiny simplification: now that FbLayout uses its own specific FbRange
type, add an FbRange.len() method, and use that to (very slightly)
simplify the calculation of Frts::frts_size initialization.

Suggested-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260310021125.117855-3-jhubbard@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/fb.rs
drivers/gpu/nova-core/gsp/boot.rs