| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CM3232 Ambient Light Sensor |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014-2015 Capella Microsystems Inc. |
|---|
| 5 | 6 | * Author: Kevin Tsai <ktsai@capellamicro.com> |
|---|
| 6 | 7 | * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms of the GNU General Public License version 2, as published |
|---|
| 9 | | - * by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | 8 | * IIO driver for CM3232 (7-bit I2C slave address 0x10). |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <linux/i2c.h> |
|---|
| 15 | 12 | #include <linux/module.h> |
|---|
| 13 | +#include <linux/mod_devicetable.h> |
|---|
| 16 | 14 | #include <linux/iio/iio.h> |
|---|
| 17 | 15 | #include <linux/iio/sysfs.h> |
|---|
| 18 | 16 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 342 | 340 | i2c_set_clientdata(client, indio_dev); |
|---|
| 343 | 341 | chip->client = client; |
|---|
| 344 | 342 | |
|---|
| 345 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 346 | 343 | indio_dev->channels = cm3232_channels; |
|---|
| 347 | 344 | indio_dev->num_channels = ARRAY_SIZE(cm3232_channels); |
|---|
| 348 | 345 | indio_dev->info = &cm3232_info; |
|---|
| .. | .. |
|---|
| 421 | 418 | static struct i2c_driver cm3232_driver = { |
|---|
| 422 | 419 | .driver = { |
|---|
| 423 | 420 | .name = "cm3232", |
|---|
| 424 | | - .of_match_table = of_match_ptr(cm3232_of_match), |
|---|
| 421 | + .of_match_table = cm3232_of_match, |
|---|
| 425 | 422 | #ifdef CONFIG_PM_SLEEP |
|---|
| 426 | 423 | .pm = &cm3232_pm_ops, |
|---|
| 427 | 424 | #endif |
|---|