| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * IIO driver for the MiraMEMS DA311 3-axis accelerometer |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2016 Hans de Goede <hdegoede@redhat.com> |
|---|
| 5 | 6 | * Copyright (c) 2011-2013 MiraMEMS Sensing Technology Co., Ltd. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 9 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 234 | 231 | data->client = client; |
|---|
| 235 | 232 | i2c_set_clientdata(client, indio_dev); |
|---|
| 236 | 233 | |
|---|
| 237 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 238 | 234 | indio_dev->info = &da311_info; |
|---|
| 239 | 235 | indio_dev->name = "da311"; |
|---|
| 240 | 236 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|