| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * DRV2667 haptics driver family |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Dan Murphy <dmurphy@ti.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 16 | 8 | */ |
|---|
| 17 | 9 | |
|---|
| 18 | 10 | #include <linux/i2c.h> |
|---|
| .. | .. |
|---|
| 177 | 169 | error = regmap_write(haptics->regmap, DRV2667_PAGE, read_buf); |
|---|
| 178 | 170 | if (error) { |
|---|
| 179 | 171 | 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 | + } |
|---|
| 183 | 175 | } |
|---|
| 184 | 176 | |
|---|
| 185 | 177 | return error; |
|---|