summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/adxl34x-i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2023-01-14 17:16:11 +0000
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-01-27 14:49:52 -0800
commitc0a150eee35f9a955cd47a737e97271ec262fd30 (patch)
treea2d6b186a2562bbdafcf92bbcaebcb159bab008a /drivers/input/misc/adxl34x-i2c.c
parent90208b31f9380c376269bf7f24f4ab1f0e144617 (diff)
downloadlinux-stable-c0a150eee35f9a955cd47a737e97271ec262fd30.tar.gz
linux-stable-c0a150eee35f9a955cd47a737e97271ec262fd30.tar.bz2
linux-stable-c0a150eee35f9a955cd47a737e97271ec262fd30.zip
Input: ad714x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS()
The I2C and SPI PM callbacks were identical (though wrapped in some bouncing out to the bus specific container of the struct device and then back again to get the drvdata). As such rather than just moving these to SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() take the opportunity to unify the struct dev_pm_ops and use the new EXPORT_SIMPLE_DEV_PM_OPS() macro so that we can drop the unused suspend and resume callbacks as well as the structure if !CONFIG_PM_SLEEP without needing to mark the callbacks __maybe_unused. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Michael Hennerich <michael.hennerich@analog.com> Link: https://lore.kernel.org/r/20230114171620.42891-8-jic23@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/adxl34x-i2c.c')
0 files changed, 0 insertions, 0 deletions