| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2015 Alexander Sverdlin |
|---|
| 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 | 6 | * |
|---|
| 10 | 7 | * The driver uses polling to get the conversion status. According to EP93xx |
|---|
| 11 | 8 | * datasheets, reading ADCResult register starts the conversion, but user is also |
|---|
| .. | .. |
|---|
| 173 | 170 | return PTR_ERR(priv->base); |
|---|
| 174 | 171 | } |
|---|
| 175 | 172 | |
|---|
| 176 | | - iiodev->dev.parent = &pdev->dev; |
|---|
| 177 | 173 | iiodev->name = dev_name(&pdev->dev); |
|---|
| 178 | 174 | iiodev->modes = INDIO_DIRECT_MODE; |
|---|
| 179 | 175 | iiodev->info = &ep93xx_adc_info; |
|---|