forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/dac/mcp4922.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * mcp4922.c
34 *
....@@ -5,17 +6,6 @@
56 * Supports MCP4902, MCP4912, and MCP4922.
67 *
78 * Copyright (c) 2014 EMAC Inc.
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
- *
199 */
2010
2111 #include <linux/module.h>
....@@ -162,7 +152,6 @@
162152
163153 spi_set_drvdata(spi, indio_dev);
164154 id = spi_get_device_id(spi);
165
- indio_dev->dev.parent = &spi->dev;
166155 indio_dev->info = &mcp4922_info;
167156 indio_dev->modes = INDIO_DIRECT_MODE;
168157 indio_dev->channels = mcp4922_channels[id->driver_data];