diff options
| author | Alice Ryhl <[email protected]> | 2025-07-11 08:04:38 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-07-11 14:30:30 +0000 |
| commit | 917b10d90990fd2138b5dbc2d22cfa428c070ade (patch) | |
| tree | 125d85270eb64391c80b7cb45b45eccc2e388ce0 /drivers/gpu/drm/lima/lima_sched.c | |
| parent | drm/amdgpu: Fix lifetime of struct amdgpu_task_info after ring reset (diff) | |
| download | kernel-917b10d90990fd2138b5dbc2d22cfa428c070ade.tar.gz kernel-917b10d90990fd2138b5dbc2d22cfa428c070ade.zip | |
drm: rust: rename as_ref() to from_raw() for drm constructors
The prefix as_* should not be used for a constructor. Constructors
usually use the prefix from_* instead.
Some prior art in the stdlib: Box::from_raw, CString::from_raw,
Rc::from_raw, Arc::from_raw, Waker::from_raw, File::from_raw_fd.
There is also prior art in the kernel crate: cpufreq::Policy::from_raw,
fs::File::from_raw_file, Kuid::from_raw, ARef::from_raw,
SeqFile::from_raw, VmaNew::from_raw, Io::from_raw.
Link: https://lore.kernel.org/r/aCd8D5IA0RXZvtcv@pollux
Signed-off-by: Alice Ryhl <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions
