mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu: Add FRU sysfs nodes only if needed
Create sysfs nodes for FRU data only if FRU data is available. Move the logic to FRU specific file. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -25,5 +25,7 @@
|
||||
#define __AMDGPU_FRU_EEPROM_H__
|
||||
|
||||
int amdgpu_fru_get_product_info(struct amdgpu_device *adev);
|
||||
int amdgpu_fru_sysfs_init(struct amdgpu_device *adev);
|
||||
void amdgpu_fru_sysfs_fini(struct amdgpu_device *adev);
|
||||
|
||||
#endif // __AMDGPU_FRU_EEPROM_H__
|
||||
|
||||
Reference in New Issue
Block a user