| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * max5487.c - Support for MAX5487, MAX5488, MAX5489 digital potentiometers |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #include <linux/module.h> |
|---|
| 12 | 8 | #include <linux/spi/spi.h> |
|---|
| .. | .. |
|---|
| 104 | 100 | |
|---|
| 105 | 101 | indio_dev->info = &max5487_info; |
|---|
| 106 | 102 | indio_dev->name = id->name; |
|---|
| 107 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 108 | 103 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 109 | 104 | indio_dev->channels = max5487_channels; |
|---|
| 110 | 105 | indio_dev->num_channels = ARRAY_SIZE(max5487_channels); |
|---|