mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
Remove unneeded includes of registers.h
The registers.h file should only be included by code in the chip/ and board/ directories. Code outside those directories should not access chip-specific registers. (This change doesn't completely fix that, because common/extpower_usb.c uses STM32-specific regs, but we'll fix that in a separate CL.) BUG=chrome-os-partner:18343 BRANCH=none TEST=compile all platforms Change-Id: Ic499f56690c38663083423b0593800161a68e6e9 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/64382 Reviewed-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
committed by
ChromeBot
parent
c6dfa7e03b
commit
078dfabb68
@@ -11,7 +11,6 @@
|
||||
#include "console.h"
|
||||
#include "gpio.h"
|
||||
#include "hooks.h"
|
||||
#include "registers.h"
|
||||
#include "system.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "flash.h"
|
||||
#include "gpio.h"
|
||||
#include "host_command.h"
|
||||
#include "registers.h"
|
||||
#include "shared_mem.h"
|
||||
#include "system.h"
|
||||
#include "util.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "lpc.h"
|
||||
#include "power_button.h"
|
||||
#include "queue.h"
|
||||
#include "registers.h"
|
||||
#include "shared_mem.h"
|
||||
#include "system.h"
|
||||
#include "task.h"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "panic.h"
|
||||
#include "registers.h"
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "uart.h"
|
||||
|
||||
Reference in New Issue
Block a user