summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/sfc-x1000.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-12-02 21:31:54 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-02 21:31:54 +0000
commit2512ed1c56a7c415f5a13ac2f38f72278e3ac660 (patch)
treee500f3c7ea491f996fe9c33aaa7ed62b9ca234b7 /firmware/target/mips/ingenic_x1000/sfc-x1000.h
parent4162a4618426b259c8b87c75c127f6f47b2b7ab0 (diff)
downloadrockbox-2512ed1c56a7c415f5a13ac2f38f72278e3ac660.tar.gz
rockbox-2512ed1c56a7c415f5a13ac2f38f72278e3ac660.zip
Make inline functions in headers 'static inline'
Future-proofing against newer versions of GCC/binutils which are stricter about the use of 'inline' functions in headers. Change-Id: Id620812ed340f0d790ba6c5b8b5cb1d700acfbbf
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/sfc-x1000.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/sfc-x1000.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/sfc-x1000.h b/firmware/target/mips/ingenic_x1000/sfc-x1000.h
index d28bcb6740..afb4aa3ce6 100644
--- a/firmware/target/mips/ingenic_x1000/sfc-x1000.h
+++ b/firmware/target/mips/ingenic_x1000/sfc-x1000.h
@@ -87,13 +87,13 @@ extern void sfc_irq_end(void);
87extern void sfc_set_clock(uint32_t freq); 87extern void sfc_set_clock(uint32_t freq);
88 88
89/* Set the device configuration register */ 89/* Set the device configuration register */
90inline void sfc_set_dev_conf(uint32_t conf) 90static inline void sfc_set_dev_conf(uint32_t conf)
91{ 91{
92 REG_SFC_DEV_CONF = conf; 92 REG_SFC_DEV_CONF = conf;
93} 93}
94 94
95/* Control the state of the write protect pin */ 95/* Control the state of the write protect pin */
96inline void sfc_set_wp_enable(bool en) 96static inline void sfc_set_wp_enable(bool en)
97{ 97{
98 jz_writef(SFC_GLB, WP_EN(en ? 1 : 0)); 98 jz_writef(SFC_GLB, WP_EN(en ? 1 : 0));
99} 99}