History

tty: vt, convert more macros to functions

Namely convert: * IS_FG -> con_is_fg * DO_UPDATE -> con_should_update * CON_IS_VISIBLE -> con_is_visible DO_UPDATE was a weird name for a yes/no answer, so the new name is con_should_update.

Jiri Slaby committed 10 years ago

Commit 6ca8dfd1 parent aada0a35 files · +57 −48Browse files

Showing the changes to include/linux/console_struct.h (1 of 5 files). Show all

Unified · Split

include/linux/console_struct.h+4−1
@@ -168,6 +168,9 @@ extern void vc_SAK(struct work_struct *work); · 167 unmodified lines
168 168
169#define CUR_DEFAULT CUR_UNDERLINE169#define CUR_DEFAULT CUR_UNDERLINE
170 170
171#define CON_IS_VISIBLE(conp) (*conp->vc_display_fg == conp)171static inline bool con_is_visible(const struct vc_data *vc)
172{
173 return *vc->vc_display_fg == vc;
174}
172 175
173#endif /* _LINUX_CONSOLE_STRUCT_H */176#endif /* _LINUX_CONSOLE_STRUCT_H */