android_kernel_xiaomi_sm8350/drivers/base/power
Dmitry Torokhov f89cbc399e Driver core: add suspend() and resume() to struct device_type
Driver core: add suspend() and resume() to struct device_type

In cases when there are devices of different types in the same class
we can't use class's implementation of suspend and resume methods and
we need to add them to struct device_type instead.

Also fix error handling in resume code (we should not try to call
class's resume method iof bus's resume method for the device failed.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-04-27 10:57:29 -07:00
..
main.c [PATCH] PM: use kobject_name() to access kobject names 2007-04-11 15:39:39 -07:00
Makefile Add some basic resume trace facilities 2006-06-24 14:44:01 -07:00
power.h
resume.c Driver core: add suspend() and resume() to struct device_type 2007-04-27 10:57:29 -07:00
runtime.c
shutdown.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
suspend.c Driver core: add suspend() and resume() to struct device_type 2007-04-27 10:57:29 -07:00
sysfs.c PM: add kconfig option for deprecated .../power/state files 2006-09-25 21:08:37 -07:00
trace.c Add some basic resume trace facilities 2006-06-24 14:44:01 -07:00