soc/mediatek: Remove unnecessary !! for boolean variable

Enable is already a boolean, so the !! is not needed.

BUG=None
TEST=build pass.

Change-Id: I25a7cec632f21a258b8364c82e25b59e55ab7453
Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72869
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Liju-Clr Chen 2023-02-07 14:00:33 +08:00 committed by Felix Held
parent 45d51a92ee
commit bf5f821431
1 changed files with 2 additions and 2 deletions

View File

@ -316,12 +316,12 @@ u32 mt6359p_get_vsim1_voltage(void)
void mt6359p_enable_vpa(bool enable)
{
mt6359p_write_field(PMIC_VPA_CON0, !!enable, 0x1, 0);
mt6359p_write_field(PMIC_VPA_CON0, enable, 0x1, 0);
}
void mt6359p_enable_vsim1(bool enable)
{
mt6359p_write_field(PMIC_VSIM1_CON0, !!enable, 0x1, 0);
mt6359p_write_field(PMIC_VSIM1_CON0, enable, 0x1, 0);
}
static void init_pmif_arb(void)