| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALPS touchpad PS/2 mouse driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * |
|---|
| 10 | 11 | * ALPS detection, tap switching and status querying info is taken from |
|---|
| 11 | 12 | * tpconfig utility (by C. Scott Ananian and Bruce Kall). |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 14 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 15 | | - * the Free Software Foundation. |
|---|
| 16 | 13 | */ |
|---|
| 17 | 14 | |
|---|
| 18 | 15 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 1932 | 1929 | static int alps_absolute_mode_v6(struct psmouse *psmouse) |
|---|
| 1933 | 1930 | { |
|---|
| 1934 | 1931 | u16 reg_val = 0x181; |
|---|
| 1935 | | - int ret = -1; |
|---|
| 1932 | + int ret; |
|---|
| 1936 | 1933 | |
|---|
| 1937 | 1934 | /* enter monitor mode, to write the register */ |
|---|
| 1938 | 1935 | if (alps_monitor_mode(psmouse, true)) |
|---|