]> Git Repo - J-u-boot.git/blame - drivers/video/panel-uclass.c
Merge git://git.denx.de/u-boot-fdt
[J-u-boot.git] / drivers / video / panel-uclass.c
CommitLineData
f563dc1d
SG
1/*
2 * Copyright (c) 2016 Google, Inc
3 * Written by Simon Glass <[email protected]>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#include <common.h>
9#include <dm.h>
10#include <panel.h>
11
12int panel_enable_backlight(struct udevice *dev)
13{
14 struct panel_ops *ops = panel_get_ops(dev);
15
16 if (!ops->enable_backlight)
17 return -ENOSYS;
18
19 return ops->enable_backlight(dev);
20}
21
22UCLASS_DRIVER(panel) = {
23 .id = UCLASS_PANEL,
24 .name = "panel",
25};
This page took 0.024732 seconds and 4 git commands to generate.