| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI LP8788 MFD - ADC driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2012 Texas Instruments |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Milo(Woogyom) Kim <milo.kim@ti.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 201 | 198 | adc->lp = lp; |
|---|
| 202 | 199 | platform_set_drvdata(pdev, indio_dev); |
|---|
| 203 | 200 | |
|---|
| 204 | | - indio_dev->dev.of_node = pdev->dev.of_node; |
|---|
| 205 | 201 | ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc); |
|---|
| 206 | 202 | if (ret) |
|---|
| 207 | 203 | return ret; |
|---|
| 208 | 204 | |
|---|
| 209 | 205 | mutex_init(&adc->lock); |
|---|
| 210 | 206 | |
|---|
| 211 | | - indio_dev->dev.parent = &pdev->dev; |
|---|
| 212 | 207 | indio_dev->name = pdev->name; |
|---|
| 213 | 208 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 214 | 209 | indio_dev->info = &lp8788_adc_info; |
|---|