forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/light/jsa1212.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * JSA1212 Ambient Light & Proximity Sensor Driver
34 *
45 * Copyright (c) 2014, Intel Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by 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 * JSA1212 I2C slave address: 0x44(ADDR tied to GND), 0x45(ADDR tied to VDD)
168 *
....@@ -346,7 +338,6 @@
346338 if (ret < 0)
347339 return ret;
348340
349
- indio_dev->dev.parent = &client->dev;
350341 indio_dev->channels = jsa1212_channels;
351342 indio_dev->num_channels = ARRAY_SIZE(jsa1212_channels);
352343 indio_dev->name = JSA1212_DRIVER_NAME;