| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * tcs3472.c - Support for TAOS TCS3472 color light-to-digital converter |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2013 Peter Meerwald <pmeerw@pmeerw.net> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This file is subject to the terms and conditions of version 2 of |
|---|
| 7 | | - * the GNU General Public License. See the file COPYING in the main |
|---|
| 8 | | - * directory of this archive for more details. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * Color light sensor with 16-bit channels for red, green, blue, clear); |
|---|
| 11 | 8 | * 7-bit I2C slave address 0x39 (TCS34721, TCS34723) or 0x29 (TCS34725, |
|---|
| .. | .. |
|---|
| 461 | 458 | data->client = client; |
|---|
| 462 | 459 | mutex_init(&data->lock); |
|---|
| 463 | 460 | |
|---|
| 464 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 465 | 461 | indio_dev->info = &tcs3472_info; |
|---|
| 466 | 462 | indio_dev->name = TCS3472_DRV_NAME; |
|---|
| 467 | 463 | indio_dev->channels = tcs3472_channels; |
|---|