| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2015 Intel Corporation |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | * |
|---|
| 15 | 7 | * To do: Interrupt support. |
|---|
| 16 | 8 | */ |
|---|
| .. | .. |
|---|
| 454 | 446 | |
|---|
| 455 | 447 | /** |
|---|
| 456 | 448 | * 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 |
|---|
| 459 | 451 | * |
|---|
| 460 | 452 | * Function needs to be called with a lock held because it needs two i2c write |
|---|
| 461 | 453 | * byte operations as these registers (0x27 0x28) don't work in word mode |
|---|
| .. | .. |
|---|
| 477 | 469 | |
|---|
| 478 | 470 | /** |
|---|
| 479 | 471 | * 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 |
|---|
| 482 | 474 | * |
|---|
| 483 | 475 | * Function needs to be called with a lock held as we're having more than one |
|---|
| 484 | 476 | * i2c operation. |
|---|
| .. | .. |
|---|
| 859 | 851 | |
|---|
| 860 | 852 | mutex_init(&data->lock); |
|---|
| 861 | 853 | |
|---|
| 862 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 863 | 854 | indio_dev->info = &us5182d_info; |
|---|
| 864 | 855 | indio_dev->name = US5182D_DRV_NAME; |
|---|
| 865 | 856 | indio_dev->channels = us5182d_channels; |
|---|