| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * IIO driver for the 3-axis accelerometer Domintech DMARD09. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2016, Jelle van der Waa <jelle@vdwaa.nl> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 8 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 11 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 12 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 13 | | - * more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #include <asm/unaligned.h> |
|---|
| .. | .. |
|---|
| 124 | 116 | } |
|---|
| 125 | 117 | |
|---|
| 126 | 118 | i2c_set_clientdata(client, indio_dev); |
|---|
| 127 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 128 | 119 | indio_dev->name = DMARD09_DRV_NAME; |
|---|
| 129 | 120 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 130 | 121 | indio_dev->channels = dmard09_channels; |
|---|