Commit 345c7b7
Input: Use pm_sleep_ptr() to avoid need for ifdef CONFIG_PM_SLEEP
As the new pm_sleep_ptr() macro lets the compiler see the code, but
then remove it if !CONFIG_PM_SLEEP it can be used to avoid the need
for #ifdef guards. Use that in the input core to simplify the code
a little. Note pm_sleep_ptr() has not been applied to each callback
in the ops structure because the pm_sleep_ptr() at the usage site
is sufficient.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230114171620.42891-15-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent f31e738 commit 345c7b7
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
1828 | 1829 | | |
1829 | 1830 | | |
1830 | 1831 | | |
1831 | | - | |
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| |||
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
1906 | | - | |
1907 | 1906 | | |
1908 | 1907 | | |
1909 | 1908 | | |
1910 | 1909 | | |
1911 | 1910 | | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
| 1911 | + | |
1915 | 1912 | | |
1916 | 1913 | | |
1917 | 1914 | | |
| |||
0 commit comments