diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2016-06-23 07:34:35 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-25 12:04:48 -0400 |
| commit | 6ca8dfd78187d8238abc5b2996848a0c8f07948d (patch) | |
| tree | 9ac4c3325558f7e31ca35e34c7f07407ce865d53 /include/linux/console_struct.h | |
| parent | aada0a344182e3aec7bfb0cc611f272e6297c3e3 (diff) | |
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.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: linux-usb@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/console_struct.h')
| -rw-r--r-- | include/linux/console_struct.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h index 5fa605c93428..a12d3f2899a8 100644 --- a/include/linux/console_struct.h +++ b/include/linux/console_struct.h | |||
| @@ -168,6 +168,9 @@ extern void vc_SAK(struct work_struct *work); | |||
| 168 | 168 | ||
| 169 | #define CUR_DEFAULT CUR_UNDERLINE | 169 | #define CUR_DEFAULT CUR_UNDERLINE |
| 170 | 170 | ||
| 171 | #define CON_IS_VISIBLE(conp) (*conp->vc_display_fg == conp) | 171 | static 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 */ |
