[PATCH] gpu: nova-core: vbios: change PmuLookupTableEntry to relax alignment

Benno Lossin lossin at kernel.org
Mon Jul 14 10:51:52 UTC 2025


On Mon Jul 14, 2025 at 12:43 PM CEST, Rhys Lloyd wrote:
> +
> +    /// Construct a u32 from `self.data`.
> +    fn get_data(&self) -> u32 {

Getters in Rust usually don't start with `get_`. Using `data(&self)`
here also looks better IMO.

---
Cheers,
Benno

> +        u32::from_le_bytes(self.data)
> +    }
>  }


More information about the dri-devel mailing list