summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2024-01-11 19:43:51 +0100
committerDanilo Krummrich <dakr@redhat.com>2024-01-11 19:53:45 +0100
commit76ced42347100effcc8c4bd159fc7caa5f9eb220 (patch)
tree44445ba4feb758b0d427283168ba822369cc8ad4
parentdb90228899f51bebb4babbe02a4fd4ac47ad5ecb (diff)
nova: gpu: convert tabs to spaces and remove trailing characters
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
-rw-r--r--drivers/gpu/drm/nova/gpu.rs50
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/gpu/drm/nova/gpu.rs b/drivers/gpu/drm/nova/gpu.rs
index e53118d69570..30c248bd2112 100644
--- a/drivers/gpu/drm/nova/gpu.rs
+++ b/drivers/gpu/drm/nova/gpu.rs
@@ -5,7 +5,7 @@ use kernel::{
error::Result,
io_mem::IoMem,
c_str,
- device::{self, Device, RawDevice},
+ device::{self, Device, RawDevice},
firmware::{Firmware},
pci,
};
@@ -19,7 +19,7 @@ pub(crate) enum CardType {
GA100 = 0x170,
AD100 = 0x190,
}
-
+
pub(crate) struct Gpu {
booter_load_fw: Firmware,
booter_unload_fw: Firmware,
@@ -32,35 +32,35 @@ pub(crate) struct Gpu {
impl Gpu {
pub(crate) fn new(card_type: CardType, bar: IoMem<BAR_SIZE>) -> Self
{
- Self {
- booter_load_fw: Firmware::new(),
- booter_unload_fw: Firmware::new(),
- gsp_fw: Firmware::new(),
- card_type: card_type,
- bar: bar,
- bios: Bios::new(),
- }
+ Self {
+ booter_load_fw: Firmware::new(),
+ booter_unload_fw: Firmware::new(),
+ gsp_fw: Firmware::new(),
+ card_type: card_type,
+ bar: bar,
+ bios: Bios::new(),
+ }
}
-
+
pub(crate) fn init(&mut self, dev: &mut pci::Device) -> Result {
- match self.booter_load_fw.request(c_str!("nvidia/ad102/gsp/booter_load-535.113.01.bin"), dev) {
- Err(e) => return Err(e),
- Ok(_) => ()
- }
+ match self.booter_load_fw.request(c_str!("nvidia/ad102/gsp/booter_load-535.113.01.bin"), dev) {
+ Err(e) => return Err(e),
+ Ok(_) => ()
+ }
- match self.booter_unload_fw.request(c_str!("nvidia/ad102/gsp/booter_unload-535.113.01.bin"), dev) {
- Err(e) => return Err(e),
- Ok(_) => ()
- }
+ match self.booter_unload_fw.request(c_str!("nvidia/ad102/gsp/booter_unload-535.113.01.bin"), dev) {
+ Err(e) => return Err(e),
+ Ok(_) => ()
+ }
- match self.gsp_fw.request(c_str!("nvidia/ad102/gsp/gsp-535.113.01.bin"), dev) {
- Err(e) => return Err(e),
- Ok(_) => (),
- }
+ match self.gsp_fw.request(c_str!("nvidia/ad102/gsp/gsp-535.113.01.bin"), dev) {
+ Err(e) => return Err(e),
+ Ok(_) => (),
+ }
- self.bios.probe(&self.bar)?;
+ self.bios.probe(&self.bar)?;
- self.bios.find_fwsec()?;
+ self.bios.find_fwsec()?;
Ok(())
}
}