forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/adc/men_z188_adc.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * MEN 16z188 Analog to Digial Converter
34 *
45 * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de)
56 * Author: Johannes Thumshirn <johannes.thumshirn@men.de>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the Free
9
- * Software Foundation; version 2 of the License.
107 */
118
129 #include <linux/kernel.h>
....@@ -114,7 +111,6 @@
114111
115112 adc = iio_priv(indio_dev);
116113 indio_dev->name = "z188-adc";
117
- indio_dev->dev.parent = &dev->dev;
118114 indio_dev->info = &z188_adc_info;
119115 indio_dev->modes = INDIO_DIRECT_MODE;
120116 indio_dev->channels = z188_adc_iio_channels;
....@@ -177,3 +173,4 @@
177173 MODULE_LICENSE("GPL");
178174 MODULE_DESCRIPTION("IIO ADC driver for MEN 16z188 ADC Core");
179175 MODULE_ALIAS("mcb:16z188");
176
+MODULE_IMPORT_NS(MCB);