hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/misc/isl29003.c
....@@ -1,28 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * isl29003.c - Linux kernel module for
34 * Intersil ISL29003 ambient light sensor
45 *
5
- * See file:Documentation/misc-devices/isl29003
6
+ * See file:Documentation/misc-devices/isl29003.rst
67 *
78 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
89 *
910 * Based on code written by
1011 * Rodolfo Giometti <giometti@linux.it>
1112 * 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.
2613 */
2714
2815 #include <linux/module.h>
....@@ -390,7 +377,7 @@
390377 static int isl29003_probe(struct i2c_client *client,
391378 const struct i2c_device_id *id)
392379 {
393
- struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
380
+ struct i2c_adapter *adapter = client->adapter;
394381 struct isl29003_data *data;
395382 int err = 0;
396383