.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * isl29003.c - Linux kernel module for |
---|
3 | 4 | * Intersil ISL29003 ambient light sensor |
---|
4 | 5 | * |
---|
5 | | - * See file:Documentation/misc-devices/isl29003 |
---|
| 6 | + * See file:Documentation/misc-devices/isl29003.rst |
---|
6 | 7 | * |
---|
7 | 8 | * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> |
---|
8 | 9 | * |
---|
9 | 10 | * Based on code written by |
---|
10 | 11 | * Rodolfo Giometti <giometti@linux.it> |
---|
11 | 12 | * Eurotech S.p.A. <info@eurotech.it> |
---|
12 | | - * |
---|
13 | | - * This program is free software; you can redistribute it and/or modify |
---|
14 | | - * it under the terms of the GNU General Public License as published by |
---|
15 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
16 | | - * (at your option) any later version. |
---|
17 | | - * |
---|
18 | | - * This program is distributed in the hope that it will be useful, |
---|
19 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
21 | | - * GNU General Public License for more details. |
---|
22 | | - * |
---|
23 | | - * You should have received a copy of the GNU General Public License |
---|
24 | | - * along with this program; if not, write to the Free Software |
---|
25 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
26 | 13 | */ |
---|
27 | 14 | |
---|
28 | 15 | #include <linux/module.h> |
---|
.. | .. |
---|
390 | 377 | static int isl29003_probe(struct i2c_client *client, |
---|
391 | 378 | const struct i2c_device_id *id) |
---|
392 | 379 | { |
---|
393 | | - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
---|
| 380 | + struct i2c_adapter *adapter = client->adapter; |
---|
394 | 381 | struct isl29003_data *data; |
---|
395 | 382 | int err = 0; |
---|
396 | 383 | |
---|