]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fbdev/core: Pass Linux device to pm_vt_switch_*() functions
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 13 Jun 2023 11:07:07 +0000 (13:07 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 07:58:50 +0000 (09:58 +0200)
commit403f0dda63155eeaae3a7f43d70ed4bea7c293f8
tree5c02f7322b51ed49a9c7d8ef0a12c3d6f8488f80
parent8adcfd2187caa084598225bfdd04cd08c6948d9b
fbdev/core: Pass Linux device to pm_vt_switch_*() functions

Pass the Linux device to pm_vt_switch_*() instead of the virtual
fbdev device. Prepares fbdev for making struct fb_info.dev optional.

The type of device that is passed to the PM functions does not matter
much. It is only a token within the internal list of known devices.
The PM functions do not refer to any of the device's properties or its
type.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: linux-pm@vger.kernel.org
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-33-tzimmermann@suse.de
drivers/video/fbdev/core/fbmem.c