All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: lm-sensors@vger.kernel.org
Subject: [PATCH 2.6] w83781d fan_div code refactoring
Date: Thu, 19 May 2005 06:24:48 +0000	[thread overview]
Message-ID: <20040319212156.GB12366@kroah.com> (raw)
In-Reply-To: <20040317220839.373babf0.khali@linux-fr.org>

On Wed, Mar 17, 2004 at 10:08:39PM +0100, Jean Delvare wrote:
> Quoting myself:
> 
> > This tends to increase the size of the three set_store_regs_fan_div
> > functions, and I am considering refactoring them at some point. Later
> > though.
> 
> Here is the promised refactoring. Tested on my AS99127F rev.1, seems to
> work. As for the previous patch, there is a part that I cannot test with
> the AS99127F, so additional testing is welcome.
> 
> I agree this makes the code slightly less readable, but this saves 60
> lines of code (1754 bytes, around 3% of the driver total), and is
> actually far less complex that I first feared.

The patch looks fine to me, so I've applied it, thanks.

greg k-h

  parent reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 [PATCH 2.6] w83781d fan_div code refactoring Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Mark M. Hoffman
2005-05-19  6:24 ` Greg KH [this message]
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Mark M. Hoffman

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=20040319212156.GB12366@kroah.com \
    --to=greg@kroah.com \
    --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.