1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

tree: Retype variable programmer_may_write with bool

Use the bool type instead of an integer for the variable
`programmer_may_write`, since this represents its purpose much better.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: I69958527ae018a92f1c42734a7990d0c532dee0c
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66885
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Felix Singer
2022-08-19 02:48:15 +02:00
committed by Anastasia Klimchuk
parent bf85c62a8d
commit 2ffc56b337
5 changed files with 9 additions and 6 deletions

View File

@ -14,6 +14,7 @@
* GNU General Public License for more details.
*/
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "flash.h"
@ -140,7 +141,7 @@ static int gfxnvidia_init(const struct programmer_cfg *cfg)
pci_write_long(dev, REG_FLASH_ACCESS, reg32);
/* Write/erase doesn't work. */
programmer_may_write = 0;
programmer_may_write = false;
return register_par_master(&par_master_gfxnvidia, BUS_PARALLEL, data);
}