pc-bios/s390-ccw: rename MAX_TABLE_ENTRIES to MAX_BOOT_ENTRIES
commit6df2a829dfacfbf10a78199ad4b023a7ea65d9cd
authorCollin Walling <walling@linux.ibm.com>
Mon, 16 Apr 2018 16:56:07 +0000 (16 12:56 -0400)
committerThomas Huth <thuth@redhat.com>
Wed, 2 May 2018 09:27:14 +0000 (2 11:27 +0200)
tree56b1bb50c05b1bba54406b4ab13914adb3350450
parente4f869621203955761cf274c87d5595e9facd319
pc-bios/s390-ccw: rename MAX_TABLE_ENTRIES to MAX_BOOT_ENTRIES

The MAX_TABLE_ENTRIES constant has a name that is too generic. As we
want to declare a limit for boot menu entries, let's rename it to a more
fitting MAX_BOOT_ENTRIES and set its value to 31 (30 boot entries and
1 default entry). Also we move it from bootmap.h to s390-ccw.h to make
it available for menu.c in a later patch.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/bootmap.h
pc-bios/s390-ccw/s390-ccw.h