Convert the ac97_bus from legacy suspend/resume callbacks to dev_pm_ops.
Since there isn't anything special to do at the bus level the bus driver
does not have to implement any callbacks. The device driver core will
automatically pick up and execute the device's PM ops.
As there is only a single AC'97 driver implementing suspend and resume,
update both the core and driver at the same time to avoid unnecessary code
churn.
While we are at it also drop the ifdefs around the suspend/resume functions
to increase compile test coverage.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
This patch touches code in both ALSA and the input subsystem. Ideally this
patch will be merged via the ALSA tree. Given that the wm97xx touchscreen
driver is not seeing too many changes these days the risk of conflicts
should be low.
Changes since v1:
* Drop ifdefs around suspend/resum functions
---
drivers/input/touchscreen/wm97xx-core.c | 13 ++++---------
sound/ac97_bus.c | 26 --------------------------
2 files changed, 4 insertions(+), 35 deletions(-)
On Fri, 21 Aug 2015 09:48:33 +0200,
Lars-Peter Clausen wrote:
Convert the ac97_bus from legacy suspend/resume callbacks to dev_pm_ops.
Since there isn't anything special to do at the bus level the bus driver
does not have to implement any callbacks. The device driver core will
automatically pick up and execute the device's PM ops.
As there is only a single AC'97 driver implementing suspend and resume,
update both the core and driver at the same time to avoid unnecessary code
churn.
While we are at it also drop the ifdefs around the suspend/resume functions
to increase compile test coverage.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
This patch touches code in both ALSA and the input subsystem. Ideally this
patch will be merged via the ALSA tree. Given that the wm97xx touchscreen
driver is not seeing too many changes these days the risk of conflicts
should be low.
If Dmitry is happy with this, I'll take this.
thanks,
Takashi
quoted hunk
Changes since v1:
* Drop ifdefs around suspend/resum functions
---
drivers/input/touchscreen/wm97xx-core.c | 13 ++++---------
sound/ac97_bus.c | 26 --------------------------
2 files changed, 4 insertions(+), 35 deletions(-)
On Fri, Aug 21, 2015 at 10:25:59AM +0200, Takashi Iwai wrote:
On Fri, 21 Aug 2015 09:48:33 +0200,
Lars-Peter Clausen wrote:
quoted
Convert the ac97_bus from legacy suspend/resume callbacks to dev_pm_ops.
Since there isn't anything special to do at the bus level the bus driver
does not have to implement any callbacks. The device driver core will
automatically pick up and execute the device's PM ops.
As there is only a single AC'97 driver implementing suspend and resume,
update both the core and driver at the same time to avoid unnecessary code
churn.
While we are at it also drop the ifdefs around the suspend/resume functions
to increase compile test coverage.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
This patch touches code in both ALSA and the input subsystem. Ideally this
patch will be merged via the ALSA tree. Given that the wm97xx touchscreen
driver is not seeing too many changes these days the risk of conflicts
should be low.
If Dmitry is happy with this, I'll take this.
Sounds good to me.
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Thanks!
thanks,
Takashi
quoted
Changes since v1:
* Drop ifdefs around suspend/resum functions
---
drivers/input/touchscreen/wm97xx-core.c | 13 ++++---------
sound/ac97_bus.c | 26 --------------------------
2 files changed, 4 insertions(+), 35 deletions(-)
On Fri, 21 Aug 2015 18:15:29 +0200,
Dmitry Torokhov wrote:
On Fri, Aug 21, 2015 at 10:25:59AM +0200, Takashi Iwai wrote:
quoted
On Fri, 21 Aug 2015 09:48:33 +0200,
Lars-Peter Clausen wrote:
quoted
Convert the ac97_bus from legacy suspend/resume callbacks to dev_pm_ops.
Since there isn't anything special to do at the bus level the bus driver
does not have to implement any callbacks. The device driver core will
automatically pick up and execute the device's PM ops.
As there is only a single AC'97 driver implementing suspend and resume,
update both the core and driver at the same time to avoid unnecessary code
churn.
While we are at it also drop the ifdefs around the suspend/resume functions
to increase compile test coverage.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
This patch touches code in both ALSA and the input subsystem. Ideally this
patch will be merged via the ALSA tree. Given that the wm97xx touchscreen
driver is not seeing too many changes these days the risk of conflicts
should be low.
If Dmitry is happy with this, I'll take this.
Sounds good to me.
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Mark, did you already put into your tree? Otherwise I'm going to take
it to for-next branch.
thanks,
Takashi
From: Mark Brown <broonie@kernel.org> Date: 2015-08-21 16:19:49
On Fri, Aug 21, 2015 at 10:25:59AM +0200, Takashi Iwai wrote:
Lars-Peter Clausen wrote:
quoted
This patch touches code in both ALSA and the input subsystem. Ideally this
patch will be merged via the ALSA tree. Given that the wm97xx touchscreen
driver is not seeing too many changes these days the risk of conflicts
should be low.
If Dmitry is happy with this, I'll take this.
He indicated at Plumbers yesterday that he's OK with fixing any
remaining stylistic issues after the merge window.