| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * m62332.c - Support for Mitsubishi m62332 DAC |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Based on max517 driver: |
|---|
| 7 | 8 | * Copyright (C) 2010, 2011 Roland Stigge <stigge@antcom.de> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | 9 | */ |
|---|
| 19 | 10 | |
|---|
| 20 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 212 | 203 | data->vcc = devm_regulator_get(&client->dev, "VCC"); |
|---|
| 213 | 204 | if (IS_ERR(data->vcc)) |
|---|
| 214 | 205 | return PTR_ERR(data->vcc); |
|---|
| 215 | | - |
|---|
| 216 | | - /* establish that the iio_dev is a child of the i2c device */ |
|---|
| 217 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 218 | 206 | |
|---|
| 219 | 207 | indio_dev->num_channels = ARRAY_SIZE(m62332_channels); |
|---|
| 220 | 208 | indio_dev->channels = m62332_channels; |
|---|