hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/misc/drv2667.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * DRV2667 haptics driver family
34 *
45 * Author: Dan Murphy <dmurphy@ti.com>
56 *
67 * Copyright: (C) 2014 Texas Instruments, Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
168 */
179
1810 #include <linux/i2c.h>
....@@ -177,9 +169,9 @@
177169 error = regmap_write(haptics->regmap, DRV2667_PAGE, read_buf);
178170 if (error) {
179171 dev_err(&haptics->client->dev,
180
- "Failed to set the page: %d\n", error);
181
- return -EIO;
182
- }
172
+ "Failed to set the page: %d\n", error);
173
+ return -EIO;
174
+ }
183175 }
184176
185177 return error;