diff options
Diffstat (limited to 'drivers/video/rave-sp-backlight.c')
-rw-r--r-- | drivers/video/rave-sp-backlight.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/drivers/video/rave-sp-backlight.c b/drivers/video/rave-sp-backlight.c index 877a5feeb6..360b27eebb 100644 --- a/drivers/video/rave-sp-backlight.c +++ b/drivers/video/rave-sp-backlight.c @@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * LCD Backlight driver for RAVE SP * * Copyright (C) 2018 Zodiac Inflight Innovations - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see <http://www.gnu.org/licenses/>. */ #include <common.h> @@ -39,7 +27,7 @@ static int rave_sp_backlight_set(struct backlight_device *bd, int brightness) return rave_sp_exec(sp, cmd, sizeof(cmd), NULL, 0); } -static int rave_sp_backlight_probe(struct device_d *dev) +static int rave_sp_backlight_probe(struct device *dev) { struct backlight_device *bd; int ret; @@ -64,8 +52,9 @@ static const struct of_device_id rave_sp_backlight_of_match[] = { { .compatible = "zii,rave-sp-backlight" }, {} }; +MODULE_DEVICE_TABLE(of, rave_sp_backlight_of_match); -static struct driver_d rave_sp_backlight_driver = { +static struct driver rave_sp_backlight_driver = { .name = "rave-sp-backlight", .probe = rave_sp_backlight_probe, .of_compatible = DRV_OF_COMPAT(rave_sp_backlight_of_match), |