linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Mike Frysinger <vapier@gentoo.org>,
	Michael Hennerich <michael.hennerich@analog.com>,
	linux-input@vger.kernel.org
Subject: Re: [PATCH] Input: ad7879 - Convert I2C to dev_pm_ops
Date: Wed, 5 Jan 2011 16:09:34 -0800	[thread overview]
Message-ID: <20110106000934.GA6677@core.coreip.homeip.net> (raw)
In-Reply-To: <20110105224145.GA5476@opensource.wolfsonmicro.com>

On Wed, Jan 05, 2011 at 10:41:46PM +0000, Mark Brown wrote:
> On Wed, Jan 05, 2011 at 02:14:32PM -0800, Dmitry Torokhov wrote:
> 
> > I do not think you tested it with !CONFIG_PM since &NULL is not valid
> > expression (& requires an lvalue for operand).
> 
> Oh, fail.  I knew there was a reason why dev_pm_ops stuff caused hassle.
> But then I do have to wonder who exactly builds without PM enabled these
> days.  

Well, I kind of agree. Maybe someone should start looking into removing
CONFIG_PM, we are in 2011 now...


> 
> > Please change to guard .pm = &ad7879_i2c_pm with #ifdef.
> 
> Meh, I guess.  Though that ends up being annoying in general as some of
> the PM functions (things like poweroff) are active even without PM
> enabled,

Most of the drivers do not need special handlers for poweroff though...
I actually do not much liek the "simple" initializator as it usually
does way more than needed.

> it always feels clearer to just have the struct there all the
> time and carry on with the standard NULLs for functions.

Thanks.

-- 
Dmitry

  reply	other threads:[~2011-01-06  0:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05 19:01 [PATCH] Input: ad7879 - Convert I2C to dev_pm_ops Mark Brown
2011-01-05 22:14 ` Dmitry Torokhov
2011-01-05 22:41   ` Mark Brown
2011-01-06  0:09     ` Dmitry Torokhov [this message]
2011-01-06  0:37       ` Mark Brown
2011-01-06 12:15   ` Mark Brown
2011-01-07  1:15     ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110106000934.GA6677@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-input@vger.kernel.org \
    --cc=michael.hennerich@analog.com \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).