aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/console/fbcon.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h
index 3706307e70ed..0135e0395456 100644
--- a/drivers/video/console/fbcon.h
+++ b/drivers/video/console/fbcon.h
@@ -104,10 +104,14 @@ struct fbcon_ops {
104#define attr_blink(s) \ 104#define attr_blink(s) \
105 ((s) & 0x8000) 105 ((s) & 0x8000)
106 106
107#define mono_col(info) \ 107
108 (~(0xfff << (max((info)->var.green.length, \ 108static inline int mono_col(const struct fb_info *info)
109 max((info)->var.red.length, \ 109{
110 (info)->var.blue.length)))) & 0xff) 110 __u32 max_len;
111 max_len = max(info->var.green.length, info->var.red.length);
112 max_len = max(info->var.blue.length, max_len);
113 return ~(0xfff << (max_len & 0xff));
114}
111 115
112static inline int attr_col_ec(int shift, struct vc_data *vc, 116static inline int attr_col_ec(int shift, struct vc_data *vc,
113 struct fb_info *info, int is_fg) 117 struct fb_info *info, int is_fg)