]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: vbios: use FromBytes for PmuLookupTable header
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 28 Oct 2025 15:07:37 +0000 (00:07 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Wed, 5 Nov 2025 11:29:47 +0000 (20:29 +0900)
commit7f74842d95d1a24c68d23320de4f3eb27e6ba82b
treeb9301fdc513fcb895a8010145eeb2ae34000c665
parente4ead68a390511384d6af7bc9d00835dd6185e3b
gpu: nova-core: vbios: use FromBytes for PmuLookupTable header

Use `from_bytes_copy_prefix` to create the `PmuLookupTable` header
instead of building it ourselves from the bytes stream. This lets us
remove a few `as` conversions and array accesses.

Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251029-nova-vbios-frombytes-v1-2-ac441ebc1de3@nvidia.com>
drivers/gpu/nova-core/vbios.rs