]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/backlight.h
2 * Copyright (c) 2016 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
5 * SPDX-License-Identifier: GPL-2.0+
11 struct backlight_ops
{
13 * enable() - Enable a backlight
15 * @dev: Backlight device to enable
16 * @return 0 if OK, -ve on error
18 int (*enable
)(struct udevice
*dev
);
21 #define backlight_get_ops(dev) ((struct backlight_ops *)(dev)->driver->ops)
24 * backlight_enable() - Enable a backlight
26 * @dev: Backlight device to enable
27 * @return 0 if OK, -ve on error
29 int backlight_enable(struct udevice
*dev
);