summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/battery_smart.h6
-rw-r--r--include/case_closed_debug.h6
-rw-r--r--include/charge_manager.h6
-rw-r--r--include/charge_ramp.h6
-rw-r--r--include/compile_time_macros.h6
-rw-r--r--include/consumer.h6
-rw-r--r--include/crc.h6
-rw-r--r--include/crc8.h6
-rw-r--r--include/ec_commands.h6
-rw-r--r--include/inductive_charging.h4
-rw-r--r--include/math_util.h6
-rw-r--r--include/pmu_tpschrome.h6
-rw-r--r--include/producer.h6
-rw-r--r--include/queue.h6
-rw-r--r--include/queue_policies.h6
-rw-r--r--include/rsa.h6
-rw-r--r--include/sha1.h6
-rw-r--r--include/sha256.h6
-rw-r--r--include/smbus.h6
-rw-r--r--include/spi_flash_reg.h6
-rw-r--r--include/sps.h4
-rw-r--r--include/stack_trace.h6
-rw-r--r--include/task_id.h6
-rw-r--r--include/temp_sensor_chip.h6
-rw-r--r--include/usb.h6
-rw-r--r--include/usb_api.h6
-rw-r--r--include/usb_bb.h6
-rw-r--r--include/usb_console.h6
-rw-r--r--include/usb_hid.h4
-rw-r--r--include/usb_pd.h6
-rw-r--r--include/usb_pd_tcpc.h6
-rw-r--r--include/usb_pd_tcpm.h6
32 files changed, 93 insertions, 93 deletions
diff --git a/include/battery_smart.h b/include/battery_smart.h
index 428608e5f4..c5fd1d6eec 100644
--- a/include/battery_smart.h
+++ b/include/battery_smart.h
@@ -5,8 +5,8 @@
* Smart battery v1.0
* Smart battery charger v1.1
*/
-#ifndef __CROS_EC_SMART_BATTERY_H
-#define __CROS_EC_SMART_BATTERY_H
+#ifndef __CROS_EC_BATTERY_SMART_H
+#define __CROS_EC_BATTERY_SMART_H
#include "common.h"
@@ -153,5 +153,5 @@ int sb_read_string(int port, int slave_addr, int offset, uint8_t *data,
/* Write to battery */
int sb_write(int cmd, int param);
-#endif /* __CROS_EC_SMART_BATTERY_H */
+#endif /* __CROS_EC_BATTERY_SMART_H */
diff --git a/include/case_closed_debug.h b/include/case_closed_debug.h
index 5445022ec3..82c9c9548f 100644
--- a/include/case_closed_debug.h
+++ b/include/case_closed_debug.h
@@ -4,8 +4,8 @@
*
* Case Closed Debug interface
*/
-#ifndef INCLUDE_CASE_CLOSED_DEBUG_H
-#define INCLUDE_CASE_CLOSED_DEBUG_H
+#ifndef __CROS_EC_CASE_CLOSED_DEBUG_H
+#define __CROS_EC_CASE_CLOSED_DEBUG_H
enum ccd_mode {
/*
@@ -33,4 +33,4 @@ enum ccd_mode {
*/
void ccd_set_mode(enum ccd_mode new_mode);
-#endif /* INCLUDE_CASE_CLOSED_DEBUG_H */
+#endif /* __CROS_EC_CASE_CLOSED_DEBUG_H */
diff --git a/include/charge_manager.h b/include/charge_manager.h
index d1bd840a9e..7661e0d7e5 100644
--- a/include/charge_manager.h
+++ b/include/charge_manager.h
@@ -3,8 +3,8 @@
* found in the LICENSE file.
*/
-#ifndef __CHARGE_MANAGER_H
-#define __CHARGE_MANAGER_H
+#ifndef __CROS_EC_CHARGE_MANAGER_H
+#define __CROS_EC_CHARGE_MANAGER_H
#include "common.h"
@@ -82,4 +82,4 @@ void board_set_charge_limit(int charge_ma);
/* Called on delayed override timeout */
void board_charge_manager_override_timeout(void);
-#endif /* __CHARGE_MANAGER_H */
+#endif /* __CROS_EC_CHARGE_MANAGER_H */
diff --git a/include/charge_ramp.h b/include/charge_ramp.h
index 72bcb27d1e..e7cb74b74b 100644
--- a/include/charge_ramp.h
+++ b/include/charge_ramp.h
@@ -5,8 +5,8 @@
/* Charge input current limit ramp header for Chrome EC */
-#ifndef __CROS_EC_CHG_RAMP_H
-#define __CROS_EC_CHG_RAMP_H
+#ifndef __CROS_EC_CHARGE_RAMP_H
+#define __CROS_EC_CHARGE_RAMP_H
#include "timer.h"
@@ -100,4 +100,4 @@ static inline void chg_ramp_charge_supplier_change(
#define chg_ramp_set_min_current board_set_charge_limit
#endif
-#endif /* __CROS_EC_CHG_RAMP_H */
+#endif /* __CROS_EC_CHARGE_RAMP_H */
diff --git a/include/compile_time_macros.h b/include/compile_time_macros.h
index 9db583a7f2..074fb4b256 100644
--- a/include/compile_time_macros.h
+++ b/include/compile_time_macros.h
@@ -5,8 +5,8 @@
/* Handy clever tricks */
-#ifndef __CROS_EC_TRICKS_H
-#define __CROS_EC_TRICKS_H
+#ifndef __CROS_EC_COMPILE_TIME_MACROS_H
+#define __CROS_EC_COMPILE_TIME_MACROS_H
/* Test an important condition at compile time, not run time */
#define _BA1_(cond, line) \
@@ -23,4 +23,4 @@
#define offsetof(type, member) __builtin_offsetof(type, member)
#endif
-#endif /* __CROS_EC_TRICKS_H */
+#endif /* __CROS_EC_COMPILE_TIME_MACROS_H */
diff --git a/include/consumer.h b/include/consumer.h
index d53d42a461..e66d2e769e 100644
--- a/include/consumer.h
+++ b/include/consumer.h
@@ -8,8 +8,8 @@
* a queue, and be notified of new additions to the queue, or of requests to
* flush (empty) the queue.
*/
-#ifndef INCLUDE_CONSUMER_H
-#define INCLUDE_CONSUMER_H
+#ifndef __CROS_EC_CONSUMER_H
+#define __CROS_EC_CONSUMER_H
#include "queue.h"
@@ -44,4 +44,4 @@ struct consumer {
struct consumer_ops const *ops;
};
-#endif /* INCLUDE_CONSUMER_H */
+#endif /* __CROS_EC_CONSUMER_H */
diff --git a/include/crc.h b/include/crc.h
index 73289ae213..6615885f27 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -3,8 +3,8 @@
* found in the LICENSE file.
*/
-#ifndef _CRC_H
-#define _CRC_H
+#ifndef __CROS_EC_CRC_H
+#define __CROS_EC_CRC_H
/* CRC-32 implementation with USB constants */
/* Note: it's a stateful CRC-32 to match the hardware block interface */
@@ -24,4 +24,4 @@ uint32_t crc32_result(void);
#endif /* CONFIG_HW_CRC */
-#endif /* _CRC_H */
+#endif /* __CROS_EC_CRC_H */
diff --git a/include/crc8.h b/include/crc8.h
index 94980effc5..de0dc196f9 100644
--- a/include/crc8.h
+++ b/include/crc8.h
@@ -4,8 +4,8 @@
*
* Very simple 8-bit CRC function.
*/
-#ifndef __EC_CRC8_H__
-#define __EC_CRC8_H__
+#ifndef __CROS_EC_CRC8_H
+#define __CROS_EC_CRC8_H
/**
* crc8
@@ -18,4 +18,4 @@
*/
uint8_t crc8(const uint8_t *data, int len);
-#endif /* __EC_CRC8_H__ */
+#endif /* __CROS_EC_CRC8_H */
diff --git a/include/ec_commands.h b/include/ec_commands.h
index a6441abb25..de603e6d1e 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -5,8 +5,8 @@
/* Host communication command constants for Chrome EC */
-#ifndef __CROS_EC_COMMANDS_H
-#define __CROS_EC_COMMANDS_H
+#ifndef __CROS_EC_EC_COMMANDS_H
+#define __CROS_EC_EC_COMMANDS_H
/*
* Current version of this protocol
@@ -3347,4 +3347,4 @@ struct ec_params_pd_write_log_entry {
#define EC_LPC_ADDR_OLD_PARAM EC_HOST_CMD_REGION1
#define EC_OLD_PARAM_SIZE EC_HOST_CMD_REGION_SIZE
-#endif /* __CROS_EC_COMMANDS_H */
+#endif /* __CROS_EC_EC_COMMANDS_H */
diff --git a/include/inductive_charging.h b/include/inductive_charging.h
index 60872914df..5c44e410aa 100644
--- a/include/inductive_charging.h
+++ b/include/inductive_charging.h
@@ -7,8 +7,8 @@
#include "gpio.h"
-#ifndef __INDUCTIVE_CHARGING_H
-#define __INDUCTIVE_CHARGING_H
+#ifndef __CROS_EC_INDUCTIVE_CHARGING_H
+#define __CROS_EC_INDUCTIVE_CHARGING_H
/*
* Interrupt handler for inductive charging signal.
diff --git a/include/math_util.h b/include/math_util.h
index e7dcc6cbec..07283cf000 100644
--- a/include/math_util.h
+++ b/include/math_util.h
@@ -5,8 +5,8 @@
/* Header file for common math functions. */
-#ifndef __CROS_MATH_UTIL_H
-#define __CROS_MATH_UTIL_H
+#ifndef __CROS_EC_MATH_UTIL_H
+#define __CROS_EC_MATH_UTIL_H
/* Fixed-point type */
typedef int32_t fp_t;
@@ -114,4 +114,4 @@ void rotate(const vector_3_t v, const matrix_3x3_t R, vector_3_t res);
-#endif /* __CROS_MATH_UTIL_H */
+#endif /* __CROS_EC_MATH_UTIL_H */
diff --git a/include/pmu_tpschrome.h b/include/pmu_tpschrome.h
index dc20aa8fd8..858c6ba145 100644
--- a/include/pmu_tpschrome.h
+++ b/include/pmu_tpschrome.h
@@ -5,8 +5,8 @@
* TPSChrome PMU APIs.
*/
-#ifndef __CROS_EC_TPSCHROME_H
-#define __CROS_EC_TPSCHROME_H
+#ifndef __CROS_EC_PMU_TPSCHROME_H
+#define __CROS_EC_PMU_TPSCHROME_H
#include "gpio.h"
@@ -294,5 +294,5 @@ int charge_keep_power_off(void);
*/
int pmu_board_init(void);
-#endif /* __CROS_EC_TPSCHROME_H */
+#endif /* __CROS_EC_PMU_TPSCHROME_H */
diff --git a/include/producer.h b/include/producer.h
index d120fbc145..b6a04883d6 100644
--- a/include/producer.h
+++ b/include/producer.h
@@ -8,8 +8,8 @@
* be notified when the queue is read from so that it can take action, such as
* adding new units to the queue.
*/
-#ifndef INCLUDE_PRODUCER_H
-#define INCLUDE_PRODUCER_H
+#ifndef __CROS_EC_PRODUCER_H
+#define __CROS_EC_PRODUCER_H
#include "queue.h"
@@ -38,4 +38,4 @@ struct producer {
struct producer_ops const *ops;
};
-#endif /* INCLUDE_PRODUCER_H */
+#endif /* __CROS_EC_PRODUCER_H */
diff --git a/include/queue.h b/include/queue.h
index d415b63a68..db3c8fe4c4 100644
--- a/include/queue.h
+++ b/include/queue.h
@@ -4,8 +4,8 @@
*
* Queue data structure.
*/
-#ifndef INCLUDE_QUEUE_H
-#define INCLUDE_QUEUE_H
+#ifndef __CROS_EC_QUEUE_H
+#define __CROS_EC_QUEUE_H
#include "common.h"
@@ -178,4 +178,4 @@ size_t queue_peek_memcpy(struct queue const *q,
result; \
})
-#endif /* INCLUDE_QUEUE_H */
+#endif /* __CROS_EC_QUEUE_H */
diff --git a/include/queue_policies.h b/include/queue_policies.h
index 61ab75c3a6..b9d698072f 100644
--- a/include/queue_policies.h
+++ b/include/queue_policies.h
@@ -4,8 +4,8 @@
*
* Queue policies.
*/
-#ifndef INCLUDE_QUEUE_POLICIES_H
-#define INCLUDE_QUEUE_POLICIES_H
+#ifndef __CROS_EC_QUEUE_POLICIES_H
+#define __CROS_EC_QUEUE_POLICIES_H
#include "queue.h"
#include "consumer.h"
@@ -48,4 +48,4 @@ void queue_remove_direct(struct queue_policy const *policy, size_t count);
extern struct producer const null_producer;
extern struct consumer const null_consumer;
-#endif /* INCLUDE_QUEUE_POLICIES_H */
+#endif /* __CROS_EC_QUEUE_POLICIES_H */
diff --git a/include/rsa.h b/include/rsa.h
index 9013e308a9..ab45695910 100644
--- a/include/rsa.h
+++ b/include/rsa.h
@@ -3,8 +3,8 @@
* found in the LICENSE file.
*/
-#ifndef _INCLUDE_RSA_H
-#define _INCLUDE_RSA_H
+#ifndef __CROS_EC_RSA_H
+#define __CROS_EC_RSA_H
#include "config.h"
@@ -53,4 +53,4 @@ void check_rw_signature(void);
#endif /* !__ASSEMBLER__ */
-#endif /* _INCLUDE_RSA_H */
+#endif /* __CROS_EC_RSA_H */
diff --git a/include/sha1.h b/include/sha1.h
index 79ede0206a..8dc0a76a95 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -5,8 +5,8 @@
/* SHA-1 functions */
-#ifndef _SHA1_H
-#define _SHA1_H
+#ifndef __CROS_EC_SHA1_H
+#define __CROS_EC_SHA1_H
#include "common.h"
#ifdef HOST_TOOLS_BUILD
@@ -33,4 +33,4 @@ void sha1_init(struct sha1_ctx *ctx);
void sha1_update(struct sha1_ctx *ctx, const uint8_t *data, uint32_t len);
uint8_t *sha1_final(struct sha1_ctx *ctx);
-#endif /* _SHA1_H */
+#endif /* __CROS_EC_SHA1_H */
diff --git a/include/sha256.h b/include/sha256.h
index 714d87351c..11260f9351 100644
--- a/include/sha256.h
+++ b/include/sha256.h
@@ -5,8 +5,8 @@
/* SHA-256 functions */
-#ifndef _CROS_EC_SHA256_H
-#define _CROS_EC_SHA256_H
+#ifndef __CROS_EC_SHA256_H
+#define __CROS_EC_SHA256_H
#include "common.h"
@@ -26,4 +26,4 @@ void SHA256_init(struct sha256_ctx *ctx);
void SHA256_update(struct sha256_ctx *ctx, const uint8_t *data, uint32_t len);
uint8_t *SHA256_final(struct sha256_ctx *ctx);
-#endif /* _CROS_EC_SHA256_H */
+#endif /* __CROS_EC_SHA256_H */
diff --git a/include/smbus.h b/include/smbus.h
index 8f1bfeb9c9..367ceceb8d 100644
--- a/include/smbus.h
+++ b/include/smbus.h
@@ -6,8 +6,8 @@
* @brief smbus interface APIs
* @see http://smbus.org/specs/smbus20.pdf
*/
-#ifndef __EC_SMBUS_H__
-#define __EC_SMBUS_H__
+#ifndef __CROS_EC_SMBUS_H
+#define __CROS_EC_SMBUS_H
/** Maximum transfer of a SMBUS block transfer */
#define SMBUS_MAX_BLOCK_SIZE 32
@@ -155,4 +155,4 @@ int smbus_read_block(uint8_t i2c_port, uint8_t slave_addr,
int smbus_read_string(int i2c_port, uint8_t slave_addr, uint8_t smbus_cmd,
uint8_t *data, uint8_t len);
-#endif /* __EC_SMBUS_H__ */
+#endif /* __CROS_EC_SMBUS_H */
diff --git a/include/spi_flash_reg.h b/include/spi_flash_reg.h
index de9737e4bc..e8d9144a6f 100644
--- a/include/spi_flash_reg.h
+++ b/include/spi_flash_reg.h
@@ -6,8 +6,8 @@
* SPI flash protection register translation functions for Chrome OS EC.
*/
-#ifndef __CROS_EC_SPI_FLASH_REGS_H
-#define __CROS_EC_SPI_FLASH_REGS_H
+#ifndef __CROS_EC_SPI_FLASH_REG_H
+#define __CROS_EC_SPI_FLASH_REG_H
#include "common.h"
@@ -65,4 +65,4 @@ int spi_flash_reg_to_protect(uint8_t sr1, uint8_t sr2, unsigned int *start,
int spi_flash_protect_to_reg(unsigned int start, unsigned int len, uint8_t *sr1,
uint8_t *sr2);
-#endif /* __CROS_EC_SPI_FLASH_REGS_H */
+#endif /* __CROS_EC_SPI_FLASH_REG_H */
diff --git a/include/sps.h b/include/sps.h
index 93be326b15..e60f43d96f 100644
--- a/include/sps.h
+++ b/include/sps.h
@@ -4,8 +4,8 @@
* found in the LICENSE file.
*/
-#ifndef __CROS_EC_INCLUDE_SPS_H
-#define __CROS_EC_INCLUDE_SPS_H
+#ifndef __CROS_EC_SPS_H
+#define __CROS_EC_SPS_H
#include "spi.h"
#include "util.h"
diff --git a/include/stack_trace.h b/include/stack_trace.h
index e8b37d1811..10a83814cc 100644
--- a/include/stack_trace.h
+++ b/include/stack_trace.h
@@ -5,8 +5,8 @@
/* Trace dump module */
-#ifndef __CROS_EC_TRACE_H
-#define __CROS_EC_TRACE_H
+#ifndef __CROS_EC_STACK_TRACE_H
+#define __CROS_EC_STACK_TRACE_H
#ifdef EMU_BUILD
/*
@@ -22,4 +22,4 @@ static inline void task_register_tracedump(void) { }
static inline void task_dump_trace(void) { }
#endif
-#endif /* __CROS_EC_TRACE_H */
+#endif /* __CROS_EC_STACK_TRACE_H */
diff --git a/include/task_id.h b/include/task_id.h
index 2f82e83a8b..db9ef7b3b1 100644
--- a/include/task_id.h
+++ b/include/task_id.h
@@ -5,8 +5,8 @@
/* define the task identifier of all compiled tasks */
-#ifndef __TASK_ID_H
-#define __TASK_ID_H
+#ifndef __CROS_EC_TASK_ID_H
+#define __CROS_EC_TASK_ID_H
/* excludes non-base tasks for test build */
#ifdef TEST_BUILD
@@ -60,4 +60,4 @@ enum {
};
#undef TASK
-#endif /* __TASK_ID_H */
+#endif /* __CROS_EC_TASK_ID_H */
diff --git a/include/temp_sensor_chip.h b/include/temp_sensor_chip.h
index 9b5f126d44..505fdec390 100644
--- a/include/temp_sensor_chip.h
+++ b/include/temp_sensor_chip.h
@@ -5,8 +5,8 @@
/* Temperature sensor module for LM4 chip */
-#ifndef __CROS_EC_CHIP_TEMP_SENSOR_H
-#define __CROS_EC_CHIP_TEMP_SENSOR_H
+#ifndef __CROS_EC_TEMP_SENSOR_CHIP_H
+#define __CROS_EC_TEMP_SENSOR_CHIP_H
/**
* Get the last polled value of the sensor.
@@ -18,4 +18,4 @@
*/
int chip_temp_sensor_get_val(int idx, int *temp_ptr);
-#endif /* __CROS_EC_CHIP_TEMP_SENSOR_H */
+#endif /* __CROS_EC_TEMP_SENSOR_CHIP_H */
diff --git a/include/usb.h b/include/usb.h
index df089d7136..88b6d27676 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -5,8 +5,8 @@
* USB definitions.
*/
-#ifndef USB_H
-#define USB_H
+#ifndef __CROS_EC_USB_H
+#define __CROS_EC_USB_H
#include <stddef.h> /* for wchar_t */
@@ -244,4 +244,4 @@ extern const uint8_t usb_string_desc[];
extern const void * const usb_fw_version;
extern const struct bos_context bos_ctx;
-#endif /* USB_H */
+#endif /* __CROS_EC_USB_H */
diff --git a/include/usb_api.h b/include/usb_api.h
index 193c948fb6..c73360fce0 100644
--- a/include/usb_api.h
+++ b/include/usb_api.h
@@ -9,8 +9,8 @@
* implementation.
*/
-#ifndef USB_API_H
-#define USB_API_H
+#ifndef __CROS_EC_USB_API_H
+#define __CROS_EC_USB_API_H
/*
* Initialize the USB peripheral, enabling its clock and configuring the DP/DN
@@ -42,4 +42,4 @@ void usb_disconnect(void);
*/
void usb_release(void);
-#endif /* USB_API_H */
+#endif /* __CROS_EC_USB_API_H */
diff --git a/include/usb_bb.h b/include/usb_bb.h
index 56864a6a1d..1d12e1305f 100644
--- a/include/usb_bb.h
+++ b/include/usb_bb.h
@@ -5,8 +5,8 @@
* USB billboard definitions.
*/
-#ifndef USB_BB_H
-#define USB_BB_H
+#ifndef __CROS_EC_USB_BB_H
+#define __CROS_EC_USB_BB_H
/* per Billboard Device Class Spec Revision 1.0 */
@@ -50,5 +50,5 @@ struct usb_bb_caps_base_descriptor {
/* Note, 7W (111b) is reserved */
-#endif /* USB_BB_H */
+#endif /* __CROS_EC_USB_BB_H */
diff --git a/include/usb_console.h b/include/usb_console.h
index 18526cfd87..d83fc480b0 100644
--- a/include/usb_console.h
+++ b/include/usb_console.h
@@ -5,8 +5,8 @@
/* USB serial console module */
-#ifndef __USB_CONSOLE_H
-#define __USB_CONSOLE_H
+#ifndef __CROS_EC_USB_CONSOLE_H
+#define __CROS_EC_USB_CONSOLE_H
#ifdef CONFIG_USB_CONSOLE
@@ -63,4 +63,4 @@ void usb_console_enable(int enabled);
#define usb_va_end(x)
#endif
-#endif /* __USB_CONSOLE_H */
+#endif /* __CROS_EC_USB_CONSOLE_H */
diff --git a/include/usb_hid.h b/include/usb_hid.h
index 89ec887342..d21449d659 100644
--- a/include/usb_hid.h
+++ b/include/usb_hid.h
@@ -5,8 +5,8 @@
* USB HID definitions.
*/
-#ifndef USB_HID_H
-#define USB_HID_H
+#ifndef __CROS_EC_USB_HID_H
+#define __CROS_EC_USB_HID_H
#define USB_HID_SUBCLASS_BOOT 1
#define USB_HID_PROTOCOL_KEYBOARD 1
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 2ed26431d9..7e3a0a61e3 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -5,8 +5,8 @@
/* USB Power delivery module */
-#ifndef __USB_PD_H
-#define __USB_PD_H
+#ifndef __CROS_EC_USB_PD_H
+#define __CROS_EC_USB_PD_H
#include "common.h"
@@ -1558,4 +1558,4 @@ static inline void pd_log_event(uint8_t type, uint8_t size_port,
static inline int pd_vdm_get_log_entry(uint32_t *payload) { return 0; }
#endif /* CONFIG_USB_PD_LOGGING */
-#endif /* __USB_PD_H */
+#endif /* __CROS_EC_USB_PD_H */
diff --git a/include/usb_pd_tcpc.h b/include/usb_pd_tcpc.h
index 0ddeab23d2..64d68f1f3a 100644
--- a/include/usb_pd_tcpc.h
+++ b/include/usb_pd_tcpc.h
@@ -5,8 +5,8 @@
/* USB Power delivery port controller */
-#ifndef __USB_PD_TCPC_H
-#define __USB_PD_TCPC_H
+#ifndef __CROS_EC_USB_PD_TCPC_H
+#define __CROS_EC_USB_PD_TCPC_H
#ifndef CONFIG_TCPC_I2C_BASE_ADDR
#define CONFIG_TCPC_I2C_BASE_ADDR 0x9c
@@ -35,4 +35,4 @@
void tcpc_i2c_process(int read, int port, int len, uint8_t *payload,
void (*send_response)(int));
-#endif /* __USB_PD_TCPC_H */
+#endif /* __CROS_EC_USB_PD_TCPC_H */
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 97624fd34c..c73ca100e1 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -5,8 +5,8 @@
/* USB Power delivery port management */
-#ifndef __USB_PD_TCPM_H
-#define __USB_PD_TCPM_H
+#ifndef __CROS_EC_USB_PD_TCPM_H
+#define __CROS_EC_USB_PD_TCPM_H
/* Default retry count for transmitting */
#define PD_RETRY_COUNT 3
@@ -256,4 +256,4 @@ int tcpm_get_message(int port, uint32_t *payload, int *head);
int tcpm_transmit(int port, enum tcpm_transmit_type type, uint16_t header,
const uint32_t *data);
-#endif /* __USB_PD_TCPM_H */
+#endif /* __CROS_EC_USB_PD_TCPM_H */