firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 7 Jun 2022 18:23:34 +0000 (20:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:34 +0000 (21:24 +0200)
commit2ef4c6d66f7dc8f18047707def98b38e16ed628e
treead16d11754258b59af68d63caf12afea5831572c
parentf57c76104c74fb16699417dc8bd042fc122c04fa
firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer

[ Upstream commit 9e121040e54abef9ed5542e5fdfa87911cd96204 ]

This function just returned 0 on success or an errno code on error, but it
could be useful for sysfb_init() callers to have a pointer to the device.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220607182338.344270-2-javierm@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/sysfb.c
drivers/firmware/sysfb_simplefb.c
include/linux/sysfb.h