Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf80b425 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: smb135x-charger: initialize wakeup source for parallel charger



The charger driver holds a wake source for every i2c read/write operation
initialize wakeup source in parallel charger probe.

CRs-Fixed: 1052761
Change-Id: I16a842457a370dc73659207bb9b935d6bd7d688b
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 6beb213a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4381,6 +4381,7 @@ static int smb135x_parallel_charger_probe(struct i2c_client *client,
	mutex_init(&chip->path_suspend_lock);
	mutex_init(&chip->current_change_lock);
	mutex_init(&chip->read_write_lock);
	wakeup_source_init(&chip->wake_source.source, "smb_wake_source");

	match = of_match_node(smb135x_match_table, node);
	if (match == NULL) {