[media] s5h1420: fix a buffer overflow when checking userspace params
[linux-2.6/btrfs-unstable.git] / drivers / input / mouse / vmmouse.h
blob6f126017a24c624a65dfeff3767733613f574d49
1 /*
2 * Driver for Virtual PS/2 Mouse on VMware and QEMU hypervisors.
4 * Copyright (C) 2014, VMware, Inc. All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.
9 */
11 #ifndef _VMMOUSE_H
12 #define _VMMOUSE_H
14 #ifdef CONFIG_MOUSE_PS2_VMMOUSE
15 #define VMMOUSE_PSNAME "VirtualPS/2"
17 int vmmouse_detect(struct psmouse *psmouse, bool set_properties);
18 int vmmouse_init(struct psmouse *psmouse);
19 #else
20 static inline int vmmouse_detect(struct psmouse *psmouse, bool set_properties)
22 return -ENOSYS;
24 static inline int vmmouse_init(struct psmouse *psmouse)
26 return -ENOSYS;
28 #endif
30 #endif