| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * Freescale MMA7660FC 3-Axis Accelerometer |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2016, Intel Corporation. |
|---|
| 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 | * IIO driver for Freescale MMA7660FC; 7-bit I2C address: 0x4c. |
|---|
| 11 | 8 | */ |
|---|
| .. | .. |
|---|
| 191 | 188 | mutex_init(&data->lock); |
|---|
| 192 | 189 | data->mode = MMA7660_MODE_STANDBY; |
|---|
| 193 | 190 | |
|---|
| 194 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 195 | 191 | indio_dev->info = &mma7660_info; |
|---|
| 196 | 192 | indio_dev->name = MMA7660_DRIVER_NAME; |
|---|
| 197 | 193 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|