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:
Anas Nashif 2019-06-25 15:53:53 -04:00
commit f901e26de9
14 changed files with 74 additions and 59 deletions

View file

@ -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)

View file

@ -5,7 +5,7 @@
*/
#include <syscall_handler.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
Z_SYSCALL_HANDLER(hwinfo_get_device_id, buffer, length) {

View file

@ -5,7 +5,7 @@
*/
#include <soc.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <string.h>
struct imxrt_uid {

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <string.h>
#include <fsl_sim.h>

View file

@ -5,7 +5,7 @@
*/
#include <soc.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <string.h>
struct nrf_uid {

View file

@ -5,7 +5,7 @@
*/
#include <device.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <init.h>
#include <soc.h>
#include <string.h>

View file

@ -5,7 +5,7 @@
*/
#include <soc.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <string.h>
struct sam0_uid {

View file

@ -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>

View file

@ -5,7 +5,7 @@
*/
#include <soc.h>
#include <hwinfo.h>
#include <drivers/hwinfo.h>
#include <string.h>
struct stm32_uid {

View file

@ -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)
{