cleanup: include/: move hwinfo.h to drivers/hwinfo.h
move hwinfo.h to drivers/hwinfo.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
6aa9c3a68f
commit
f901e26de9
14 changed files with 74 additions and 59 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <soc/efuse_reg.h>
|
||||
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
|
||||
ssize_t _impl_hwinfo_get_device_id(u8_t *buffer, size_t length)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <syscall_handler.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
|
||||
Z_SYSCALL_HANDLER(hwinfo_get_device_id, buffer, length) {
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <soc.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
|
||||
struct imxrt_uid {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
#include <fsl_sim.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <soc.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
|
||||
struct nrf_uid {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <device.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <init.h>
|
||||
#include <soc.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <soc.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
|
||||
struct sam0_uid {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <misc/printk.h>
|
||||
#include <shell/shell.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <logging/log.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <soc.h>
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
#include <string.h>
|
||||
|
||||
struct stm32_uid {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <hwinfo.h>
|
||||
#include <drivers/hwinfo.h>
|
||||
|
||||
ssize_t __weak z_impl_hwinfo_get_device_id(u8_t *buffer, size_t length)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue