All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 1/3] hwmon: Convert applesmc driver to pnp
Date: Thu, 11 Aug 2011 20:19:27 +0000	[thread overview]
Message-ID: <20110811201927.GA31539@srcf.ucam.org> (raw)
In-Reply-To: <1312906483-3046-1-git-send-email-mjg@redhat.com>

On Thu, Aug 11, 2011 at 09:29:49PM +0200, Henrik Rydberg wrote:

> The patch seems to do too many things - switching from static
> variables to a dev struct, adding dev parameters to all functions,
> changing to dynamic initialization, changing from platform to pnp
> device. Two patches with no functional changes to start with, then
> another two to turn on pnp seems reasonable.

I've looked into this and I don't think it's especially practical to do 
it this way. As an example, applesmc_backlight_set calls 
applesmc_write_key, but it's a workqueue. The work struct is just a 
static structure, so it's not possible to obtain the device from there. 
It could just call the static platform device, but that just results in 
an intermediate stage that's worse than the previous one, which kind of 
defeats the object. If you'd like it broken up then the reasonable way 
would seem to be to do everything but the pnp transition in one patch 
and change to pnp in another.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-08-11 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 16:14 [lm-sensors] [PATCH 1/3] hwmon: Convert applesmc driver to pnp Matthew Garrett
2011-08-11 19:29 ` Henrik Rydberg
2011-08-11 19:33 ` Matthew Garrett
2011-08-11 20:19 ` Matthew Garrett [this message]

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=20110811201927.GA31539@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.