printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / ptp_mock.h
blob72eb401034d935b72bfb49a904ffb404b9d430ba
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Mock-up PTP Hardware Clock driver for virtual network devices
5 * Copyright 2023 NXP
6 */
8 #ifndef _PTP_MOCK_H_
9 #define _PTP_MOCK_H_
11 struct device;
12 struct mock_phc;
14 #if IS_ENABLED(CONFIG_PTP_1588_CLOCK_MOCK)
16 struct mock_phc *mock_phc_create(struct device *dev);
17 void mock_phc_destroy(struct mock_phc *phc);
18 int mock_phc_index(struct mock_phc *phc);
20 #else
22 static inline struct mock_phc *mock_phc_create(struct device *dev)
24 return NULL;
27 static inline void mock_phc_destroy(struct mock_phc *phc)
31 static inline int mock_phc_index(struct mock_phc *phc)
33 return -1;
36 #endif
38 #endif /* _PTP_MOCK_H_ */