forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/iio/light/us5182d.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2015 Intel Corporation
34 *
45 * Driver for UPISEMI us5182d Proximity and Ambient Light Sensor.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
146 *
157 * To do: Interrupt support.
168 */
....@@ -454,8 +446,8 @@
454446
455447 /**
456448 * us5182d_update_dark_th - update Darh_Th registers
457
- * @data us5182d_data structure
458
- * @index index in us5182d_dark_ths array to use for the updated value
449
+ * @data: us5182d_data structure
450
+ * @index: index in us5182d_dark_ths array to use for the updated value
459451 *
460452 * Function needs to be called with a lock held because it needs two i2c write
461453 * byte operations as these registers (0x27 0x28) don't work in word mode
....@@ -477,8 +469,8 @@
477469
478470 /**
479471 * us5182d_apply_scale - update the ALS scale
480
- * @data us5182d_data structure
481
- * @index index in us5182d_scales array to use for the updated value
472
+ * @data: us5182d_data structure
473
+ * @index: index in us5182d_scales array to use for the updated value
482474 *
483475 * Function needs to be called with a lock held as we're having more than one
484476 * i2c operation.
....@@ -859,7 +851,6 @@
859851
860852 mutex_init(&data->lock);
861853
862
- indio_dev->dev.parent = &client->dev;
863854 indio_dev->info = &us5182d_info;
864855 indio_dev->name = US5182D_DRV_NAME;
865856 indio_dev->channels = us5182d_channels;