]> Gentwo Git Trees - linux/.git/commit
gpu: nova-core: vbios: use FromBytes for PcirStruct
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 28 Oct 2025 15:07:38 +0000 (00:07 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Wed, 5 Nov 2025 11:29:47 +0000 (20:29 +0900)
commit56bb4b17a696a91aeaf7939d467a4f586edb01c6
treec49d2b761302f02703982a3b61b42ede7c0ac0fb
parent7f74842d95d1a24c68d23320de4f3eb27e6ba82b
gpu: nova-core: vbios: use FromBytes for PcirStruct

Use `from_bytes_copy_prefix` to create `PcirStruct` instead of building
it ourselves from the bytes stream. This lets us remove a few array
accesses and results in shorter code.

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