.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /** |
---|
2 | 3 | * opt3001.c - Texas Instruments OPT3001 Light Sensor |
---|
3 | 4 | * |
---|
4 | | - * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com |
---|
| 5 | + * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Andreas Dannenberg <dannenberg@ti.com> |
---|
7 | 8 | * Based on previous work from: Felipe Balbi <balbi@ti.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software: you can redistribute it and/or modify it |
---|
10 | | - * under the terms of the GNU General Public License version 2 of the License |
---|
11 | | - * as published by the Free Software Foundation. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
14 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
15 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
16 | | - * more details. |
---|
17 | 9 | */ |
---|
18 | 10 | |
---|
19 | 11 | #include <linux/bitops.h> |
---|
.. | .. |
---|
24 | 16 | #include <linux/irq.h> |
---|
25 | 17 | #include <linux/kernel.h> |
---|
26 | 18 | #include <linux/module.h> |
---|
| 19 | +#include <linux/mod_devicetable.h> |
---|
27 | 20 | #include <linux/mutex.h> |
---|
28 | 21 | #include <linux/slab.h> |
---|
29 | 22 | #include <linux/types.h> |
---|
.. | .. |
---|
775 | 768 | iio->name = client->name; |
---|
776 | 769 | iio->channels = opt3001_channels; |
---|
777 | 770 | iio->num_channels = ARRAY_SIZE(opt3001_channels); |
---|
778 | | - iio->dev.parent = dev; |
---|
779 | 771 | iio->modes = INDIO_DIRECT_MODE; |
---|
780 | 772 | iio->info = &opt3001_info; |
---|
781 | 773 | |
---|
.. | .. |
---|
852 | 844 | |
---|
853 | 845 | .driver = { |
---|
854 | 846 | .name = "opt3001", |
---|
855 | | - .of_match_table = of_match_ptr(opt3001_of_match), |
---|
| 847 | + .of_match_table = opt3001_of_match, |
---|
856 | 848 | }, |
---|
857 | 849 | }; |
---|
858 | 850 | |
---|