1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
12 * enable_backlight() - Enable the panel backlight
14 * @dev: Panel device containing the backlight to enable
15 * @return 0 if OK, -ve on error
17 int (*enable_backlight)(struct udevice *dev);
19 * get_timings() - Get display timings from panel.
21 * @dev: Panel device containing the display timings
22 * @tim: Place to put timings
23 * @return 0 if OK, -ve on error
25 int (*get_display_timing)(struct udevice *dev,
26 struct display_timing *timing);
29 #define panel_get_ops(dev) ((struct panel_ops *)(dev)->driver->ops)
32 * panel_enable_backlight() - Enable the panel backlight
34 * @dev: Panel device containing the backlight to enable
35 * @return 0 if OK, -ve on error
37 int panel_enable_backlight(struct udevice *dev);
40 * panel_get_display_timing() - Get display timings from panel.
42 * @dev: Panel device containing the display timings
43 * @return 0 if OK, -ve on error
45 int panel_get_display_timing(struct udevice *dev,
46 struct display_timing *timing);