forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/dac/m62332.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * m62332.c - Support for Mitsubishi m62332 DAC
34 *
....@@ -5,16 +6,6 @@
56 *
67 * Based on max517 driver:
78 * 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.
189 */
1910
2011 #include <linux/module.h>
....@@ -212,9 +203,6 @@
212203 data->vcc = devm_regulator_get(&client->dev, "VCC");
213204 if (IS_ERR(data->vcc))
214205 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;
218206
219207 indio_dev->num_channels = ARRAY_SIZE(m62332_channels);
220208 indio_dev->channels = m62332_channels;