1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
11 int panel_enable_backlight(struct udevice *dev)
13 struct panel_ops *ops = panel_get_ops(dev);
15 if (!ops->enable_backlight)
18 return ops->enable_backlight(dev);
21 int panel_get_display_timing(struct udevice *dev,
22 struct display_timing *timings)
24 struct panel_ops *ops = panel_get_ops(dev);
26 if (!ops->get_display_timing)
29 return ops->get_display_timing(dev, timings);
32 UCLASS_DRIVER(panel) = {