forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/adc/lp8788_adc.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI LP8788 MFD - ADC driver
34 *
45 * Copyright 2012 Texas Instruments
56 *
67 * Author: Milo(Woogyom) Kim <milo.kim@ti.com>
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.
118 */
129
1310 #include <linux/delay.h>
....@@ -201,14 +198,12 @@
201198 adc->lp = lp;
202199 platform_set_drvdata(pdev, indio_dev);
203200
204
- indio_dev->dev.of_node = pdev->dev.of_node;
205201 ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc);
206202 if (ret)
207203 return ret;
208204
209205 mutex_init(&adc->lock);
210206
211
- indio_dev->dev.parent = &pdev->dev;
212207 indio_dev->name = pdev->name;
213208 indio_dev->modes = INDIO_DIRECT_MODE;
214209 indio_dev->info = &lp8788_adc_info;