summaryrefslogtreecommitdiff
path: root/drivers/mfd/intel_pmc_bxt.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-09-25 18:27:46 +0100
committerGuenter Roeck <linux@roeck-us.net>2022-09-25 14:22:12 -0700
commit5e866400e9d5d68d52907cbd91082c1cad477355 (patch)
treef78e73cbab7c17a3a3a46e0c8ef39c8d2d74cd57 /drivers/mfd/intel_pmc_bxt.c
parent29805956ee16b487dee57823d884df0bfe45ff69 (diff)
downloadlwn-5e866400e9d5d68d52907cbd91082c1cad477355.tar.gz
lwn-5e866400e9d5d68d52907cbd91082c1cad477355.zip
hwmon: (gpio-fan) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
These newer PM macros allow the compiler to see what code it can remove if !CONFIG_PM_SLEEP. This allows the removal of messy #ifdef barriers whilst achieving the same result. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20220925172759.3573439-6-jic23@kernel.org [groeck: Drop #ifdef from struct gpio_fan_data] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/mfd/intel_pmc_bxt.c')
0 files changed, 0 insertions, 0 deletions