1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2021 Broadcom. All Rights Reserved. The term
4 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
7 #ifndef __EFC_COMMON_H__
8 #define __EFC_COMMON_H__
10 #include <linux/pci.h>
22 #define efc_log_crit(efc, fmt, args...) \
23 dev_crit(&((efc)->pci)->dev, fmt, ##args)
25 #define efc_log_err(efc, fmt, args...) \
26 dev_err(&((efc)->pci)->dev, fmt, ##args)
28 #define efc_log_warn(efc, fmt, args...) \
29 dev_warn(&((efc)->pci)->dev, fmt, ##args)
31 #define efc_log_info(efc, fmt, args...) \
32 dev_info(&((efc)->pci)->dev, fmt, ##args)
34 #define efc_log_debug(efc, fmt, args...) \
35 dev_dbg(&((efc)->pci)->dev, fmt, ##args)
37 #endif /* __EFC_COMMON_H__ */