From: Nigel Cunningham <nigel@nigel.suspend2.net>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
linux-pm <linux-pm@lists.osdl.org>,
netdev@vger.kernel.org, Valerie Henson <val@nmt.edu>,
Peer Chen <peer.chen@uli.com.tw>
Subject: Re: [RFC][PATCH] Add suspend and resume support to uli526x
Date: Tue, 05 Jun 2007 08:49:04 +1000 [thread overview]
Message-ID: <1180997344.4356.74.camel@nigel.suspend2.net> (raw)
In-Reply-To: <20070604224146.GE2711@elf.ucw.cz>
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Hi.
On Tue, 2007-06-05 at 00:41 +0200, Pavel Machek wrote:
> Hi!
>
> > > > > +#endif /* CONFIG_PM */
> > > >
> > > > > @@ -1689,6 +1775,10 @@ static struct pci_driver uli526x_driver
> > > > > .id_table = uli526x_pci_tbl,
> > > > > .probe = uli526x_init_one,
> > > > > .remove = __devexit_p(uli526x_remove_one),
> > > > > +#ifdef CONFIG_PM
> > > > > + .suspend = uli526x_suspend,
> > > > > + .resume = uli526x_resume,
> > > > > +#endif
> > > >
> > > > ...so that this ifdef is not needed?
> > >
> > > OK, why not.
> >
> > Because it's uglier and #ifdef is the established way of doing things?
>
> Actually the way I suggested is nicer, IIRC akpm invented it. It keeps
> ifdefs localized around the block that _needs_ to be ifdefed.
The localised point is true. I'll also admit that 'nicer'/'uglier' is a
matter of aesthetics and therefore personal opinion.
I guess that leaves the question, "What's the precedent to follow?" or
"Is there a driver that's already got this new format?".
Regards,
Nigel
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-06-04 22:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-03 10:37 [RFC][PATCH] Add suspend and resume support to uli526x Rafael J. Wysocki
2007-06-04 11:11 ` Pavel Machek
2007-06-04 13:49 ` Rafael J. Wysocki
2007-06-04 21:16 ` Nigel Cunningham
2007-06-04 21:31 ` Rafael J. Wysocki
2007-06-04 22:41 ` Pavel Machek
2007-06-04 22:49 ` Nigel Cunningham [this message]
2007-06-04 22:53 ` Pavel Machek
2007-06-04 22:55 ` Nigel Cunningham
2007-06-05 5:56 ` Stephen Hemminger
2007-06-05 9:31 ` Rafael J. Wysocki
2007-06-05 0:58 ` Valerie Henson
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=1180997344.4356.74.camel@nigel.suspend2.net \
--to=nigel@nigel.suspend2.net \
--cc=linux-pm@lists.osdl.org \
--cc=netdev@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=peer.chen@uli.com.tw \
--cc=rjw@sisk.pl \
--cc=val@nmt.edu \
/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).