All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Pokorny <ppokorny@penguincomputing.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 03/10] hwmon: (lm85) Drop dead code
Date: Thu, 01 May 2008 17:55:48 +0000	[thread overview]
Message-ID: <481A0424.4030309@penguincomputing.com> (raw)
In-Reply-To: <20080412195552.421b4a28@hyperion.delvare>

Jean Delvare wrote:
> Hi Juerg,
>
> On Wed, 30 Apr 2008 21:52:45 -0700, Juerg Haefliger wrote:
>   
>> Wow, sure a lot of unused junk. The patch looks good but doesn't apply 
>> cleanly over the revised patch 02/10. Could you please refresh and 
>> resend it?
>>     
>
> Sure, here you go:
>
> Drop a lot of useless register defines, conversion macros, data structure
> members and update code. All these register values were read from the
> device but nothing is done out of them, so this is all dead code in
> practice.
>   
The code to use all of those registers was posted in 2004:

http://lists.lm-sensors.org/pipermail/lm-sensors/2004-August/008563.html

But was apparently not picked up because there was an objection to the 
size of the patch?

The patch was streamlined to try and match the "standard" for PWM 
control (which doesn't map to the LM85 registers very well) and reposted:

http://lists.lm-sensors.org/pipermail/lm-sensors/2004-September/009059.html

but without the additional functionality unfortunately.

Wouldn't the better course of action be to add the accessors for these 
tuneables rather than remove the functionality from the driver? Of 
course, that means that I probably need to do the work, but I don't have 
the time to do this right now.

So could I ask that we *not* remove this "dead" code, but leave it in 
for now so that when someone does get around to adding the accessor 
functions, they won't have to submit a patch to reverse this "dead" code 
elimination?

Thanks,
Phil P

-- 
Philip Pokorny, RHCE, Chief Arch. & Sr. Dir. HW & Field Eng.
Tel: 415-954-2823   Cell: 415-370-0835
Fax: 415-954-2899   Toll Free: 888-PENGUIN
PENGUIN COMPUTING, INC.
www.penguincomputing.com


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

  parent reply	other threads:[~2008-05-01 17:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 17:55 [lm-sensors] [PATCH 03/10] hwmon: (lm85) Drop dead code Jean Delvare
2008-05-01  4:52 ` Juerg Haefliger
2008-05-01  6:47 ` Jean Delvare
2008-05-01 17:55 ` Philip Pokorny [this message]
2008-05-01 18:16 ` Juerg Haefliger
2008-05-01 18:44 ` Jean Delvare
2008-05-02  5:16 ` Juerg Haefliger
2008-05-02  7:23 ` Jean Delvare
2008-05-03 23:51 ` Juerg Haefliger
2008-06-25 13:20 ` 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=481A0424.4030309@penguincomputing.com \
    --to=ppokorny@penguincomputing.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.