sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget!/translations/zh_CN/gpu/backlightmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/zh_TW/gpu/backlightmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/it_IT/gpu/backlightmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ja_JP/gpu/backlightmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ko_KR/gpu/backlightmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/sp_SP/gpu/backlightmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hBacklight supporth]hBacklight support}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh;/var/lib/git/docbuild/linux/Documentation/gpu/backlight.rsthKubh paragraph)}(h;The backlight core supports implementing backlight drivers.h]h;The backlight core supports implementing backlight drivers.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/backlight:5: ./drivers/video/backlight/backlight.chKhhhhubh)}(hXjA backlight driver registers a driver using devm_backlight_device_register(). The properties of the backlight driver such as type and max_brightness must be specified. When the core detect changes in for example brightness or power state the update_status() operation is called. The backlight driver shall implement this operation and use it to adjust backlight.h]hXjA backlight driver registers a driver using devm_backlight_device_register(). The properties of the backlight driver such as type and max_brightness must be specified. When the core detect changes in for example brightness or power state the update_status() operation is called. The backlight driver shall implement this operation and use it to adjust backlight.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/backlight:5: ./drivers/video/backlight/backlight.chKhhhhubh)}(h=Several sysfs attributes are provided by the backlight core::h]h/brightness. This value can be set in the backlight_properties passed to devm_backlight_device_register() to set a default brightness value. ``max_brightness`` The maximum brightness value. This value must be set in the backlight_properties passed to devm_backlight_device_register() and shall not be modified by the driver after registration. ``power`` The current power mode. User space can configure the power mode using the sysfs attribute: /sys/class/backlight//bl_power When the power property is updated update_status() is called. The possible values are: (0: full on, 4: full off), see BACKLIGHT_POWER constants. When the backlight device is enabled, **power** is set to BACKLIGHT_POWER_ON. When the backlight device is disabled, **power** is set to BACKLIGHT_POWER_OFF. ``type`` The type of backlight supported. The backlight type allows userspace to make appropriate policy decisions based on the backlight type. This value must be set in the backlight_properties passed to devm_backlight_device_register(). ``state`` The state of the backlight core. The state is a bitmask. BL_CORE_FBBLANK is set when the display is expected to be blank. BL_CORE_SUSPENDED is set when the driver is suspended. backlight drivers are expected to use backlight_is_blank() in their update_status() operation rather than reading the state property. The state is maintained by the core and drivers may not modify it. ``scale`` The type of the brightness scale.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh:}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj_ubh)}(hXstruct backlight_properties { int brightness; int max_brightness; int power; #define BACKLIGHT_POWER_ON (0); #define BACKLIGHT_POWER_OFF (4); #define BACKLIGHT_POWER_REDUCED (1) ; enum backlight_type type; unsigned int state; #define BL_CORE_SUSPENDED (1 << 0) ; #define BL_CORE_FBBLANK (1 << 1) ; enum backlight_scale scale; };h]hXstruct backlight_properties { int brightness; int max_brightness; int power; #define BACKLIGHT_POWER_ON (0); #define BACKLIGHT_POWER_OFF (4); #define BACKLIGHT_POWER_REDUCED (1) ; enum backlight_type type; unsigned int state; #define BL_CORE_SUSPENDED (1 << 0) ; #define BL_CORE_FBBLANK (1 << 1) ; enum backlight_scale scale; };}hjsbah}(h]h ]h"]h$]h&]hhuh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj_ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj_ubj)}(hhh](j )}(hXa``brightness`` The current brightness requested by the user. The backlight core makes sure the range is (0 to max_brightness) when the brightness is set via the sysfs attribute: /sys/class/backlight//brightness. This value can be set in the backlight_properties passed to devm_backlight_device_register() to set a default brightness value. h](j)}(h``brightness``h]j)}(hjh]h brightness}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubj+)}(hhh](h)}(h-The current brightness requested by the user.h]h-The current brightness requested by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubh)}(hThe backlight core makes sure the range is (0 to max_brightness) when the brightness is set via the sysfs attribute: /sys/class/backlight//brightness.h]hThe backlight core makes sure the range is (0 to max_brightness) when the brightness is set via the sysfs attribute: /sys/class/backlight//brightness.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubh)}(hThis value can be set in the backlight_properties passed to devm_backlight_device_register() to set a default brightness value.h]hThis value can be set in the backlight_properties passed to devm_backlight_device_register() to set a default brightness value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubeh}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj )}(h``max_brightness`` The maximum brightness value. This value must be set in the backlight_properties passed to devm_backlight_device_register() and shall not be modified by the driver after registration. h](j)}(h``max_brightness``h]j)}(hjh]hmax_brightness}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubj+)}(hhh](h)}(hThe maximum brightness value.h]hThe maximum brightness value.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubh)}(hThis value must be set in the backlight_properties passed to devm_backlight_device_register() and shall not be modified by the driver after registration.h]hThis value must be set in the backlight_properties passed to devm_backlight_device_register() and shall not be modified by the driver after registration.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubeh}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj )}(hX``power`` The current power mode. User space can configure the power mode using the sysfs attribute: /sys/class/backlight//bl_power When the power property is updated update_status() is called. The possible values are: (0: full on, 4: full off), see BACKLIGHT_POWER constants. When the backlight device is enabled, **power** is set to BACKLIGHT_POWER_ON. When the backlight device is disabled, **power** is set to BACKLIGHT_POWER_OFF. h](j)}(h ``power``h]j)}(hjQh]hpower}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjKubj+)}(hhh](h)}(hThe current power mode.h]hThe current power mode.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjgubh)}(hUser space can configure the power mode using the sysfs attribute: /sys/class/backlight//bl_power When the power property is updated update_status() is called.h]hUser space can configure the power mode using the sysfs attribute: /sys/class/backlight//bl_power When the power property is updated update_status() is called.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjgubh)}(hRThe possible values are: (0: full on, 4: full off), see BACKLIGHT_POWER constants.h]hRThe possible values are: (0: full on, 4: full off), see BACKLIGHT_POWER constants.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjgubh)}(hWhen the backlight device is enabled, **power** is set to BACKLIGHT_POWER_ON. When the backlight device is disabled, **power** is set to BACKLIGHT_POWER_OFF.h](h&When the backlight device is enabled, }(hjhhhNhNubj)}(h **power**h]hpower}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF is set to BACKLIGHT_POWER_ON. When the backlight device is disabled, }(hjhhhNhNubj)}(h **power**h]hpower}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to BACKLIGHT_POWER_OFF.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjgubeh}(h]h ]h"]h$]h&]uh1j*hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjubj )}(h``type`` The type of backlight supported. The backlight type allows userspace to make appropriate policy decisions based on the backlight type. This value must be set in the backlight_properties passed to devm_backlight_device_register(). h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubj+)}(hhh](h)}(h The type of backlight supported.h]h The type of backlight supported.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubh)}(heThe backlight type allows userspace to make appropriate policy decisions based on the backlight type.h]heThe backlight type allows userspace to make appropriate policy decisions based on the backlight type.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubh)}(h^This value must be set in the backlight_properties passed to devm_backlight_device_register().h]h^This value must be set in the backlight_properties passed to devm_backlight_device_register().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjubeh}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj )}(hX``state`` The state of the backlight core. The state is a bitmask. BL_CORE_FBBLANK is set when the display is expected to be blank. BL_CORE_SUSPENDED is set when the driver is suspended. backlight drivers are expected to use backlight_is_blank() in their update_status() operation rather than reading the state property. The state is maintained by the core and drivers may not modify it. h](j)}(h ``state``h]j)}(hj4 h]hstate}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj. ubj+)}(hhh](h)}(h The state of the backlight core.h]h The state of the backlight core.}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjJ ubh)}(hThe state is a bitmask. BL_CORE_FBBLANK is set when the display is expected to be blank. BL_CORE_SUSPENDED is set when the driver is suspended.h]hThe state is a bitmask. BL_CORE_FBBLANK is set when the display is expected to be blank. BL_CORE_SUSPENDED is set when the driver is suspended.}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjJ ubh)}(hbacklight drivers are expected to use backlight_is_blank() in their update_status() operation rather than reading the state property.h]hbacklight drivers are expected to use backlight_is_blank() in their update_status() operation rather than reading the state property.}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjJ ubh)}(hBThe state is maintained by the core and drivers may not modify it.h]hBThe state is maintained by the core and drivers may not modify it.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI hKhjJ ubeh}(h]h ]h"]h$]h&]uh1j*hj. ubeh}(h]h ]h"]h$]h&]uh1jhjI hKhjubj )}(h+``scale`` The type of the brightness scale.h](j)}(h ``scale``h]j)}(hj h]hscale}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj ubj+)}(hhh]h)}(h!The type of the brightness scale.h]h!The type of the brightness scale.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhhhhubh)}(h9This structure defines all the properties of a backlight.h]h9This structure defines all the properties of a backlight.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhhhhubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQbacklight_device (C struct)c.backlight_devicehNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(hbacklight_deviceh]ja)}(hstruct backlight_deviceh](jg)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj hhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKubjy)}(h h]h }(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj hhhj( hKubj)}(hbacklight_deviceh]j)}(hj h]hbacklight_device}(hj; hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7 ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj hhhj( hKubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhj hhhj( hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jZhj( hKhj hhubj)}(hhh]h)}(hbacklight device datah]hbacklight device data}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjZ hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj( hKubeh}(h]h ](jstructeh"]h$]h&]jjjju jju jjjuh1jUhhhhhNhNubj)}(hX**Definition**:: struct backlight_device { struct backlight_properties props; struct mutex update_lock; struct mutex ops_lock; const struct backlight_ops *ops; struct notifier_block fb_notif; struct list_head entry; struct device dev; bool fb_bl_on[FB_MAX]; int use_count; }; **Members** ``props`` Backlight properties ``update_lock`` The lock used when calling the update_status() operation. update_lock is an internal backlight lock that serialise access to the update_status() operation. The backlight core holds the update_lock when calling the update_status() operation. The update_lock shall not be used by backlight drivers. ``ops_lock`` The lock used around everything related to backlight_ops. ops_lock is an internal backlight lock that protects the ops pointer and is used around all accesses to ops and when the operations are invoked. The ops_lock shall not be used by backlight drivers. ``ops`` Pointer to the backlight operations. If ops is NULL, the driver that registered this device has been unloaded, and if class_get_devdata() points to something in the body of that driver, it is also invalid. ``fb_notif`` The framebuffer notifier block ``entry`` List entry of all registered backlight devices ``dev`` Parent device. ``fb_bl_on`` The state of individual fbdev's. Multiple fbdev's may share one backlight device. The fb_bl_on records the state of the individual fbdev. ``use_count`` The number of uses of fb_bl_on.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj} ubh:}(hj} hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjy ubh)}(hX&struct backlight_device { struct backlight_properties props; struct mutex update_lock; struct mutex ops_lock; const struct backlight_ops *ops; struct notifier_block fb_notif; struct list_head entry; struct device dev; bool fb_bl_on[FB_MAX]; int use_count; };h]hX&struct backlight_device { struct backlight_properties props; struct mutex update_lock; struct mutex ops_lock; const struct backlight_ops *ops; struct notifier_block fb_notif; struct list_head entry; struct device dev; bool fb_bl_on[FB_MAX]; int use_count; };}hj sbah}(h]h ]h"]h$]h&]hhuh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhjy ubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjy ubj)}(hhh](j )}(h``props`` Backlight properties h](j)}(h ``props``h]j)}(hj h]hprops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj ubj+)}(hhh]h)}(hBacklight propertiesh]hBacklight properties}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj )}(hX:``update_lock`` The lock used when calling the update_status() operation. update_lock is an internal backlight lock that serialise access to the update_status() operation. The backlight core holds the update_lock when calling the update_status() operation. The update_lock shall not be used by backlight drivers. h](j)}(h``update_lock``h]j)}(hj h]h update_lock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubj+)}(hhh](h)}(h9The lock used when calling the update_status() operation.h]h9The lock used when calling the update_status() operation.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhj ubh)}(hupdate_lock is an internal backlight lock that serialise access to the update_status() operation. The backlight core holds the update_lock when calling the update_status() operation. The update_lock shall not be used by backlight drivers.h]hupdate_lock is an internal backlight lock that serialise access to the update_status() operation. The backlight core holds the update_lock when calling the update_status() operation. The update_lock shall not be used by backlight drivers.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubeh}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj )}(hX``ops_lock`` The lock used around everything related to backlight_ops. ops_lock is an internal backlight lock that protects the ops pointer and is used around all accesses to ops and when the operations are invoked. The ops_lock shall not be used by backlight drivers. h](j)}(h ``ops_lock``h]j)}(hjL h]hops_lock}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM hjF ubj+)}(hhh](h)}(h9The lock used around everything related to backlight_ops.h]h9The lock used around everything related to backlight_ops.}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM hjb ubh)}(hops_lock is an internal backlight lock that protects the ops pointer and is used around all accesses to ops and when the operations are invoked. The ops_lock shall not be used by backlight drivers.h]hops_lock is an internal backlight lock that protects the ops pointer and is used around all accesses to ops and when the operations are invoked. The ops_lock shall not be used by backlight drivers.}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM hjb ubeh}(h]h ]h"]h$]h&]uh1j*hjF ubeh}(h]h ]h"]h$]h&]uh1jhja hM hj ubj )}(h``ops`` Pointer to the backlight operations. If ops is NULL, the driver that registered this device has been unloaded, and if class_get_devdata() points to something in the body of that driver, it is also invalid. h](j)}(h``ops``h]j)}(hj h]hops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubj+)}(hhh](h)}(h$Pointer to the backlight operations.h]h$Pointer to the backlight operations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubh)}(hIf ops is NULL, the driver that registered this device has been unloaded, and if class_get_devdata() points to something in the body of that driver, it is also invalid.h]hIf ops is NULL, the driver that registered this device has been unloaded, and if class_get_devdata() points to something in the body of that driver, it is also invalid.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubeh}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj )}(h,``fb_notif`` The framebuffer notifier block h](j)}(h ``fb_notif``h]j)}(hj h]hfb_notif}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhj ubj+)}(hhh]h)}(hThe framebuffer notifier blockh]hThe framebuffer notifier block}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj )}(h9``entry`` List entry of all registered backlight devices h](j)}(h ``entry``h]j)}(hj h]hentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM hj ubj+)}(hhh]h)}(h.List entry of all registered backlight devicesh]h.List entry of all registered backlight devices}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj, hM hj- ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj, hM hj ubj )}(h``dev`` Parent device. h](j)}(h``dev``h]j)}(hjP h]hdev}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM%hjJ ubj+)}(hhh]h)}(hParent device.h]hParent device.}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje hM%hjf ubah}(h]h ]h"]h$]h&]uh1j*hjJ ubeh}(h]h ]h"]h$]h&]uh1jhje hM%hj ubj )}(h``fb_bl_on`` The state of individual fbdev's. Multiple fbdev's may share one backlight device. The fb_bl_on records the state of the individual fbdev. h](j)}(h ``fb_bl_on``h]j)}(hj h]hfb_bl_on}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM-hj ubj+)}(hhh](h)}(h The state of individual fbdev's.h]h"The state of individual fbdev’s.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM*hj ubh)}(hhMultiple fbdev's may share one backlight device. The fb_bl_on records the state of the individual fbdev.h]hjMultiple fbdev’s may share one backlight device. The fb_bl_on records the state of the individual fbdev.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM,hj ubeh}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM-hj ubj )}(h-``use_count`` The number of uses of fb_bl_on.h](j)}(h ``use_count``h]j)}(hj h]h use_count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM1hj ubj+)}(hhh]h)}(hThe number of uses of fb_bl_on.h]hThe number of uses of fb_bl_on.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM2hj ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM1hj ubeh}(h]h ]h"]h$]h&]uh1jhjy ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM5hhhhubh)}(h=This structure holds all data required by a backlight device.h]h=This structure holds all data required by a backlight device.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhKhhhhubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ$backlight_update_status (C function)c.backlight_update_statushNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h9int backlight_update_status (struct backlight_device *bd)h]ja)}(h8int backlight_update_status(struct backlight_device *bd)h](hdesc_sig_keyword_type)}(hinth]hint}(hjU hhhNhNubah}(h]h ]ktah"]h$]h&]uh1jS hjO hhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM:ubjy)}(h h]h }(hje hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjO hhhjd hM:ubj)}(hbacklight_update_statush]j)}(hbacklight_update_statush]hbacklight_update_status}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjO hhhjd hM:ubhdesc_parameterlist)}(h(struct backlight_device *bd)h]hdesc_parameter)}(hstruct backlight_device *bdh](jg)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj ubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}j jy sbc.backlight_update_statusasbuh1hhj ubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubhdesc_sig_punctuation)}(h*h]h*}(hj hhhNhNubah}(h]h ]pah"]h$]h&]uh1j hj ubj)}(hbdh]hbd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hj ubah}(h]h ]h"]h$]h&]hhuh1j hjO hhhjd hM:ubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjK hhhjd hM:ubah}(h]jF ah ](jjeh"]h$]h&]jj)jhuh1jZhjd hM:hjH hhubj)}(hhh]h)}(h.force an update of the backlight device statush]h.force an update of the backlight device status}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM7hj#hhubah}(h]h ]h"]h$]h&]uh1jhjH hhhjd hM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jUhhhhhNhNubj)}(hF**Parameters** ``struct backlight_device *bd`` the backlight deviceh](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM;hjBubj)}(hhh]j )}(h4``struct backlight_device *bd`` the backlight deviceh](j)}(h``struct backlight_device *bd``h]j)}(hjgh]hstruct backlight_device *bd}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM=hjaubj+)}(hhh]h)}(hthe backlight deviceh]hthe backlight device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM8hj}ubah}(h]h ]h"]h$]h&]uh1j*hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM=hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQbacklight_enable (C function)c.backlight_enablehNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h2int backlight_enable (struct backlight_device *bd)h]ja)}(h1int backlight_enable(struct backlight_device *bd)h](jT )}(hinth]hint}(hjhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMJubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhjhMJubj)}(hbacklight_enableh]j)}(hbacklight_enableh]hbacklight_enable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMJubj )}(h(struct backlight_device *bd)h]j )}(hstruct backlight_device *bdh](jg)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNj j )}j ]j )}j jsbc.backlight_enableasbuh1hhjubjy)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubj )}(hj h]h*}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj)}(hbdh]hbd}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubah}(h]h ]h"]h$]h&]hhuh1j hjhhhjhMJubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jZhjhMJhjhhubj)}(hhh]h)}(hEnable backlighth]hEnable backlight}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMGhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jUhhhhhNhNubj)}(hP**Parameters** ``struct backlight_device *bd`` the backlight device to enableh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMKhjubj)}(hhh]j )}(h>``struct backlight_device *bd`` the backlight device to enableh](j)}(h``struct backlight_device *bd``h]j)}(hjh]hstruct backlight_device *bd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMMhjubj+)}(hhh]h)}(hthe backlight device to enableh]hthe backlight device to enable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMHhjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQbacklight_disable (C function)c.backlight_disablehNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h3int backlight_disable (struct backlight_device *bd)h]ja)}(h2int backlight_disable(struct backlight_device *bd)h](jT )}(hinth]hint}(hjhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMYubjy)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhj*hMYubj)}(hbacklight_disableh]j)}(hbacklight_disableh]hbacklight_disable}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj*hMYubj )}(h(struct backlight_device *bd)h]j )}(hstruct backlight_device *bdh](jg)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjUubjy)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjUubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNj j )}j ]j )}j j?sbc.backlight_disableasbuh1hhjUubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjUubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjUubj)}(hbdh]hbd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjQubah}(h]h ]h"]h$]h&]hhuh1j hjhhhj*hMYubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjhhhj*hMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jZhj*hMYhjhhubj)}(hhh]h)}(hDisable backlighth]hDisable backlight}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMVhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jUhhhhhNhNubj)}(hQ**Parameters** ``struct backlight_device *bd`` the backlight device to disableh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMZhjubj)}(hhh]j )}(h?``struct backlight_device *bd`` the backlight device to disableh](j)}(h``struct backlight_device *bd``h]j)}(hjh]hstruct backlight_device *bd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM\hjubj+)}(hhh]h)}(hthe backlight device to disableh]hthe backlight device to disable}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMWhj3ubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhj2hM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQbacklight_is_blank (C function)c.backlight_is_blankhNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h;bool backlight_is_blank (const struct backlight_device *bd)h]ja)}(h:bool backlight_is_blank(const struct backlight_device *bd)h](jT )}(hboolh]hbool}(hjwhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjshhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMoubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjshhhjhMoubj)}(hbacklight_is_blankh]j)}(hbacklight_is_blankh]hbacklight_is_blank}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjshhhjhMoubj )}(h#(const struct backlight_device *bd)h]j )}(h!const struct backlight_device *bdh](jg)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubjg)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNj j )}j ]j )}j jsbc.backlight_is_blankasbuh1hhjubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj)}(hbdh]hbd}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubah}(h]h ]h"]h$]h&]hhuh1j hjshhhjhMoubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjohhhjhMoubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jZhjhMohjlhhubj)}(hhh]h)}(h.Return true if display is expected to be blankh]h.Return true if display is expected to be blank}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMehjPhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jUhhhhhNhNubj)}(hX#**Parameters** ``const struct backlight_device *bd`` the backlight device **Description** Display is expected to be blank if any of these is true:: 1) if power in not UNBLANK 2) if state indicate BLANK or SUSPENDED Returns true if display is expected to be blank, false otherwise.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMihjoubj)}(hhh]j )}(h;``const struct backlight_device *bd`` the backlight device h](j)}(h%``const struct backlight_device *bd``h]j)}(hjh]h!const struct backlight_device *bd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMfhjubj+)}(hhh]h)}(hthe backlight deviceh]hthe backlight device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhhjoubh)}(h9Display is expected to be blank if any of these is true::h]h8Display is expected to be blank if any of these is true:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhhjoubh)}(hB1) if power in not UNBLANK 2) if state indicate BLANK or SUSPENDEDh]hB1) if power in not UNBLANK 2) if state indicate BLANK or SUSPENDED}hjsbah}(h]h ]h"]h$]h&]hhuh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMjhjoubh)}(hAReturns true if display is expected to be blank, false otherwise.h]hAReturns true if display is expected to be blank, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMmhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ%backlight_get_brightness (C function)c.backlight_get_brightnesshNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h@int backlight_get_brightness (const struct backlight_device *bd)h]ja)}(h?int backlight_get_brightness(const struct backlight_device *bd)h](jT )}(hinth]hint}(hj2hhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hj.hhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMubjy)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj.hhhj@hMubj)}(hbacklight_get_brightnessh]j)}(hbacklight_get_brightnessh]hbacklight_get_brightness}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]hhuh1jhj.hhhj@hMubj )}(h#(const struct backlight_device *bd)h]j )}(h!const struct backlight_device *bdh](jg)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjkubjy)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjkubjg)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjkubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjkubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNj j )}j ]j )}j jUsbc.backlight_get_brightnessasbuh1hhjkubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjkubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjkubj)}(hbdh]hbd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjgubah}(h]h ]h"]h$]h&]hhuh1j hj.hhhj@hMubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhj*hhhj@hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jZhj@hMhj'hhubj)}(hhh]h)}(h$Returns the current brightness valueh]h$Returns the current brightness value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMvhj hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jUhhhhhNhNubj)}(hX**Parameters** ``const struct backlight_device *bd`` the backlight device **Description** Returns the current brightness value, taking in consideration the current state. If backlight_is_blank() returns true then return 0 as brightness otherwise return the current brightness property value. Backlight drivers are expected to use this function in their update_status() operation to get the brightness value.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMzhj)ubj)}(hhh]j )}(h;``const struct backlight_device *bd`` the backlight device h](j)}(h%``const struct backlight_device *bd``h]j)}(hjNh]h!const struct backlight_device *bd}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMwhjHubj+)}(hhh]h)}(hthe backlight deviceh]hthe backlight device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMwhjdubah}(h]h ]h"]h$]h&]uh1j*hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMwhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMyhj)ubh)}(hReturns the current brightness value, taking in consideration the current state. If backlight_is_blank() returns true then return 0 as brightness otherwise return the current brightness property value.h]hReturns the current brightness value, taking in consideration the current state. If backlight_is_blank() returns true then return 0 as brightness otherwise return the current brightness property value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMyhj)ubh)}(hsBacklight drivers are expected to use this function in their update_status() operation to get the brightness value.h]hsBacklight drivers are expected to use this function in their update_status() operation to get the brightness value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhM}hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQbl_get_data (C function) c.bl_get_datahNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h4void * bl_get_data (struct backlight_device *bl_dev)h]ja)}(h2void *bl_get_data(struct backlight_device *bl_dev)h](jT )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhjhMubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhMubj)}(h bl_get_datah]j)}(h bl_get_datah]h bl_get_data}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj )}(h!(struct backlight_device *bl_dev)h]j )}(hstruct backlight_device *bl_devh](jg)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj#ubjy)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj#ubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGmodnameN classnameNj j )}j ]j )}j j sb c.bl_get_dataasbuh1hhj#ubjy)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj#ubj )}(hj h]h*}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#ubj)}(hbl_devh]hbl_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubah}(h]h ]h"]h$]h&]hhuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jZhjhMhjhhubj)}(hhh]h)}(haccess devdatah]haccess devdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jUhhhhhNhNubj)}(hXB**Parameters** ``struct backlight_device *bl_dev`` pointer to backlight device **Description** When a backlight device is registered the driver has the possibility to supply a void * devdata. bl_get_data() return a pointer to the devdata. pointer to devdata stored while registering the backlight device. **Return**h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubj)}(hhh]j )}(h@``struct backlight_device *bl_dev`` pointer to backlight device h](j)}(h#``struct backlight_device *bl_dev``h]j)}(hjh]hstruct backlight_device *bl_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubj+)}(hhh]h)}(hpointer to backlight deviceh]hpointer to backlight device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubh)}(hWhen a backlight device is registered the driver has the possibility to supply a void * devdata. bl_get_data() return a pointer to the devdata.h]hWhen a backlight device is registered the driver has the possibility to supply a void * devdata. bl_get_data() return a pointer to the devdata.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubh)}(hApointer to devdata stored while registering the backlight device.h]hApointer to devdata stored while registering the backlight device.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubh)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/backlight:8: ./include/linux/backlight.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ#backlight_force_update (C function)c.backlight_force_updatehNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(h^void backlight_force_update (struct backlight_device *bd, enum backlight_update_reason reason)h]ja)}(h]void backlight_force_update(struct backlight_device *bd, enum backlight_update_reason reason)h](jT )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjhhha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhjhMubj)}(hbacklight_force_updateh]j)}(hbacklight_force_updateh]hbacklight_force_update}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj )}(hB(struct backlight_device *bd, enum backlight_update_reason reason)h](j )}(hstruct backlight_device *bdh](jg)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubjy)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNj j )}j ]j )}j jsbc.backlight_force_updateasbuh1hhjubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj)}(hbdh]hbd}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubj )}(h#enum backlight_update_reason reasonh](jg)}(hjjh]henum}(hjAhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj=ubjy)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj=ubh)}(hhh]j)}(hbacklight_update_reasonh]hbacklight_update_reason}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNj j )}j ]j c.backlight_force_updateasbuh1hhj=ubjy)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj=ubj)}(hreasonh]hreason}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubeh}(h]h ]h"]h$]h&]hhuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jZhjhMhjhhubj)}(hhh]h)}(hmodnameN classnameNj j )}j ]j c.devm_backlight_device_registerasbuh1hhjubjy)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubj )}(hj h]h*}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj)}(hpropsh]hprops}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjubeh}(h]h ]h"]h$]h&]hhuh1j hj{hhhjhMCubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjwhhhjhMCubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jZhjhMChjthhubj)}(hhh]h)}(hregister a new backlight deviceh]hregister a new backlight device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM3hjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jUhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` the device to register ``const char *name`` the name of the device ``struct device *parent`` a pointer to the parent device (often the same as **dev**) ``void *devdata`` an optional pointer to be stored for private driver use ``const struct backlight_ops *ops`` the backlight operations structure ``const struct backlight_properties *props`` the backlight properties **Description** Creates and registers new backlight device. When a backlight device is registered the configuration must be specified in the **props** parameter. See description of :c:type:`backlight_properties`. struct backlight on success, or an ERR_PTR on error **Return**h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM7hjubj)}(hhh](j )}(h.``struct device *dev`` the device to register h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM4hjubj+)}(hhh]h)}(hthe device to registerh]hthe device to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubj )}(h,``const char *name`` the name of the device h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM5hjubj+)}(hhh]h)}(hthe name of the deviceh]hthe name of the device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM5hj/ubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhj.hM5hjubj )}(hU``struct device *parent`` a pointer to the parent device (often the same as **dev**) h](j)}(h``struct device *parent``h]j)}(hjRh]hstruct device *parent}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM6hjLubj+)}(hhh]h)}(h:a pointer to the parent device (often the same as **dev**)h](h2a pointer to the parent device (often the same as }(hjkhhhNhNubj)}(h**dev**h]hdev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh)}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghM6hjhubah}(h]h ]h"]h$]h&]uh1j*hjLubeh}(h]h ]h"]h$]h&]uh1jhjghM6hjubj )}(hJ``void *devdata`` an optional pointer to be stored for private driver use h](j)}(h``void *devdata``h]j)}(hjh]h void *devdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM7hjubj+)}(hhh]h)}(h7an optional pointer to be stored for private driver useh]h7an optional pointer to be stored for private driver use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj )}(hG``const struct backlight_ops *ops`` the backlight operations structure h](j)}(h#``const struct backlight_ops *ops``h]j)}(hjh]hconst struct backlight_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM8hjubj+)}(hhh]h)}(h"the backlight operations structureh]h"the backlight operations structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1j*hjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj )}(hF``const struct backlight_properties *props`` the backlight properties h](j)}(h,``const struct backlight_properties *props``h]j)}(hjh]h(const struct backlight_properties *props}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM9hj ubj+)}(hhh]h)}(hthe backlight propertiesh]hthe backlight properties}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM9hj%ubah}(h]h ]h"]h$]h&]uh1j*hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM9hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM;hjubh)}(hCreates and registers new backlight device. When a backlight device is registered the configuration must be specified in the **props** parameter. See description of :c:type:`backlight_properties`.h](h}Creates and registers new backlight device. When a backlight device is registered the configuration must be specified in the }(hj`hhhNhNubj)}(h **props**h]hprops}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh parameter. See description of }(hj`hhhNhNubh)}(h:c:type:`backlight_properties`h]j)}(hj|h]hbacklight_properties}(hj~hhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdoc gpu/backlight refdomainjreftypetype refexplicitrefwarnj j )}j ]sb reftargetbacklight_propertiesuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM;hj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM;hjubh)}(h3struct backlight on success, or an ERR_PTR on errorh]h3struct backlight on success, or an ERR_PTR on error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM?hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ-devm_backlight_device_unregister (C function)"c.devm_backlight_device_unregisterhNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(hWvoid devm_backlight_device_unregister (struct device *dev, struct backlight_device *bd)h]ja)}(hVvoid devm_backlight_device_unregister(struct device *dev, struct backlight_device *bd)h](jT )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j` ah"]h$]h&]uh1jS hjhhha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMeubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhjhMeubj)}(h devm_backlight_device_unregisterh]j)}(h devm_backlight_device_unregisterh]h devm_backlight_device_unregister}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMeubj )}(h1(struct device *dev, struct backlight_device *bd)h](j )}(hstruct device *devh](jg)}(hjh]hstruct}(hj. hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj* ubjy)}(h h]h }(hj; hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj* ubh)}(hhh]j)}(hdeviceh]hdevice}(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjN modnameN classnameNj j )}j ]j )}j j sb"c.devm_backlight_device_unregisterasbuh1hhj* ubjy)}(h h]h }(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj* ubj )}(hj h]h*}(hjz hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj* ubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj* ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hj& ubj )}(hstruct backlight_device *bdh](jg)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj ubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNj j )}j ]jh "c.devm_backlight_device_unregisterasbuh1hhj ubjy)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubj )}(hj h]h*}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj ubj)}(hbdh]hbd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hj& ubeh}(h]h ]h"]h$]h&]hhuh1j hjhhhjhMeubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhjhhhjhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jZhjhMehjhhubj)}(hhh]h)}(hunregister backlight deviceh]hunregister backlight device}(hj!!hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM]hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9!jj9!jjjuh1jUhhhhhNhNubj)}(hX_**Parameters** ``struct device *dev`` the device to unregister ``struct backlight_device *bd`` the backlight device to unregister **Description** Deallocates a backlight allocated with devm_backlight_device_register(). Normally this function will not need to be called and the resource management code will ensure that the resources are freed.h](h)}(h**Parameters**h]j)}(hjC!h]h Parameters}(hjE!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA!ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMahj=!ubj)}(hhh](j )}(h0``struct device *dev`` the device to unregister h](j)}(h``struct device *dev``h]j)}(hjb!h]hstruct device *dev}(hjd!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`!ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM^hj\!ubj+)}(hhh]h)}(hthe device to unregisterh]hthe device to unregister}(hj{!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw!hM^hjx!ubah}(h]h ]h"]h$]h&]uh1j*hj\!ubeh}(h]h ]h"]h$]h&]uh1jhjw!hM^hjY!ubj )}(hC``struct backlight_device *bd`` the backlight device to unregister h](j)}(h``struct backlight_device *bd``h]j)}(hj!h]hstruct backlight_device *bd}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM_hj!ubj+)}(hhh]h)}(h"the backlight device to unregisterh]h"the backlight device to unregister}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM_hj!ubah}(h]h ]h"]h$]h&]uh1j*hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM_hjY!ubeh}(h]h ]h"]h$]h&]uh1jhj=!ubh)}(h**Description**h]j)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMahj=!ubh)}(hDeallocates a backlight allocated with devm_backlight_device_register(). Normally this function will not need to be called and the resource management code will ensure that the resources are freed.h]hDeallocates a backlight allocated with devm_backlight_device_register(). Normally this function will not need to be called and the resource management code will ensure that the resources are freed.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMahj=!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ&of_find_backlight_by_node (C function)c.of_find_backlight_by_nodehNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(hNstruct backlight_device * of_find_backlight_by_node (struct device_node *node)h]ja)}(hLstruct backlight_device *of_find_backlight_by_node(struct device_node *node)h](jg)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj"hhha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMubjy)}(h h]h }(hj)"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj"hhhj("hMubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hj:"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<"modnameN classnameNj j )}j ]j )}j of_find_backlight_by_nodesbc.of_find_backlight_by_nodeasbuh1hhj"hhhj("hMubjy)}(h h]h }(hj["hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj"hhhj("hMubj )}(hj h]h*}(hji"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"hhhj("hMubj)}(hof_find_backlight_by_nodeh]j)}(hjX"h]hof_find_backlight_by_node}(hjz"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv"ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj"hhhj("hMubj )}(h(struct device_node *node)h]j )}(hstruct device_node *nodeh](jg)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj"ubjy)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj"ubh)}(hhh]j)}(h device_nodeh]h device_node}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNj j )}j ]jV"c.of_find_backlight_by_nodeasbuh1hhj"ubjy)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj"ubj )}(hj h]h*}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj"ubj)}(hnodeh]hnode}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hj"ubah}(h]h ]h"]h$]h&]hhuh1j hj"hhhj("hMubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhj"hhhj("hMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jZhj("hMhj"hhubj)}(hhh]h)}(h)find backlight device by device-tree nodeh]h)find backlight device by device-tree node}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMwhj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj("hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.#jj.#jjjuh1jUhhhhhNhNubj)}(hX**Parameters** ``struct device_node *node`` device-tree node of the backlight device **Description** Returns a pointer to the backlight device corresponding to the given DT node or NULL if no such backlight device exists or if the device hasn't been probed yet. This function obtains a reference on the backlight device and it is the caller's responsibility to drop the reference by calling put_device() on the backlight device's .dev field.h](h)}(h**Parameters**h]j)}(hj8#h]h Parameters}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6#ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM{hj2#ubj)}(hhh]j )}(hF``struct device_node *node`` device-tree node of the backlight device h](j)}(h``struct device_node *node``h]j)}(hjW#h]hstruct device_node *node}(hjY#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU#ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMxhjQ#ubj+)}(hhh]h)}(h(device-tree node of the backlight deviceh]h(device-tree node of the backlight device}(hjp#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl#hMxhjm#ubah}(h]h ]h"]h$]h&]uh1j*hjQ#ubeh}(h]h ]h"]h$]h&]uh1jhjl#hMxhjN#ubah}(h]h ]h"]h$]h&]uh1jhj2#ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMzhj2#ubh)}(hReturns a pointer to the backlight device corresponding to the given DT node or NULL if no such backlight device exists or if the device hasn't been probed yet.h]hReturns a pointer to the backlight device corresponding to the given DT node or NULL if no such backlight device exists or if the device hasn’t been probed yet.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMzhj2#ubh)}(hThis function obtains a reference on the backlight device and it is the caller's responsibility to drop the reference by calling put_device() on the backlight device's .dev field.h]hThis function obtains a reference on the backlight device and it is the caller’s responsibility to drop the reference by calling put_device() on the backlight device’s .dev field.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chM~hj2#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubjE)}(hhh]h}(h]h ]h"]h$]h&]entries](jQ#devm_of_find_backlight (C function)c.devm_of_find_backlighthNtauh1jDhhhhhNhNubjV)}(hhh](j[)}(hEstruct backlight_device * devm_of_find_backlight (struct device *dev)h]ja)}(hCstruct backlight_device *devm_of_find_backlight(struct device *dev)h](jg)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj#hhha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMubjy)}(h h]h }(hj#hhhNhNubah}(h]h ]ja h"]h$]h&]uh1jxhj#hhhj#hMubh)}(hhh]j)}(hbacklight_deviceh]hbacklight_device}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNj j )}j ]j )}j devm_of_find_backlightsbc.devm_of_find_backlightasbuh1hhj#hhhj#hMubjy)}(h h]h }(hj&$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj#hhhj#hMubj )}(hj h]h*}(hj4$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#hhhj#hMubj)}(hdevm_of_find_backlighth]j)}(hj#$h]hdevm_of_find_backlight}(hjE$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA$ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj#hhhj#hMubj )}(h(struct device *dev)h]j )}(hstruct device *devh](jg)}(hjh]hstruct}(hj`$hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj\$ubjy)}(h h]h }(hjm$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj\$ubh)}(hhh]j)}(hdeviceh]hdevice}(hj~$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNj j )}j ]j!$c.devm_of_find_backlightasbuh1hhj\$ubjy)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj\$ubj )}(hj h]h*}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj\$ubj)}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\$ubeh}(h]h ]h"]h$]h&]noemphhhuh1j hjX$ubah}(h]h ]h"]h$]h&]hhuh1j hj#hhhj#hMubeh}(h]h ]h"]h$]h&]hhjuh1j`jjhj#hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jZhj#hMhj#hhubj)}(hhh]h)}(hfind backlight for a deviceh]hfind backlight for a device}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jUhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` the device **Description** This function looks for a property named 'backlight' on the DT node connected to **dev** and looks up the backlight device. The lookup is device managed so the reference to the backlight device is automatically dropped on driver detach. A pointer to the backlight device if found. Error pointer -EPROBE_DEFER if the DT property is set, but no backlight device is found. NULL if there's no backlight property. **Return**h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$ubj)}(hhh]j )}(h"``struct device *dev`` the device h](j)}(h``struct device *dev``h]j)}(hj"%h]hstruct device *dev}(hj$%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj%ubj+)}(hhh]h)}(h the deviceh]h the device}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7%hMhj8%ubah}(h]h ]h"]h$]h&]uh1j*hj%ubeh}(h]h ]h"]h$]h&]uh1jhj7%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hj]%h]h Description}(hj_%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[%ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$ubh)}(hThis function looks for a property named 'backlight' on the DT node connected to **dev** and looks up the backlight device. The lookup is device managed so the reference to the backlight device is automatically dropped on driver detach.h](hUThis function looks for a property named ‘backlight’ on the DT node connected to }(hjs%hhhNhNubj)}(h**dev**h]hdev}(hj{%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs%ubh and looks up the backlight device. The lookup is device managed so the reference to the backlight device is automatically dropped on driver detach.}(hjs%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$ubh)}(hA pointer to the backlight device if found. Error pointer -EPROBE_DEFER if the DT property is set, but no backlight device is found. NULL if there's no backlight property.h]hA pointer to the backlight device if found. Error pointer -EPROBE_DEFER if the DT property is set, but no backlight device is found. NULL if there’s no backlight property.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/backlight:11: ./drivers/video/backlight/backlight.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]backlight-supportah ]h"]backlight supportah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj%error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}j%j%s nametypes}j%sh}(j%hjSj\jjjrjwjjj j jF jK jjjjjjjoj%j*jjjjjjjrjwjjj"j"j#j#u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.