lkml.org 
[lkml]   [2020]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/13] MIPS: machine: Add get_system_type callback
Date
The global get_system_type() function in arch/mips/generic/ will then be
modified in a subsequent patch to call this callback if provided.

This change will allow mips_machine implementations to override the
behaviour of the global get_system_type() function.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
arch/mips/include/asm/machine.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/mips/include/asm/machine.h b/arch/mips/include/asm/machine.h
index 29ca344a8cab..433257e08d83 100644
--- a/arch/mips/include/asm/machine.h
+++ b/arch/mips/include/asm/machine.h
@@ -16,6 +16,7 @@ struct mips_machine {
bool (*detect)(void);
const void *(*fixup_fdt)(const void *fdt, const void *match_data);
unsigned int (*measure_hpt_freq)(void);
+ const char *(*get_system_type)(struct device_node *dtb);
};

extern long __mips_machines_start;
--
2.27.0
\
 
 \ /
  Last update: 2020-08-03 19:02    [W:0.132 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site