[RESEND,RFC,2/2] fbset: support setting pixel clock rate

Message ID 20220925203114.1537909-2-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [RESEND,RFC,1/2] fbset: abort on not handled options
Related show

Commit Message

Dario Binacchi Sept. 25, 2022, 8:31 p.m. UTC
Only in case the FEATURE_FBSET_FANCY configuration is enabled.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 util-linux/fbset.c | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 0eaa7c0a6427..768ab80eb82d 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -518,6 +518,9 @@  int fbset_main(int argc, char **argv)
 			case CMD_DEPTH:
 				var_set.bits_per_pixel = xatou32(argv[1]);
 				break;
+			case CMD_PIXCLOCK:
+				var_set.pixclock = xatou32(argv[1]);
+				break;
 #endif
 			default:
 				bb_perror_msg_and_die("option '%s' not handled",