| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ACPI Ambient Light Sensor Driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | * Final cleanup and debugging: |
|---|
| 11 | 12 | * Copyright (C) 2013-2014 Marek Vasut <marex@denx.de> |
|---|
| 12 | 13 | * Copyright (C) 2015 Gabriele Mazzotta <gabriele.mzt@gmail.com> |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 15 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 16 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 17 | | - * option) any later version. |
|---|
| 18 | | - * |
|---|
| 19 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 20 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 22 | | - * General Public License for more details. |
|---|
| 23 | | - * |
|---|
| 24 | | - * You should have received a copy of the GNU General Public License along |
|---|
| 25 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 26 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 27 | 14 | */ |
|---|
| 28 | 15 | |
|---|
| 29 | 16 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 191 | 178 | mutex_init(&als->lock); |
|---|
| 192 | 179 | |
|---|
| 193 | 180 | indio_dev->name = ACPI_ALS_DEVICE_NAME; |
|---|
| 194 | | - indio_dev->dev.parent = &device->dev; |
|---|
| 195 | 181 | indio_dev->info = &acpi_als_info; |
|---|
| 196 | 182 | indio_dev->modes = INDIO_BUFFER_SOFTWARE; |
|---|
| 197 | 183 | indio_dev->channels = acpi_als_channels; |
|---|