forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/iio/light/acpi-als.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ACPI Ambient Light Sensor Driver
34 *
....@@ -10,20 +11,6 @@
1011 * Final cleanup and debugging:
1112 * Copyright (C) 2013-2014 Marek Vasut <marex@denx.de>
1213 * Copyright (C) 2015 Gabriele Mazzotta <gabriele.mzt@gmail.com>
13
- *
14
- * This program is free software; you can redistribute it and/or modify it
15
- * under the terms of the GNU General Public License as published by the
16
- * Free Software Foundation; either version 2 of the License, or (at your
17
- * option) any later version.
18
- *
19
- * This program is distributed in the hope that it will be useful, but
20
- * WITHOUT ANY WARRANTY; without even the implied warranty of
21
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
- * General Public License for more details.
23
- *
24
- * You should have received a copy of the GNU General Public License along
25
- * with this program; if not, write to the Free Software Foundation, Inc.,
26
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2714 */
2815
2916 #include <linux/module.h>
....@@ -191,7 +178,6 @@
191178 mutex_init(&als->lock);
192179
193180 indio_dev->name = ACPI_ALS_DEVICE_NAME;
194
- indio_dev->dev.parent = &device->dev;
195181 indio_dev->info = &acpi_als_info;
196182 indio_dev->modes = INDIO_BUFFER_SOFTWARE;
197183 indio_dev->channels = acpi_als_channels;