|
16 | 16 | #include <linux/proc_fs.h>
|
17 | 17 | #include <linux/seq_file.h>
|
18 | 18 | #include <linux/spinlock.h>
|
| 19 | +#include <linux/string_choices.h> |
19 | 20 | #include <linux/types.h>
|
| 21 | + |
20 | 22 | #include <asm/atarihw.h>
|
21 | 23 | #include <asm/atariints.h>
|
22 | 24 |
|
@@ -198,7 +200,7 @@ static void atari_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
|
198 | 200 | seq_printf(seq, "0x%02x (undefined)\n", nvram[1]);
|
199 | 201 |
|
200 | 202 | seq_printf(seq, "SCSI arbitration : %s\n",
|
201 |
| - (nvram[16] & 0x80) ? "on" : "off"); |
| 203 | + str_on_off(nvram[16] & 0x80)); |
202 | 204 | seq_puts(seq, "SCSI host ID : ");
|
203 | 205 | if (nvram[16] & 0x80)
|
204 | 206 | seq_printf(seq, "%d\n", nvram[16] & 7);
|
@@ -236,7 +238,7 @@ static void atari_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
|
236 | 238 | vmode & 16 ? "VGA" : "TV", vmode & 32 ? "PAL" : "NTSC");
|
237 | 239 | seq_printf(seq,
|
238 | 240 | " %soverscan, compat. mode %s%s\n",
|
239 |
| - vmode & 64 ? "" : "no ", vmode & 128 ? "on" : "off", |
| 241 | + vmode & 64 ? "" : "no ", str_on_off(vmode & 128), |
240 | 242 | vmode & 256 ?
|
241 | 243 | (vmode & 16 ? ", line doubling" : ", half screen") : "");
|
242 | 244 | }
|
|
0 commit comments