spi: Rename of_spi_register_master() function
[linux/fpc-iii.git] / include / net / dcbevent.h
blob43e34131a53f1df3b3a88dcd8f06044a58409eac
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2010, Intel Corporation.
5 * Author: John Fastabend <john.r.fastabend@intel.com>
6 */
8 #ifndef _DCB_EVENT_H
9 #define _DCB_EVENT_H
11 enum dcbevent_notif_type {
12 DCB_APP_EVENT = 1,
15 #ifdef CONFIG_DCB
16 int register_dcbevent_notifier(struct notifier_block *nb);
17 int unregister_dcbevent_notifier(struct notifier_block *nb);
18 int call_dcbevent_notifiers(unsigned long val, void *v);
19 #else
20 static inline int
21 register_dcbevent_notifier(struct notifier_block *nb)
23 return 0;
26 static inline int unregister_dcbevent_notifier(struct notifier_block *nb)
28 return 0;
31 static inline int call_dcbevent_notifiers(unsigned long val, void *v)
33 return 0;
35 #endif /* CONFIG_DCB */
37 #endif