Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262568AbVDAANG (ORCPT ); Thu, 31 Mar 2005 19:13:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262078AbVCaXjN (ORCPT ); Thu, 31 Mar 2005 18:39:13 -0500 Received: from mail.kroah.org ([69.55.234.183]:34016 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S262096AbVCaXYJ convert rfc822-to-8bit (ORCPT ); Thu, 31 Mar 2005 18:24:09 -0500 Cc: khali@linux-fr.org Subject: [PATCH] I2C: Kill unused struct members in w83627hf driver In-Reply-To: <1112311390426@kroah.com> X-Mailer: gregkh_patchbomb Date: Thu, 31 Mar 2005 15:23:10 -0800 Message-Id: <1112311390987@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Reply-To: Greg K-H To: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com Content-Transfer-Encoding: 7BIT From: Greg KH Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 45 ChangeSet 1.2327, 2005/03/31 14:06:47-08:00, khali@linux-fr.org [PATCH] I2C: Kill unused struct members in w83627hf driver I just noticed that the pwmenable struct members in the w83627hf driver are not used anywhere (and quite rightly so, as PWM cannot be disabled in these chips as far as I know). Let's just get rid of them and save some bytes of memory. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman drivers/i2c/chips/w83627hf.c | 5 ----- 1 files changed, 5 deletions(-) diff -Nru a/drivers/i2c/chips/w83627hf.c b/drivers/i2c/chips/w83627hf.c --- a/drivers/i2c/chips/w83627hf.c 2005-03-31 15:18:44 -08:00 +++ b/drivers/i2c/chips/w83627hf.c 2005-03-31 15:18:44 -08:00 @@ -304,7 +304,6 @@ u32 beep_mask; /* Register encoding, combined */ u8 beep_enable; /* Boolean */ u8 pwm[3]; /* Register value */ - u8 pwmenable[3]; /* bool */ u16 sens[3]; /* 782D/783S only. 1 = pentium diode; 2 = 3904 diode; 3000-5000 = thermistor beta. @@ -1316,10 +1315,6 @@ if ((type == w83697hf) && (i == 2)) break; } - - data->pwmenable[0] = 1; - data->pwmenable[1] = 1; - data->pwmenable[2] = 1; if(init) { /* Enable temp2 */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/