Re: [PATCH 09/11] driver/ps3: Include for mode parsing

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann  writes:

> Include  in ps3av.c to get video_get_options() and
> avoid the dependency on . The replaced function
> fb_get_options() is just a tiny wrapper around video_get_opions(). No
> functional changes.
>
> Signed-off-by: Thomas Zimmermann 
> ---

Reviewed-by: Javier Martinez Canillas 

Best regards,
Javier



[PATCH 09/11] driver/ps3: Include for mode parsing

2023-02-09 Thread Thomas Zimmermann
Include  in ps3av.c to get video_get_options() and
avoid the dependency on . The replaced function
fb_get_options() is just a tiny wrapper around video_get_opions(). No
functional changes.

Signed-off-by: Thomas Zimmermann 
---
 drivers/ps3/ps3av.c | 18 ++
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/drivers/ps3/ps3av.c b/drivers/ps3/ps3av.c
index 8f3e60f1bfe2..f6c9e56bdba7 100644
--- a/drivers/ps3/ps3av.c
+++ b/drivers/ps3/ps3av.c
@@ -11,13 +11,14 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 
 #include 
 #include 
 #include 
 
+#include 
+
 #include "vuart.h"
 
 #define BUFSIZE  4096  /* vuart buf size */
@@ -921,9 +922,7 @@ EXPORT_SYMBOL_GPL(ps3av_audio_mute);
 
 static int ps3av_probe(struct ps3_system_bus_device *dev)
 {
-#ifdef CONFIG_FB
-   char *mode_option = NULL;
-#endif
+   const char *mode_option;
int res;
int id;
 
@@ -971,14 +970,9 @@ static int ps3av_probe(struct ps3_system_bus_device *dev)
 
ps3av_get_hw_conf(ps3av);
 
-#ifdef CONFIG_FB
-   fb_get_options(NULL, _option);
-   if (mode_option) {
-   if (!strcmp(mode_option, "safe"))
-   safe_mode = 1;
-   kfree(mode_option);
-   }
-#endif /* CONFIG_FB */
+   mode_option = video_get_options(NULL);
+   if (mode_option && !strcmp(mode_option, "safe"))
+   safe_mode = 1;
id = ps3av_auto_videomode(>av_hw_conf);
if (id < 0) {
printk(KERN_ERR "%s: invalid id :%d\n", __func__, id);
-- 
2.39.1