mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-31 23:12:52 +00:00

Not registering hwmon because it's not available (SRIOV_VF and DGFX) is different from failing the initialization. Handle the errors appropriately. Cc: Badal Nilawar <badal.nilawar@intel.com> Cc: Karthik Poosa <karthik.poosa@intel.com> Reviewed-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-13-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
20 lines
359 B
C
20 lines
359 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_HWMON_H_
|
|
#define _XE_HWMON_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_device;
|
|
|
|
#if IS_REACHABLE(CONFIG_HWMON)
|
|
int xe_hwmon_register(struct xe_device *xe);
|
|
#else
|
|
static inline int xe_hwmon_register(struct xe_device *xe) { return 0; };
|
|
#endif
|
|
|
|
#endif /* _XE_HWMON_H_ */
|