| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * mpl3115.c - Support for Freescale MPL3115A2 pressure/temperature sensor |
|---|
| 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 | * (7-bit I2C slave address 0x60) |
|---|
| 11 | 8 | * |
|---|
| .. | .. |
|---|
| 251 | 248 | i2c_set_clientdata(client, indio_dev); |
|---|
| 252 | 249 | indio_dev->info = &mpl3115_info; |
|---|
| 253 | 250 | indio_dev->name = id->name; |
|---|
| 254 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 255 | 251 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 256 | 252 | indio_dev->channels = mpl3115_channels; |
|---|
| 257 | 253 | indio_dev->num_channels = ARRAY_SIZE(mpl3115_channels); |
|---|