linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const
@ 2014-11-10 18:37 Geert Uytterhoeven
  2014-11-13 14:09 ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-11-10 18:37 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Pavel Machek
  Cc: linux-pm, linux-kernel, Geert Uytterhoeven

The PM domain pointed to by the genpd parameter is never modified.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kevin Hilman <khilman@linaro.org>
---
v2:
  - Add Acked-by
  - Add more description
---
 drivers/base/power/domain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index b520687046d4f36a..a841bab441147b3d 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -753,9 +753,9 @@ static inline void genpd_power_off_work_fn(struct work_struct *work) {}
  * pm_genpd_present - Check if the given PM domain has been initialized.
  * @genpd: PM domain to check.
  */
-static bool pm_genpd_present(struct generic_pm_domain *genpd)
+static bool pm_genpd_present(const struct generic_pm_domain *genpd)
 {
-	struct generic_pm_domain *gpd;
+	const struct generic_pm_domain *gpd;
 
 	if (IS_ERR_OR_NULL(genpd))
 		return false;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const
  2014-11-10 18:37 [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const Geert Uytterhoeven
@ 2014-11-13 14:09 ` Pavel Machek
  2014-11-13 15:12   ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2014-11-13 14:09 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Rafael J. Wysocki, Len Brown, linux-pm, linux-kernel

On Mon 2014-11-10 19:37:39, Geert Uytterhoeven wrote:
> The PM domain pointed to by the genpd parameter is never modified.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Acked-by: Kevin Hilman <khilman@linaro.org>

Acked-by: Pavel Machek <apvel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const
  2014-11-13 14:09 ` Pavel Machek
@ 2014-11-13 15:12   ` Geert Uytterhoeven
  2014-11-13 15:26     ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-11-13 15:12 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Geert Uytterhoeven, Rafael J. Wysocki, Len Brown, Linux PM list,
	linux-kernel@vger.kernel.org

Hi Pavel,

On Thu, Nov 13, 2014 at 3:09 PM, Pavel Machek <pavel@ucw.cz> wrote:
> Acked-by: Pavel Machek <apvel@ucw.cz>

You've got a new email address? ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const
  2014-11-13 15:12   ` Geert Uytterhoeven
@ 2014-11-13 15:26     ` Pavel Machek
  2014-11-14 23:51       ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2014-11-13 15:26 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Geert Uytterhoeven, Rafael J. Wysocki, Len Brown, Linux PM list,
	linux-kernel@vger.kernel.org

On Thu 2014-11-13 16:12:25, Geert Uytterhoeven wrote:
> Hi Pavel,
> 
> On Thu, Nov 13, 2014 at 3:09 PM, Pavel Machek <pavel@ucw.cz> wrote:
> > Acked-by: Pavel Machek <apvel@ucw.cz>
> 
> You've got a new email address? ;-)

Yes, I decided to typo-squat myself :-). Just kidding.

Acked-by: Pavel Machek <pavel@ucw.cz>
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const
  2014-11-13 15:26     ` Pavel Machek
@ 2014-11-14 23:51       ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2014-11-14 23:51 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Geert Uytterhoeven, Geert Uytterhoeven, Len Brown, Linux PM list,
	linux-kernel@vger.kernel.org

On Thursday, November 13, 2014 04:26:51 PM Pavel Machek wrote:
> On Thu 2014-11-13 16:12:25, Geert Uytterhoeven wrote:
> > Hi Pavel,
> > 
> > On Thu, Nov 13, 2014 at 3:09 PM, Pavel Machek <pavel@ucw.cz> wrote:
> > > Acked-by: Pavel Machek <apvel@ucw.cz>
> > 
> > You've got a new email address? ;-)
> 
> Yes, I decided to typo-squat myself :-). Just kidding.
> 
> Acked-by: Pavel Machek <pavel@ucw.cz>

Patch queued up for 3.19, thanks!

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-14 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 18:37 [PATCH v2] PM / Domains: Make genpd parameter of pm_genpd_present() const Geert Uytterhoeven
2014-11-13 14:09 ` Pavel Machek
2014-11-13 15:12   ` Geert Uytterhoeven
2014-11-13 15:26     ` Pavel Machek
2014-11-14 23:51       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).