.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * axp288_adc.c - X-Powers AXP288 PMIC ADC Driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014 Intel Corporation |
---|
5 | 6 | * |
---|
6 | 7 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
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 as published by |
---|
10 | | - * the Free Software Foundation; version 2 of the License. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, but |
---|
13 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | | - * General Public License for more details. |
---|
16 | | - * |
---|
17 | 8 | */ |
---|
18 | 9 | |
---|
19 | 10 | #include <linux/dmi.h> |
---|
.. | .. |
---|
205 | 196 | }, |
---|
206 | 197 | .driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA, |
---|
207 | 198 | }, |
---|
| 199 | + { |
---|
| 200 | + /* Nuvision Solo 10 Draw */ |
---|
| 201 | + .matches = { |
---|
| 202 | + DMI_MATCH(DMI_SYS_VENDOR, "TMAX"), |
---|
| 203 | + DMI_MATCH(DMI_PRODUCT_NAME, "TM101W610L"), |
---|
| 204 | + }, |
---|
| 205 | + .driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA, |
---|
| 206 | + }, |
---|
208 | 207 | {} |
---|
209 | 208 | }; |
---|
210 | 209 | |
---|
.. | .. |
---|
266 | 265 | |
---|
267 | 266 | info = iio_priv(indio_dev); |
---|
268 | 267 | info->irq = platform_get_irq(pdev, 0); |
---|
269 | | - if (info->irq < 0) { |
---|
270 | | - dev_err(&pdev->dev, "no irq resource?\n"); |
---|
| 268 | + if (info->irq < 0) |
---|
271 | 269 | return info->irq; |
---|
272 | | - } |
---|
273 | 270 | platform_set_drvdata(pdev, indio_dev); |
---|
274 | 271 | info->regmap = axp20x->regmap; |
---|
275 | 272 | /* |
---|
.. | .. |
---|
282 | 279 | return ret; |
---|
283 | 280 | } |
---|
284 | 281 | |
---|
285 | | - indio_dev->dev.parent = &pdev->dev; |
---|
286 | 282 | indio_dev->name = pdev->name; |
---|
287 | 283 | indio_dev->channels = axp288_adc_channels; |
---|
288 | 284 | indio_dev->num_channels = ARRAY_SIZE(axp288_adc_channels); |
---|