diff options
Diffstat (limited to 'driver')
-rw-r--r-- | driver/accelgyro_bmi160.h | 6 | ||||
-rw-r--r-- | driver/accelgyro_lsm6ds0.h | 6 | ||||
-rw-r--r-- | driver/als_isl29035.h | 6 | ||||
-rw-r--r-- | driver/battery/sb_fw_update.h | 4 | ||||
-rw-r--r-- | driver/charger/bq24192.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24707a.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24715.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24725.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24735.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24738.h | 6 | ||||
-rw-r--r-- | driver/charger/bq24773.h | 6 | ||||
-rw-r--r-- | driver/charger/bq2589x.h | 6 | ||||
-rw-r--r-- | driver/charger/isl9237.h | 6 | ||||
-rw-r--r-- | driver/ina2xx.h | 6 | ||||
-rw-r--r-- | driver/ioexpander_pca9534.h | 6 | ||||
-rw-r--r-- | driver/led/lp5562.h | 6 | ||||
-rw-r--r-- | driver/mcdp28x0.h | 4 | ||||
-rw-r--r-- | driver/pi3usb30532.h | 6 | ||||
-rw-r--r-- | driver/pi3usb9281.h | 6 | ||||
-rw-r--r-- | driver/temp_sensor/g781.h | 6 | ||||
-rw-r--r-- | driver/temp_sensor/tmp432.h | 6 | ||||
-rw-r--r-- | driver/tsu6721.h | 6 |
22 files changed, 64 insertions, 64 deletions
diff --git a/driver/accelgyro_bmi160.h b/driver/accelgyro_bmi160.h index 51675d3248..9ef23864d8 100644 --- a/driver/accelgyro_bmi160.h +++ b/driver/accelgyro_bmi160.h @@ -5,8 +5,8 @@ /* BMI160 accelerometer and gyro and BMM150 compass module for Chrome EC */ -#ifndef __CROS_EC_ACCEL_BMI160_H -#define __CROS_EC_ACCEL_BMI160_H +#ifndef __CROS_EC_ACCELGYRO_BMI160_H +#define __CROS_EC_ACCELGYRO_BMI160_H #include "accelgyro.h" @@ -285,4 +285,4 @@ struct bmi160_drv_data_t { struct motion_data_t saved_data[3]; uint8_t flags; }; -#endif /* __CROS_EC_ACCEL_BMI160_H */ +#endif /* __CROS_EC_ACCELGYRO_BMI160_H */ diff --git a/driver/accelgyro_lsm6ds0.h b/driver/accelgyro_lsm6ds0.h index c71fc37767..93e21f55de 100644 --- a/driver/accelgyro_lsm6ds0.h +++ b/driver/accelgyro_lsm6ds0.h @@ -5,8 +5,8 @@ /* LSM6DS0 accelerometer and gyro module for Chrome EC */ -#ifndef __CROS_EC_ACCEL_LSM6DS0_H -#define __CROS_EC_ACCEL_LSM6DS0_H +#ifndef __CROS_EC_ACCELGYRO_LSM6DS0_H +#define __CROS_EC_ACCELGYRO_LSM6DS0_H #include "task.h" @@ -118,4 +118,4 @@ enum lsm6ds0_bdu { extern const struct accelgyro_drv lsm6ds0_drv; -#endif /* __CROS_EC_ACCEL_LSM6DS0_H */ +#endif /* __CROS_EC_ACCELGYRO_LSM6DS0_H */ diff --git a/driver/als_isl29035.h b/driver/als_isl29035.h index 212af7a50f..0546ceb2d2 100644 --- a/driver/als_isl29035.h +++ b/driver/als_isl29035.h @@ -5,9 +5,9 @@ * Intersil ILS29035 light sensor driver */ -#ifndef __CROS_EC_ALS_ILS29035_H -#define __CROS_EC_ALS_ILS29035_H +#ifndef __CROS_EC_ALS_ISL29035_H +#define __CROS_EC_ALS_ISL29035_H int isl29035_read_lux(int *lux, int af); -#endif /* __CROS_EC_ALS_ILS29035_H */ +#endif /* __CROS_EC_ALS_ISL29035_H */ diff --git a/driver/battery/sb_fw_update.h b/driver/battery/sb_fw_update.h index aaf2c88da0..c4c794e28c 100644 --- a/driver/battery/sb_fw_update.h +++ b/driver/battery/sb_fw_update.h @@ -40,8 +40,8 @@ * 9. cmd.0x35.read.status */ -#ifndef __EC_SB_FW_UPDATE__ -#define __EC_SB_FW_UPDATE__ +#ifndef __CROS_EC_SB_FW_UPDATE_H +#define __CROS_EC_SB_FW_UPDATE_H #define SB_FW_UPDATE_CMD_WRITE_WORD 0x35 #define SB_FW_UPDATE_CMD_WRITE_WORD_PREPARE 0x1000 diff --git a/driver/charger/bq24192.h b/driver/charger/bq24192.h index 4177dc5c2c..6cf5fdecdb 100644 --- a/driver/charger/bq24192.h +++ b/driver/charger/bq24192.h @@ -5,8 +5,8 @@ * TI bq24192 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24192_H -#define __CROS_EC_CHARGER_BQ24192_H +#ifndef __CROS_EC_BQ24192_H +#define __CROS_EC_BQ24192_H #define BQ24192_ADDR 0xd6 @@ -25,4 +25,4 @@ #define BQ24192_DEVICE_ID 0x2b -#endif /* __CROS_EC_CHARGER_BQ24192_H */ +#endif /* __CROS_EC_BQ24192_H */ diff --git a/driver/charger/bq24707a.h b/driver/charger/bq24707a.h index 744e991283..14e89ed136 100644 --- a/driver/charger/bq24707a.h +++ b/driver/charger/bq24707a.h @@ -5,8 +5,8 @@ * TI bq24707A battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24707A_H -#define __CROS_EC_CHARGER_BQ24707A_H +#ifndef __CROS_EC_BQ24707A_H +#define __CROS_EC_BQ24707A_H /* Chip specific commands */ #define BQ24707_CHARGE_OPTION 0x12 @@ -40,5 +40,5 @@ #define CHARGE_WATCHDOG_88SEC (2 << 13) #define CHARGE_WATCHDOG_175SEC_DEFAULT (3 << 13) -#endif /* __CROS_EC_CHARGER_BQ24707A_H */ +#endif /* __CROS_EC_BQ24707A_H */ diff --git a/driver/charger/bq24715.h b/driver/charger/bq24715.h index 470c454f4d..bb5deec902 100644 --- a/driver/charger/bq24715.h +++ b/driver/charger/bq24715.h @@ -5,8 +5,8 @@ * TI bq24715 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24715_H -#define __CROS_EC_CHARGER_BQ24715_H +#ifndef __CROS_EC_BQ24715_H +#define __CROS_EC_BQ24715_H /* NOTES: * If battery is not present keep charge current register (0x14) at 0. @@ -127,4 +127,4 @@ #define INPUT_I_MAX (8064) #define INPUT_I_STEP (64) -#endif /* __CROS_EC_CHARGER_BQ24715_H */ +#endif /* __CROS_EC_BQ24715_H */ diff --git a/driver/charger/bq24725.h b/driver/charger/bq24725.h index 3deb41d125..b935501a20 100644 --- a/driver/charger/bq24725.h +++ b/driver/charger/bq24725.h @@ -5,8 +5,8 @@ * TI bq24725 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24725_H -#define __CROS_EC_CHARGER_BQ24725_H +#ifndef __CROS_EC_BQ24725_H +#define __CROS_EC_BQ24725_H /* Chip specific commands */ #define BQ24725_CHARGE_OPTION 0x12 @@ -46,5 +46,5 @@ #define CHARGE_WATCHDOG_88SEC (2 << 13) #define CHARGE_WATCHDOG_175SEC_DEFAULT (3 << 13) -#endif /* __CROS_EC_CHARGER_BQ24725_H */ +#endif /* __CROS_EC_BQ24725_H */ diff --git a/driver/charger/bq24735.h b/driver/charger/bq24735.h index 914ff2b903..05336cb41c 100644 --- a/driver/charger/bq24735.h +++ b/driver/charger/bq24735.h @@ -5,8 +5,8 @@ * TI bq24735 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24735_H -#define __CROS_EC_CHARGER_BQ24735_H +#ifndef __CROS_EC_BQ24735_H +#define __CROS_EC_BQ24735_H /* Chip specific commands */ #define BQ24735_CHARGE_OPTION 0x12 @@ -54,4 +54,4 @@ #define ACPRES_DEGLITCH_150MS (0 << 15) #define ACPRES_DEGLITCH_1300MS_DEFAULT (1 << 15) -#endif /* __CROS_EC_CHARGER_BQ24735_H */ +#endif /* __CROS_EC_BQ24735_H */ diff --git a/driver/charger/bq24738.h b/driver/charger/bq24738.h index bb07f90480..a40a9e193f 100644 --- a/driver/charger/bq24738.h +++ b/driver/charger/bq24738.h @@ -5,8 +5,8 @@ * TI bq24738 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24738_H -#define __CROS_EC_CHARGER_BQ24738_H +#ifndef __CROS_EC_BQ24738_H +#define __CROS_EC_BQ24738_H /* Chip specific commands */ #define BQ24738_CHARGE_OPTION 0x12 @@ -54,4 +54,4 @@ #define ACPRES_DEGLITCH_150MS (0 << 15) #define ACPRES_DEGLITCH_1300MS_DEFAULT (1 << 15) -#endif /* __CROS_EC_CHARGER_BQ24738_H */ +#endif /* __CROS_EC_BQ24738_H */ diff --git a/driver/charger/bq24773.h b/driver/charger/bq24773.h index 944ac2a814..50723d145f 100644 --- a/driver/charger/bq24773.h +++ b/driver/charger/bq24773.h @@ -5,8 +5,8 @@ * TI bq24773 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ24773_H -#define __CROS_EC_CHARGER_BQ24773_H +#ifndef __CROS_EC_BQ24773_H +#define __CROS_EC_BQ24773_H /* for i2c_read and i2c_write functions. */ #include "i2c.h" @@ -119,4 +119,4 @@ static inline int raw_write16(int offset, int value) return i2c_write16(I2C_PORT_CHARGER, I2C_ADDR_CHARGER, offset, value); } -#endif /* __CROS_EC_CHARGER_BQ24773_H */ +#endif /* __CROS_EC_BQ24773_H */ diff --git a/driver/charger/bq2589x.h b/driver/charger/bq2589x.h index b7959238e0..fd5119536c 100644 --- a/driver/charger/bq2589x.h +++ b/driver/charger/bq2589x.h @@ -5,8 +5,8 @@ * TI bq25890/bq25892/bq25895 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_BQ2589X_H -#define __CROS_EC_CHARGER_BQ2589X_H +#ifndef __CROS_EC_BQ2589X_H +#define __CROS_EC_BQ2589X_H /* Registers */ #define BQ2589X_REG_INPUT_CURR 0x00 @@ -77,4 +77,4 @@ #error BQ2589X unknown variant #endif -#endif /* __CROS_EC_CHARGER_BQ2589X_H */ +#endif /* __CROS_EC_BQ2589X_H */ diff --git a/driver/charger/isl9237.h b/driver/charger/isl9237.h index 30e5ed970d..f0b352e4b0 100644 --- a/driver/charger/isl9237.h +++ b/driver/charger/isl9237.h @@ -5,8 +5,8 @@ * Intersil ISL-9237 battery charger driver. */ -#ifndef __CROS_EC_CHARGER_ISL9237_H -#define __CROS_EC_CHARGER_ISL9237_H +#ifndef __CROS_EC_ISL9237_H +#define __CROS_EC_ISL9237_H #define ISL9237_ADDR 0x12 /* 7bit address 0001001 */ @@ -247,4 +247,4 @@ enum isl9237_fsm_state { #define INPUT_I_STEP 4 #define I2C_ADDR_CHARGER ISL9237_ADDR -#endif /* __CROS_EC_CHARGER_ISL9237_H */ +#endif /* __CROS_EC_ISL9237_H */ diff --git a/driver/ina2xx.h b/driver/ina2xx.h index 25b9f13296..b1ddbd1368 100644 --- a/driver/ina2xx.h +++ b/driver/ina2xx.h @@ -5,8 +5,8 @@ * TI INA219/231 Current/Power monitor driver. */ -#ifndef INA2XX_H -#define INA2XX_H +#ifndef __CROS_EC_INA2XX_H +#define __CROS_EC_INA2XX_H #define INA2XX_REG_CONFIG 0x00 #define INA2XX_REG_SHUNT_VOLT 0x01 @@ -108,4 +108,4 @@ int ina2xx_get_current(uint8_t idx); /* Return power in milliWatts */ int ina2xx_get_power(uint8_t idx); -#endif /* INA2XX_H */ +#endif /* __CROS_EC_INA2XX_H */ diff --git a/driver/ioexpander_pca9534.h b/driver/ioexpander_pca9534.h index 70b3e57662..d8cf896a49 100644 --- a/driver/ioexpander_pca9534.h +++ b/driver/ioexpander_pca9534.h @@ -5,8 +5,8 @@ * NXP PCA9534 I/O expander */ -#ifndef PCA9534_H -#define PCA9534_H +#ifndef __CROS_EC_IOEXPANDER_PCA9534_H +#define __CROS_EC_IOEXPANDER_PCA9534_H #define PCA9534_REG_INPUT 0x0 #define PCA9534_REG_OUTPUT 0x1 @@ -53,4 +53,4 @@ int pca9534_set_level(int port, int addr, int pin, int level); */ int pca9534_config_pin(int port, int addr, int pin, int is_input); -#endif /* PCA9534_H */ +#endif /* __CROS_EC_IOEXPANDER_PCA9534_H */ diff --git a/driver/led/lp5562.h b/driver/led/lp5562.h index aaa32e5fb0..fc0e7ec915 100644 --- a/driver/led/lp5562.h +++ b/driver/led/lp5562.h @@ -5,8 +5,8 @@ * TI LP5562 LED driver. */ -#ifndef LP5562_H -#define LP5562_H +#ifndef __CROS_EC_LP5562_H +#define __CROS_EC_LP5562_H #define LP5562_REG_ENABLE 0x00 #define LP5562_REG_OP_MODE 0x01 @@ -73,4 +73,4 @@ int lp5562_get_pc(int engine); /* Set program counter */ int lp5562_set_pc(int engine, int val); -#endif /* LP5562_H */ +#endif /* __CROS_EC_LP5562_H */ diff --git a/driver/mcdp28x0.h b/driver/mcdp28x0.h index 9c48cab32f..dabc510a64 100644 --- a/driver/mcdp28x0.h +++ b/driver/mcdp28x0.h @@ -5,8 +5,8 @@ * Megachips DisplayPort to HDMI protocol converter / level shifter driver. */ -#ifndef MCDP28X0_H -#define MCDP28X0_H +#ifndef __CROS_EC_MCDP28X0_H +#define __CROS_EC_MCDP28X0_H #define MCDP_OUTBUF_MAX 16 #define MCDP_INBUF_MAX 16 diff --git a/driver/pi3usb30532.h b/driver/pi3usb30532.h index f99c9561bb..c24edeb976 100644 --- a/driver/pi3usb30532.h +++ b/driver/pi3usb30532.h @@ -5,8 +5,8 @@ * Pericom PI3USB30532 USB port switch driver. */ -#ifndef PI3USB30532_H -#define PI3USB30532_H +#ifndef __CROS_EC_PI3USB30532_H +#define __CROS_EC_PI3USB30532_H #include <inttypes.h> @@ -75,4 +75,4 @@ int pi3usb30532_set_switch(uint8_t chip_idx, uint8_t mode); /* Resets PI3USB30532 to power on default value */ int pi3usb30532_reset(uint8_t chip_idx); -#endif /* PI3USB30532_H */ +#endif /* __CROS_EC_PI3USB30532_H */ diff --git a/driver/pi3usb9281.h b/driver/pi3usb9281.h index 7a23a869b3..929476c81b 100644 --- a/driver/pi3usb9281.h +++ b/driver/pi3usb9281.h @@ -5,8 +5,8 @@ * Pericom PI3USB9281 USB port switch. */ -#ifndef PI3USB9281_H -#define PI3USB9281_H +#ifndef __CROS_EC_PI3USB9281_H +#define __CROS_EC_PI3USB9281_H #define PI3USB9281_REG_DEV_ID 0x01 #define PI3USB9281_REG_CONTROL 0x02 @@ -107,4 +107,4 @@ int pi3usb9281_set_switches(int port, int open); /* Reset PI3USB9281. */ int pi3usb9281_reset(int port); -#endif /* PI3USB9281_H */ +#endif /* __CROS_EC_PI3USB9281_H */ diff --git a/driver/temp_sensor/g781.h b/driver/temp_sensor/g781.h index 6463155659..c9069749d2 100644 --- a/driver/temp_sensor/g781.h +++ b/driver/temp_sensor/g781.h @@ -5,8 +5,8 @@ /* G781 temperature sensor module for Chrome EC */ -#ifndef __CROS_EC_TEMP_SENSOR_G781_H -#define __CROS_EC_TEMP_SENSOR_G781_H +#ifndef __CROS_EC_G781_H +#define __CROS_EC_G781_H #define G781_I2C_ADDR 0x98 /* 7-bit address is 0x4C */ @@ -67,4 +67,4 @@ */ int g781_get_val(int idx, int *temp_ptr); -#endif /* __CROS_EC_TEMP_SENSOR_G781_H */ +#endif /* __CROS_EC_G781_H */ diff --git a/driver/temp_sensor/tmp432.h b/driver/temp_sensor/tmp432.h index acfaf39503..94930ee108 100644 --- a/driver/temp_sensor/tmp432.h +++ b/driver/temp_sensor/tmp432.h @@ -5,8 +5,8 @@ /* TMP432 temperature sensor module for Chrome EC */ -#ifndef __CROS_EC_TEMP_SENSOR_TMP432_H -#define __CROS_EC_TEMP_SENSOR_TMP432_H +#ifndef __CROS_EC_TMP432_H +#define __CROS_EC_TMP432_H #define TMP432_I2C_ADDR 0x98 /* 7-bit address is 0x4C */ @@ -93,4 +93,4 @@ */ int tmp432_get_val(int idx, int *temp_ptr); -#endif /* __CROS_EC_TEMP_SENSOR_TMP432_H */ +#endif /* __CROS_EC_TMP432_H */ diff --git a/driver/tsu6721.h b/driver/tsu6721.h index da9cbecbec..a077f9be8e 100644 --- a/driver/tsu6721.h +++ b/driver/tsu6721.h @@ -5,8 +5,8 @@ * TI TSU6721 USB port switch. */ -#ifndef TSU6721_H -#define TSU6721_H +#ifndef __CROS_EC_TSU6721_H +#define __CROS_EC_TSU6721_H #define TSU6721_REG_DEV_ID 0x01 #define TSU6721_REG_CONTROL 0x02 @@ -115,4 +115,4 @@ void tsu6721_set_pins(int mask); /* Reset TSU6721. */ void tsu6721_reset(void); -#endif /* TSU6721_H */ +#endif /* __CROS_EC_TSU6721_H */ |