diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-12-29 15:06:38 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-02-15 19:08:35 -0500 |
commit | 290b799c390d77d27effee3ce312203aaa32ee74 (patch) | |
tree | a9dcf0b1fdc9e1aacff90afb5b3ab79983115dcc /drivers/input/mouse/synaptics.c | |
parent | 97ae2b5c17d6cc988c6d49ae0cf95befb6b7081c (diff) |
Input: psmouse - use IS_ENABLED instead of homegrown code
Instead of having various protocols provide <protocol>_supported()
functions, let's use IS_ENABLED() macro that works well in "if" statements.
Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/synaptics.c')
-rw-r--r-- | drivers/input/mouse/synaptics.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 7e705ee90b86..f2cceb6493a0 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c | |||
@@ -1454,11 +1454,6 @@ int synaptics_init_relative(struct psmouse *psmouse) | |||
1454 | return __synaptics_init(psmouse, false); | 1454 | return __synaptics_init(psmouse, false); |
1455 | } | 1455 | } |
1456 | 1456 | ||
1457 | bool synaptics_supported(void) | ||
1458 | { | ||
1459 | return true; | ||
1460 | } | ||
1461 | |||
1462 | #else /* CONFIG_MOUSE_PS2_SYNAPTICS */ | 1457 | #else /* CONFIG_MOUSE_PS2_SYNAPTICS */ |
1463 | 1458 | ||
1464 | void __init synaptics_module_init(void) | 1459 | void __init synaptics_module_init(void) |
@@ -1470,9 +1465,4 @@ int synaptics_init(struct psmouse *psmouse) | |||
1470 | return -ENOSYS; | 1465 | return -ENOSYS; |
1471 | } | 1466 | } |
1472 | 1467 | ||
1473 | bool synaptics_supported(void) | ||
1474 | { | ||
1475 | return false; | ||
1476 | } | ||
1477 | |||
1478 | #endif /* CONFIG_MOUSE_PS2_SYNAPTICS */ | 1468 | #endif /* CONFIG_MOUSE_PS2_SYNAPTICS */ |