Skip to content

Commit 75e828c

Browse files
Eric LaiChromeos LUCI
Eric Lai
authored and
Chromeos LUCI
committed
mkbp: change preprocess Kconfig to IS_ENABLED
Clean up CL for https://crrev.com/c/4597039. BUG=b:286038072 TEST=OS can get EC MKBP event. Change-Id: I945c92d37758e298465888b93518d46524438073 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4598637 Reviewed-by: Jonathon Murphy <[email protected]> Commit-Queue: Eric Lai <[email protected]> Code-Coverage: Eric Lai <[email protected]> Auto-Submit: Eric Lai <[email protected]> Tested-by: Eric Lai <[email protected]>
1 parent fc84ebe commit 75e828c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

common/mkbp_event.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ static int mkbp_set_host_active_via_gpio(int active, uint32_t *timestamp)
104104
lock_key = irq_lock();
105105
*timestamp = __hw_clock_source_read();
106106
}
107-
#if defined CONFIG_MKBP_USE_GPIO_ACTIVE_HIGH
108-
gpio_set_level(GPIO_EC_INT_L, active);
109-
#else
110-
gpio_set_level(GPIO_EC_INT_L, !active);
111-
#endif
107+
108+
if (IS_ENABLED(CONFIG_MKBP_USE_GPIO_ACTIVE_HIGH))
109+
gpio_set_level(GPIO_EC_INT_L, active);
110+
else
111+
gpio_set_level(GPIO_EC_INT_L, !active);
112+
112113
if (timestamp)
113114
irq_unlock(lock_key);
114115

0 commit comments

Comments
 (0)