linux-stable/drivers/gpu/drm
Stephen Kitt ad4fd3b1df drm: shmobile: Use backlight helper
This started with work on the removal of backlight_properties'
deprecated fb_blank field, much of which can be taken care of by using
helper functions provided by backlight.h instead of directly accessing
fields in backlight_properties. This patch series doesn't involve
fb_blank, but it still seems useful to use helper functions where
appropriate.

Instead of retrieving the backlight brightness in struct
backlight_properties manually, and then checking whether the backlight
should be on at all, use backlight_get_brightness() which does all
this and insulates this from future changes.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220616170821.1348169-1-steve@sk2.org
2022-06-24 21:45:28 +02:00
..
amd drm/amdgpu/display: drop set but unused variable 2022-06-20 18:18:49 -04:00
arm drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
armada drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
aspeed drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
ast drm/ast: Fixed the casting issue reported by sparse 2022-06-24 09:37:32 +02:00
atmel-hlcdc drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
bridge drm/bridge: parade-ps8640: Provide wait_hpd_asserted() in struct drm_dp_aux 2022-06-21 09:06:53 -07:00
display drm/display: Fix build error without CONFIG_OF 2022-06-23 16:18:02 +02:00
etnaviv Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next 2022-05-17 12:20:04 +10:00
exynos drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
fsl-dcu drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
gma500 drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
gud drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
hisilicon drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
hyperv drm/hyperv-drm: Include framebuffer and EDID headers 2022-06-22 16:07:38 +02:00
i2c
i810
i915 drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
imx drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
ingenic drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
kmb drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
lib
lima
logicvc drm/logicvc: add missing of_node_put() in logicvc_layers_init() 2022-06-24 17:23:38 +02:00
mcde drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
mediatek drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
meson drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
mga
mgag200 drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
msm drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
mxsfb drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
nouveau drm/nouveau/Kconfig: Drop duplicate "select ACPI_VIDEO" 2022-06-23 12:15:04 +02:00
omapdrm drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
panel drm/panel: panel-asus-z00t-tm5p5-n35596: Use backlight helper 2022-06-24 21:41:51 +02:00
panfrost drm-misc-next for 5.20: 2022-06-15 19:12:17 +02:00
pl111 drm/pl111: drop unexpected word "the" in the comments 2022-06-24 21:32:40 +02:00
qxl drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
r128 drm/r128: Fix undefined behavior due to shift overflowing the constant 2022-05-21 18:02:47 +02:00
radeon drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
rcar-du drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
rockchip drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
savage
scheduler drm/scheduler: Don't kill jobs in interrupt context 2022-05-17 10:06:41 -04:00
selftests drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
shmobile drm: shmobile: Use backlight helper 2022-06-24 21:45:28 +02:00
sis
solomon drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
sprd drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
sti drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
stm drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
sun4i drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
tdfx
tegra drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
tidss drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
tilcdc drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
tiny drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
ttm drm-misc-next for 5.20: 2022-06-15 19:12:17 +02:00
tve200 drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
udl drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
v3d drm/v3d: Add support for bcm2711 2022-06-12 22:10:50 -01:00
vboxvideo drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vc4 drm/vc4: drop unexpected word "the" in the comments 2022-06-22 09:22:55 +02:00
vgem
via
virtio drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vkms drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vmwgfx drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
xen drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
xlnx drm/xlnx: Fix build failure due to missing include 2022-06-21 11:23:52 +03:00
drm_agpsupport.c
drm_aperture.c drm/aperture: Run fbdev removal before internal helpers 2022-06-21 12:54:34 +02:00
drm_atomic.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_atomic_helper.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_atomic_state_helper.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_atomic_uapi.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_auth.c
drm_blend.c
drm_bridge.c drm/bridge: Add devm_drm_bridge_add() 2022-06-02 15:15:10 -07:00
drm_bridge_connector.c drm: Config orientation property if panel provides it 2022-06-21 08:52:59 -07:00
drm_buddy.c
drm_bufs.c
drm_cache.c
drm_client.c
drm_client_modeset.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_color_mgmt.c drm: fix typo in comment 2022-05-04 14:09:34 +02:00
drm_connector.c drm/panel: Add an API to allow drm to set orientation from panel 2022-06-21 08:40:30 -07:00
drm_context.c
drm_crtc.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_crtc_helper.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_damage_helper.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_debugfs.c drm/debug: Expose connector's max supported bpc via debugfs 2022-05-23 11:27:36 +03:00
drm_debugfs_crc.c
drm_displayid.c drm/displayid: convert to drm_edid 2022-05-13 18:55:13 +03:00
drm_dma.c
drm_drv.c
drm_dumb_buffers.c
drm_edid.c drm/edid: add new interfaces around struct drm_edid 2022-06-13 12:30:54 +03:00
drm_edid_load.c
drm_encoder.c drm: use ENOMEM for drmm_kzalloc allocation failures 2022-05-25 17:39:49 +02:00
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_file.c
drm_flip_work.c
drm_format_helper.c drm/format-helper: Share implementation among conversion helpers 2022-05-05 08:54:09 +02:00
drm_fourcc.c
drm_framebuffer.c
drm_gem.c
drm_gem_atomic_helper.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_gem_cma_helper.c drm/cma-helper: Describe what a "contiguous chunk" actually means 2022-06-08 17:36:15 +02:00
drm_gem_framebuffer_helper.c drm/gem: Warn on trying to use a non-existing framebuffer plane 2022-05-19 19:25:23 +02:00
drm_gem_shmem_helper.c
drm_gem_ttm_helper.c
drm_gem_vram_helper.c drm/gem-vram: Ignore planes that are unused by framebuffer format 2022-05-19 19:25:19 +02:00
drm_hashtab.c
drm_internal.h
drm_ioc32.c
drm_ioctl.c GPU: drm: drop unexpected word "the" in the comments 2022-06-22 09:23:08 +02:00
drm_irq.c
drm_kms_helper_common.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c drm: Add DRM-managed mutex_init() 2022-05-05 09:04:10 +02:00
drm_memory.c
drm_mipi_dbi.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_mode_object.c
drm_modes.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_modeset_helper.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
drm_modeset_lock.c
drm_nomodeset.c
drm_of.c drm: of: Add drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep 2022-06-12 12:22:22 +02:00
drm_panel.c
drm_panel_orientation_quirks.c drm: panel-orientation-quirks: drop unexpected word "the" in the comments 2022-06-22 09:23:01 +02:00
drm_pci.c
drm_plane.c drm/plane: Move range check for format_count earlier 2022-04-28 16:13:04 +01:00
drm_plane_helper.c
drm_prime.c drm/prime: drop unexpected word "the" in the comments 2022-06-22 09:22:05 +02:00
drm_print.c
drm_privacy_screen.c
drm_privacy_screen_x86.c
drm_probe_helper.c drm/probe-helper: abstract .get_modes() connector helper call 2022-06-13 12:31:27 +03:00
drm_property.c
drm_rect.c
drm_scatter.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_syncobj.c drm/syncobj: add missing error return code in drm_syncobj_transfer_to_timeline() 2022-06-13 08:54:16 +02:00
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c LoongArch: Add writecombine support for drm 2022-06-03 20:09:27 +08:00
drm_vma_manager.c
drm_writeback.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
Kconfig drm: Add support for the LogiCVC display controller 2022-06-09 16:49:56 +02:00
Makefile drm: Add support for the LogiCVC display controller 2022-06-09 16:49:56 +02:00