| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * JSA1212 Ambient Light & Proximity Sensor Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | * |
|---|
| 15 | 7 | * JSA1212 I2C slave address: 0x44(ADDR tied to GND), 0x45(ADDR tied to VDD) |
|---|
| 16 | 8 | * |
|---|
| .. | .. |
|---|
| 346 | 338 | if (ret < 0) |
|---|
| 347 | 339 | return ret; |
|---|
| 348 | 340 | |
|---|
| 349 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 350 | 341 | indio_dev->channels = jsa1212_channels; |
|---|
| 351 | 342 | indio_dev->num_channels = ARRAY_SIZE(jsa1212_channels); |
|---|
| 352 | 343 | indio_dev->name = JSA1212_DRIVER_NAME; |
|---|