Linux-libre 5.4.48-gnu
[librecmc/linux-libre.git] / drivers / staging / comedi / comedi_compat32.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * comedi/comedi_compat32.h
4  * 32-bit ioctl compatibility for 64-bit comedi kernel module.
5  *
6  * Author: Ian Abbott, MEV Ltd. <abbotti@mev.co.uk>
7  * Copyright (C) 2007 MEV Ltd. <http://www.mev.co.uk/>
8  *
9  * COMEDI - Linux Control and Measurement Device Interface
10  * Copyright (C) 1997-2007 David A. Schleef <ds@schleef.org>
11  */
12
13 #ifndef _COMEDI_COMPAT32_H
14 #define _COMEDI_COMPAT32_H
15
16 #ifdef CONFIG_COMPAT
17
18 struct file;
19 long comedi_compat_ioctl(struct file *file, unsigned int cmd,
20                          unsigned long arg);
21
22 #else /* CONFIG_COMPAT */
23
24 #define comedi_compat_ioctl     NULL
25
26 #endif /* CONFIG_COMPAT */
27
28 #endif /* _COMEDI_COMPAT32_H */