Skip to content

Commit d9e89b5

Browse files
committed
Added include guards
1 parent 95923a4 commit d9e89b5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

i2c.h

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with Radeonvolt. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17+
#ifndef I2C_H
18+
#define I2C_H
19+
1720
#include "types.h"
1821

1922
#define RV8XX_GPIO_PIN_SCL 0x29
@@ -108,3 +111,5 @@ void i2c_write_byte(void *base, u8 address, u8 offset, u8 value);
108111
*/
109112
u8 i2c_read_byte(void *base, u8 address, u8 offset);
110113

114+
#endif
115+

types.h

+5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with Radeonvolt. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17+
#ifndef TYPES_H
18+
#define TYPES_H
19+
1720
#include <stdint.h>
1821

1922
typedef uint8_t u8;
2023
typedef uint16_t u16;
2124
typedef uint32_t u32;
2225

26+
#endif
27+

vt1165.h

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with Radeonvolt. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17+
#ifndef VT1165_H
18+
#define VT1165_H
19+
1720
#include "types.h"
1821

1922
#define VT1165_ADDRESS 0x70
@@ -86,3 +89,5 @@ float vt1165_get_voltage(struct rv8xx_i2c *i2c, u8 index);
8689
*/
8790
void vt1165_set_voltage(struct rv8xx_i2c *i2c, u8 index, u8 value);
8891

92+
#endif
93+

0 commit comments

Comments
 (0)