Make the trivial imx_soc_family() function an inline in imx_machdep.h.

The imx_machdep.c file is on the fast path to non-existance and this would
be the only thing left in it after some watchdog changes are completed.
This commit is contained in:
Ian Lepore 2018-01-24 18:10:11 +00:00
parent 553b3bb89d
commit 1f23f8b0fe
2 changed files with 6 additions and 8 deletions

View File

@ -105,10 +105,3 @@ imx_wdog_init_last_reset(vm_offset_t wdsr_phys)
}
}
u_int
imx_soc_family(void)
{
return (imx_soc_type() >> IMXSOC_FAMSHIFT);
}

View File

@ -61,7 +61,12 @@ void imx_wdog_init_last_reset(vm_offset_t _wdsr_phys);
#define IMXSOC_FAMSHIFT 28
u_int imx_soc_type(void);
u_int imx_soc_family(void);
static inline u_int
imx_soc_family(void)
{
return (imx_soc_type() >> IMXSOC_FAMSHIFT);
}
#endif