Get rid of 'remove_new' relic from platform driver struct
[linux.git] / drivers / gpu / drm / imagination / pvr_debugfs.h
blobebacbd13b84a0086a28cb13248a6e38a420b913e
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
2 /* Copyright (c) 2023 Imagination Technologies Ltd. */
4 #ifndef PVR_DEBUGFS_H
5 #define PVR_DEBUGFS_H
7 /* Forward declaration from <drm/drm_drv.h>. */
8 struct drm_minor;
10 #if defined(CONFIG_DEBUG_FS)
11 /* Forward declaration from "pvr_device.h". */
12 struct pvr_device;
14 /* Forward declaration from <linux/dcache.h>. */
15 struct dentry;
17 struct pvr_debugfs_entry {
18 const char *name;
19 void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
22 void pvr_debugfs_init(struct drm_minor *minor);
23 #else /* defined(CONFIG_DEBUG_FS) */
24 #include <linux/compiler_attributes.h>
26 static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {}
27 #endif /* defined(CONFIG_DEBUG_FS) */
29 #endif /* PVR_DEBUGFS_H */