forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/iio/potentiometer/max5487.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * max5487.c - Support for MAX5487, MAX5488, MAX5489 digital potentiometers
34 *
45 * Copyright (C) 2016 Cristina-Gabriela Moraru <cristina.moraru09@gmail.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
106 */
117 #include <linux/module.h>
128 #include <linux/spi/spi.h>
....@@ -104,7 +100,6 @@
104100
105101 indio_dev->info = &max5487_info;
106102 indio_dev->name = id->name;
107
- indio_dev->dev.parent = &spi->dev;
108103 indio_dev->modes = INDIO_DIRECT_MODE;
109104 indio_dev->channels = max5487_channels;
110105 indio_dev->num_channels = ARRAY_SIZE(max5487_channels);