]> Git Repo - J-u-boot.git/blame - include/panel.h
env: make env_import(_redund) return 0 on success, not 1
[J-u-boot.git] / include / panel.h
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#ifndef _PANEL_H
9#define _PANEL_H
10
11struct panel_ops {
12 /**
13 * enable_backlight() - Enable the panel backlight
14 *
15 * @dev: Panel device containing the backlight to enable
16 * @return 0 if OK, -ve on error
17 */
18 int (*enable_backlight)(struct udevice *dev);
19};
20
21#define panel_get_ops(dev) ((struct panel_ops *)(dev)->driver->ops)
22
23/**
24 * panel_enable_backlight() - Enable the panel backlight
25 *
26 * @dev: Panel device containing the backlight to enable
27 * @return 0 if OK, -ve on error
28 */
29int panel_enable_backlight(struct udevice *dev);
30
31#endif
This page took 0.237714 seconds and 4 git commands to generate.