treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / input / mouse / focaltech.h
blob0d9023254e2d3d94f3fffb42accdd0110dbad400
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Focaltech TouchPad PS/2 mouse driver
5 * Copyright (c) 2014 Red Hat Inc.
6 * Copyright (c) 2014 Mathias Gottschlag <mgottschlag@gmail.com>
8 * Red Hat authors:
10 * Hans de Goede <hdegoede@redhat.com>
13 #ifndef _FOCALTECH_H
14 #define _FOCALTECH_H
16 int focaltech_detect(struct psmouse *psmouse, bool set_properties);
18 #ifdef CONFIG_MOUSE_PS2_FOCALTECH
19 int focaltech_init(struct psmouse *psmouse);
20 #else
21 static inline int focaltech_init(struct psmouse *psmouse)
23 return -ENOSYS;
25 #endif
27 #endif