Commit 7c60d964 authored by Gary Guo's avatar Gary Guo Committed by Danilo Krummrich
Browse files

gpu: tyr: remove redundant `.as_ref()` for `dev_*` print

parent 559ac491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ fn probe(

        // We need this to be dev_info!() because dev_dbg!() does not work at
        // all in Rust for now, and we need to see whether probe succeeded.
        dev_info!(pdev.as_ref(), "Tyr initialized correctly.\n");
        dev_info!(pdev, "Tyr initialized correctly.\n");
        Ok(driver)
    }
}
+3 −3
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
        };

        dev_info!(
            pdev.as_ref(),
            pdev,
            "mali-{} id 0x{:x} major 0x{:x} minor 0x{:x} status 0x{:x}",
            model_name,
            self.gpu_id >> 16,
@@ -123,7 +123,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
        );

        dev_info!(
            pdev.as_ref(),
            pdev,
            "Features: L2:{:#x} Tiler:{:#x} Mem:{:#x} MMU:{:#x} AS:{:#x}",
            self.l2_features,
            self.tiler_features,
@@ -133,7 +133,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
        );

        dev_info!(
            pdev.as_ref(),
            pdev,
            "shader_present=0x{:016x} l2_present=0x{:016x} tiler_present=0x{:016x}",
            self.shader_present,
            self.l2_present,