| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * max8660.c -- Voltage regulation for the Maxim 8660/8661 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * based on max1586.c and wm8400-regulator.c |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2009 Wolfram Sang, Pengutronix e.K. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the Free |
|---|
| 10 | | - * Software Foundation; version 2 of the License. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 13 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 14 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 15 | | - * more details. |
|---|
| 16 | | - * |
|---|
| 17 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 18 | | - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
|---|
| 19 | | - * Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 20 | 8 | * |
|---|
| 21 | 9 | * Some info: |
|---|
| 22 | 10 | * |
|---|
| .. | .. |
|---|
| 34 | 22 | * If the driver is feature complete, it might be worth to check if one set of |
|---|
| 35 | 23 | * functions for V3-V7 is sufficient. For maximum flexibility during |
|---|
| 36 | 24 | * development, they are separated for now. |
|---|
| 37 | | - * |
|---|
| 38 | 25 | */ |
|---|
| 39 | 26 | |
|---|
| 40 | 27 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 498 | 485 | rdev = devm_regulator_register(&client->dev, |
|---|
| 499 | 486 | &max8660_reg[id], &config); |
|---|
| 500 | 487 | if (IS_ERR(rdev)) { |
|---|
| 501 | | - ret = PTR_ERR(rdev); |
|---|
| 502 | 488 | dev_err(&client->dev, "failed to register %s\n", |
|---|
| 503 | 489 | max8660_reg[id].name); |
|---|
| 504 | 490 | return PTR_ERR(rdev); |
|---|