| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * si7005.c - Support for Silabs Si7005 humidity and temperature sensor |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2014 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 | * (7-bit I2C slave address 0x40) |
|---|
| 11 | 8 | * |
|---|
| .. | .. |
|---|
| 145 | 142 | data->client = client; |
|---|
| 146 | 143 | mutex_init(&data->lock); |
|---|
| 147 | 144 | |
|---|
| 148 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 149 | 145 | indio_dev->name = dev_name(&client->dev); |
|---|
| 150 | 146 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 151 | 147 | indio_dev->info = &si7005_info; |
|---|