isl9241: change control1_mutex to use K_MUTEX_DEFINE
Convert control1_mutex to use K_MUTEX_DEFINE(), removing the
requirement for runtime initialization on Zephyr.
BRANCH=none
TEST=zmake testall && make buildall
static int learn_mode;
/* Mutex for CONTROL1 register, that can be updated from multiple tasks. */
-static mutex_t control1_mutex;
+K_MUTEX_DEFINE(control1_mutex);
/* Charger parameters */
static const struct charger_info isl9241_charger_info = {
@@ -378,9 +378,6 @@ static void isl9241_init(int chgnum)
const struct battery_info *bi = battery_get_info();
- /* Init the mutex for ZephyrOS (nop for non-Zephyr builds) */
- (void)k_mutex_init(&control1_mutex);
-
/*
* Set the MaxSystemVoltage to battery maximum,
* 0x00=disables switching charger states
