]> Git Repo - J-u-boot.git/blame - include/panel.h
SPDX: Convert all of our single license tags to Linux Kernel style
[J-u-boot.git] / include / panel.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f563dc1d
SG
2/*
3 * Copyright (c) 2016 Google, Inc
4 * Written by Simon Glass <[email protected]>
f563dc1d
SG
5 */
6
7#ifndef _PANEL_H
8#define _PANEL_H
9
10struct panel_ops {
11 /**
12 * enable_backlight() - Enable the panel backlight
13 *
14 * @dev: Panel device containing the backlight to enable
15 * @return 0 if OK, -ve on error
16 */
17 int (*enable_backlight)(struct udevice *dev);
18};
19
20#define panel_get_ops(dev) ((struct panel_ops *)(dev)->driver->ops)
21
22/**
23 * panel_enable_backlight() - Enable the panel backlight
24 *
25 * @dev: Panel device containing the backlight to enable
26 * @return 0 if OK, -ve on error
27 */
28int panel_enable_backlight(struct udevice *dev);
29
30#endif
This page took 0.252163 seconds and 4 git commands to generate.