Skip to content

Commit 91a2564

Browse files
vsyrjalahdeller
authored andcommitted
fbcon: fbcon_cursor_noblink -> fbcon_cursor_blink
Invert fbcon_cursor_noblink into fbcon_cursor_blink so that: - it matches the sysfs attribute exactly - avoids having to do these NOT operations all over the place - use bool instead of int Signed-off-by: Ville Syrjälä <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent a2a42f0 commit 91a2564

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/video/fbdev/core/fbcon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static const struct consw fb_con;
171171

172172
#define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
173173

174-
static int fbcon_cursor_noblink;
174+
static bool fbcon_cursor_blink = true;
175175

176176
#define divides(a, b) ((!(a) || (b)%(a)) ? 0 : 1)
177177

@@ -406,7 +406,7 @@ static void fbcon_add_cursor_work(struct fb_info *info)
406406
{
407407
struct fbcon_ops *ops = info->fbcon_par;
408408

409-
if (!fbcon_cursor_noblink)
409+
if (fbcon_cursor_blink)
410410
queue_delayed_work(system_power_efficient_wq, &ops->cursor_work,
411411
ops->cur_blink_jiffies);
412412
}
@@ -3273,10 +3273,10 @@ static ssize_t cursor_blink_store(struct device *device,
32733273
blink = simple_strtoul(buf, last, 0);
32743274

32753275
if (blink) {
3276-
fbcon_cursor_noblink = 0;
3276+
fbcon_cursor_blink = true;
32773277
fbcon_add_cursor_work(info);
32783278
} else {
3279-
fbcon_cursor_noblink = 1;
3279+
fbcon_cursor_blink = false;
32803280
fbcon_del_cursor_work(info);
32813281
}
32823282

0 commit comments

Comments
 (0)