• Home
  • Raw
  • Download

Lines Matching full:backlight

2  * Backlight Lowlevel Control Abstraction
13 #include <linux/backlight.h>
21 #include <asm/backlight.h>
38 * and if it is and necessary, we're switching backlight power as well ...
300 * backlight_force_update - tell the backlight subsystem that hardware state
302 * @bd: the backlight device to update
304 * Updates the internal state of the backlight in response to a hardware event,
326 * @ops: the backlight operations structure.
328 * Creates and registers new backlight device. Returns either an
358 WARN(1, "%s: invalid backlight type", name); in backlight_device_register()
416 * backlight_device_unregister - unregisters a backlight device object.
417 * @bd: the backlight device object to be unregistered and freed.
451 struct backlight_device *backlight = *(struct backlight_device **)res; in devm_backlight_device_release() local
453 backlight_device_unregister(backlight); in devm_backlight_device_release()
465 * backlight_register_notifier - get notified of backlight (un)registration
466 * @nb: notifier block with the notifier to call on backlight (un)registration
470 * Register a notifier to get notified when backlight devices get registered
480 * backlight_unregister_notifier - unregister a backlight notifier
485 * Register a notifier to get notified when backlight devices get registered
500 * @ops: the backlight operations structure
501 * @props: the backlight properties
503 * @return a struct backlight on success, or an ERR_PTR on error
514 struct backlight_device **ptr, *backlight; in devm_backlight_device_register() local
521 backlight = backlight_device_register(name, parent, devdata, ops, in devm_backlight_device_register()
523 if (!IS_ERR(backlight)) { in devm_backlight_device_register()
524 *ptr = backlight; in devm_backlight_device_register()
530 return backlight; in devm_backlight_device_register()
537 * @bd: the backlight device to unregister
539 * Deallocated a backlight allocated with devm_backlight_device_register().
561 * of_find_backlight_by_node() - find backlight device by device-tree node
562 * @node: device-tree node of the backlight device
564 * Returns a pointer to the backlight device corresponding to the given DT
565 * node or NULL if no such backlight device exists or if the device hasn't
568 * This function obtains a reference on the backlight device and it is the
570 * the backlight device's .dev field.
584 * of_find_backlight - Get backlight device
587 * This function looks for a property named 'backlight' on the DT node
588 * connected to @dev and looks up the backlight device.
590 * Call backlight_put() to drop the reference on the backlight device.
593 * A pointer to the backlight device if found.
594 * Error pointer -EPROBE_DEFER if the DT property is set, but no backlight
596 * NULL if there's no backlight property.
607 np = of_parse_phandle(dev->of_node, "backlight", 0); in of_find_backlight()
636 * The reference on the backlight device is automatically
663 backlight_class = class_create(THIS_MODULE, "backlight"); in backlight_class_init()
665 pr_warn("Unable to create backlight class; errno = %ld\n", in backlight_class_init()
688 MODULE_DESCRIPTION("Backlight Lowlevel Control Abstraction");