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

Commit c58da26a authored by Atul Raut's avatar Atul Raut Committed by Gerrit - the friendly Code Review server
Browse files

iio: adc: Implementing thaw callback



Hibernation may fail after this driver's freeze
callback. Implement thaw callback to undo the
changes done in freeze callback.

Change-Id: If37f637bb8fd5abd053082e38321082bce6b0718
Signed-off-by: default avatarAtul Raut <araut@codeaurora.org>
parent c5ac9792
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1140,6 +1140,7 @@ static int adc_freeze(struct device *dev)
static const struct dev_pm_ops adc_pm_ops = {
	.freeze = adc_freeze,
	.restore = adc_restore,
	.thaw = adc_restore,
};

static struct platform_driver adc_driver = {