| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * mcp4922.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Supports MCP4902, MCP4912, and MCP4922. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (c) 2014 EMAC Inc. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | | - * |
|---|
| 19 | 9 | */ |
|---|
| 20 | 10 | |
|---|
| 21 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 162 | 152 | |
|---|
| 163 | 153 | spi_set_drvdata(spi, indio_dev); |
|---|
| 164 | 154 | id = spi_get_device_id(spi); |
|---|
| 165 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 166 | 155 | indio_dev->info = &mcp4922_info; |
|---|
| 167 | 156 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 168 | 157 | indio_dev->channels = mcp4922_channels[id->driver_data]; |
|---|