| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * IIO driver for the Apex Embedded Systems STX104 |
|---|
| 3 | 4 | * Copyright (C) 2016 William Breathitt Gray |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License, version 2, as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 10 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 12 | | - * General Public License for more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | #include <linux/bitops.h> |
|---|
| 15 | 7 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 327 | 319 | } |
|---|
| 328 | 320 | |
|---|
| 329 | 321 | indio_dev->name = dev_name(dev); |
|---|
| 330 | | - indio_dev->dev.parent = dev; |
|---|
| 331 | 322 | |
|---|
| 332 | 323 | priv = iio_priv(indio_dev); |
|---|
| 333 | 324 | priv->base = base[id]; |
|---|