1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
10 struct backlight_ops {
12 * enable() - Enable a backlight
14 * @dev: Backlight device to enable
15 * @return 0 if OK, -ve on error
17 int (*enable)(struct udevice *dev);
20 #define backlight_get_ops(dev) ((struct backlight_ops *)(dev)->driver->ops)
23 * backlight_enable() - Enable a backlight
25 * @dev: Backlight device to enable
26 * @return 0 if OK, -ve on error
28 int backlight_enable(struct udevice *dev);