Skip to content

Commit

Permalink
drm/amdgpu/fru: fix header guard and include header
Browse files Browse the repository at this point in the history
Fix the fru eeprom header guard and include it in the .c file.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed May 29, 2020
1 parent 3967ae6 commit d43f7ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "amdgpu_i2c.h"
#include "smu_v11_0_i2c.h"
#include "atom.h"
#include "amdgpu_fru_eeprom.h"

#define I2C_PRODUCT_INFO_ADDR 0xAC
#define I2C_PRODUCT_INFO_ADDR_SIZE 0x2
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*
*/

#ifndef __AMDGPU_PRODINFO_H__
#define __AMDGPU_PRODINFO_H__
#ifndef __AMDGPU_FRU_EEPROM_H__
#define __AMDGPU_FRU_EEPROM_H__

int amdgpu_fru_get_product_info(struct amdgpu_device *adev);

Expand Down

0 comments on commit d43f7ff

Please sign in to comment.