login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
24
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Fintek F71808E
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Hans de Goede
Subject:
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Fintek F71808E
Date: Wednesday, March 24, 2010 - 3:31 am
Hi, On 03/24/2010 10:23 AM, Giel van Schijndel wrote:
quoted text
> On Wed, Mar 24, 2010 at 09:25:08AM +0100, Hans de Goede wrote: >> See comments inline. >> >> On 03/24/2010 12:12 AM, Giel van Schijndel wrote: >>> Allow device probing to recognise the Fintek F71808E. >>> >>> Sysfs interface: >>> * Fan/pwm control is the same as for F71889FG >>> * Temperature and voltage sensor handling is largely the same as for >>> the F71889FG >>> - Has one temperature sensor less (doesn't have temp3) >>> - Misses one voltage sensor (doesn't have V6, thus in6_input refers to >>> what in7_input refers for F71889FG) >>> >>> For the purpose of the sysfs interface fxxxx_in_temp_attr[] is split up >>> such that it can largely be reused. >>> --- >>> Documentation/hwmon/f71882fg | 4 ++ >>> drivers/hwmon/Kconfig | 6 ++-- >>> drivers/hwmon/f71882fg.c | 80 +++++++++++++++++++++++++++++++++++++---- >>> 3 files changed, 79 insertions(+), 11 deletions(-) >>> >>> diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c >>> index 25e1cad..b290b87 100644 >>> --- a/drivers/hwmon/f71882fg.c >>> +++ b/drivers/hwmon/f71882fg.c >>> @@ -1974,8 +2002,27 @@ static int __devinit f71882fg_probe(struct platform_device *pdev) >>> /* fall through! */ >>> case f71862fg: >>> err = f71882fg_create_sysfs_files(pdev, >>> - fxxxx_in_temp_attr, >>> - ARRAY_SIZE(fxxxx_in_temp_attr)); >>> + f71862_temp_attr, >>> + ARRAY_SIZE(f71862_temp_attr)); >>> + if (err) >>> + goto exit_unregister_sysfs; >>> + err = f71882fg_create_sysfs_files(pdev, >>> + fxxxx_in_attr, >>> + ARRAY_SIZE(fxxxx_in_attr)); >>> + if (err) >>> + goto exit_unregister_sysfs; >>> + /* fall through! */ >> >> Ugh, please don't fall through, and then have an if below to only do >> some parts of the case falling through. This is quite confusing >> at first I thought your code was buggy I had to read it twice to notice >> the if. Instead just duplicate the following lines: >>> + err = f71882fg_create_sysfs_files(pdev, >>> + fxxxx_temp_attr, >>> + ARRAY_SIZE(fxxxx_temp_attr)); >> In the f71862fg case, end the f71862fg case with a break and remove >> the if test from the f71808fg case. >> >>> + case f71808fg: >>> + if (data->type == f71808fg) { >>> + err = f71882fg_create_sysfs_files(pdev, >>> + f71808_in_attr, >>> + ARRAY_SIZE(f71808_in_attr)); >>> + if (err) >>> + goto exit_unregister_sysfs; >>> + } >>> + err = f71882fg_create_sysfs_files(pdev, >>> + fxxxx_temp_attr, >>> + ARRAY_SIZE(fxxxx_temp_attr)); >>> break; >>> case f8000: >>> err = f71882fg_create_sysfs_files(pdev, >>> @@ -2126,8 +2175,20 @@ static int f71882fg_remove(struct platform_device *pdev) >>> /* fall through! */ >>> case f71862fg: >>> f71882fg_remove_sysfs_files(pdev, >>> - fxxxx_in_temp_attr, >>> - ARRAY_SIZE(fxxxx_in_temp_attr)); >>> + f71862_temp_attr, >>> + ARRAY_SIZE(f71862_temp_attr)); >>> + f71882fg_remove_sysfs_files(pdev, >>> + fxxxx_in_attr, >>> + ARRAY_SIZE(fxxxx_in_attr)); >>> + /* fall through! */ >> >> Idem. > > Ack. New and improved patch follows this line. > ======================================================================== > hwmon: f71882fg: Add support for the Fintek F71808E >
This new version looks good to me: Acked-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] hwmon: f71882fg: properly acquire I/O regions whil ...
, Giel van Schijndel
, (Tue Mar 23, 7:12 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Giel van Schijndel
, (Tue Mar 23, 7:17 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Giel van Schijndel
, (Tue Mar 23, 4:01 pm)
[PATCH 1/4] [RFC] hwmon: f71882fg: Add support for the Fin ...
, Giel van Schijndel
, (Tue Mar 23, 4:12 pm)
[PATCH 2/4] hwmon: f71882fg: prepare for addition of watch ...
, Giel van Schijndel
, (Tue Mar 23, 4:12 pm)
[PATCH 3/4] hwmon: f71882fg: add watchdog detection code
, Giel van Schijndel
, (Tue Mar 23, 4:12 pm)
[PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API for F7 ...
, Giel van Schijndel
, (Tue Mar 23, 4:12 pm)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Tue Mar 23, 4:26 pm)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Hans de Goede
, (Wed Mar 24, 1:14 am)
Re: [PATCH 1/4] [RFC] hwmon: f71882fg: Add support for the ...
, Hans de Goede
, (Wed Mar 24, 1:25 am)
Re: [PATCH 2/4] hwmon: f71882fg: prepare for addition of w ...
, Hans de Goede
, (Wed Mar 24, 1:26 am)
Re: [PATCH 2/4] hwmon: f71882fg: prepare for addition of w ...
, Hans de Goede
, (Wed Mar 24, 1:36 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Hans de Goede
, (Wed Mar 24, 1:37 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Giel van Schijndel
, (Wed Mar 24, 1:46 am)
[PATCH] hwmon: f71882fg: code cleanup
, Giel van Schijndel
, (Wed Mar 24, 2:09 am)
[PATCH] hwmon: f71882fg: acquire I/O regions while we're w ...
, Giel van Schijndel
, (Wed Mar 24, 2:09 am)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ...
, Giel van Schijndel
, (Wed Mar 24, 2:23 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Jean Delvare
, (Wed Mar 24, 2:28 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Jean Delvare
, (Wed Mar 24, 2:29 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Giel van Schijndel
, (Wed Mar 24, 2:34 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Wed Mar 24, 2:36 am)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ...
, Hans de Goede
, (Wed Mar 24, 3:31 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Hans de Goede
, (Wed Mar 24, 3:33 am)
Re: [PATCH] hwmon: f71882fg: code cleanup
, Jean Delvare
, (Wed Mar 24, 5:54 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ...
, Jean Delvare
, (Wed Mar 24, 5:54 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Wed Mar 24, 8:35 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Alan Cox
, (Wed Mar 24, 8:51 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Hans de Goede
, (Wed Mar 24, 9:20 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Wed Mar 24, 1:35 pm)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Thu Mar 25, 1:54 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Giel van Schijndel
, (Thu Mar 25, 3:40 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Alan Cox
, (Thu Mar 25, 5:50 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ...
, Hans de Goede
, (Thu Mar 25, 6:06 am)
[PATCH 1/3] resource: shared I/O region support
, Giel van Schijndel
, (Thu Mar 25, 6:17 am)
[PATCH 2/3] hwmon: f71882fg: use a muxed resource lock for ...
, Giel van Schijndel
, (Thu Mar 25, 6:17 am)
[PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog driv ...
, Giel van Schijndel
, (Thu Mar 25, 6:17 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Alan Cox
, (Thu Mar 25, 8:57 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Giel van Schijndel
, (Thu Mar 25, 11:03 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Alan Cox
, (Thu Mar 25, 11:16 am)
Re: [PATCH 2/3] hwmon: f71882fg: use a muxed resource lock ...
, Hans de Goede
, (Thu Mar 25, 2:10 pm)
Re: [PATCH 1/3] resource: shared I/O region support
, Giel van Schijndel
, (Mon Mar 29, 1:18 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Jesse Barnes
, (Mon Mar 29, 9:07 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Giel van Schijndel
, (Mon Mar 29, 10:38 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Giel van Schijndel
, (Mon Mar 29, 10:44 am)
Re: [PATCH 1/3] resource: shared I/O region support
, H. Peter Anvin
, (Mon Mar 29, 10:45 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Jesse Barnes
, (Mon Mar 29, 10:59 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Jesse Barnes
, (Mon Mar 29, 10:59 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Jesse Barnes
, (Mon Mar 29, 11:06 am)
Re: [PATCH 1/3] resource: shared I/O region support
, H. Peter Anvin
, (Mon Mar 29, 11:17 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Alan Cox
, (Mon Mar 29, 11:29 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Alan Cox
, (Mon Mar 29, 11:39 am)
Re: [PATCH 1/3] resource: shared I/O region support
, H. Peter Anvin
, (Mon Mar 29, 11:56 am)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ...
, Giel van Schijndel
, (Tue Mar 30, 2:06 am)
Re: [PATCH 1/3] resource: shared I/O region support
, Jesse Barnes
, (Fri Apr 2, 1:29 pm)
Re: [PATCH 2/3] hwmon: f71882fg: use a muxed resource lock ...
, Giel van Schijndel
, (Sun Apr 25, 3:35 am)
Re: [lm-sensors] [PATCH 4/4] [RFC] hwmon: f71882fg: Add wa ...
, Jim Cromie
, (Sun Apr 25, 2:20 pm)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ...
, Wim Van Sebroeck
, (Thu May 20, 12:52 am)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ...
, Giel van Schijndel
, (Tue May 25, 2:08 pm)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ...
, Wim Van Sebroeck
, (Wed May 26, 12:38 am)
Re: [PATCH 2/3] hwmon: f71882fg: use a muxed resource lock ...
, Giel van Schijndel
, (Sat Jul 31, 2:21 pm)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ...
, Giel van Schijndel
, (Sat Jul 31, 2:36 pm)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ...
, Giel van Schijndel
, (Sat Jul 31, 4:31 pm)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ...
, Hans de Goede
, (Sat Jul 31, 11:12 pm)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ...
, Giel van Schijndel
, (Sun Aug 1, 6:22 am)
[PATCH] hwmon: f71882fg: Add support for the Fintek F71808E
, Giel van Schijndel
, (Sun Aug 1, 6:30 am)
[PATCH 1/2] hwmon: f71882fg: use a muxed resource lock for ...
, Giel van Schijndel
, (Sun Aug 1, 6:30 am)
[PATCH 2/2] watchdog: f71808e_wdt: new watchdog driver for ...
, Giel van Schijndel
, (Sun Aug 1, 6:30 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Hans de Goede
, (Wed Aug 4, 4:36 am)
Re: [PATCH 1/2] hwmon: f71882fg: use a muxed resource lock ...
, Hans de Goede
, (Wed Aug 4, 4:38 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Giel van Schijndel
, (Wed Aug 4, 8:44 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Giel van Schijndel
, (Tue Aug 10, 12:11 pm)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Hans de Goede
, (Fri Aug 13, 3:01 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Hans de Goede
, (Fri Aug 13, 3:56 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Andrew Morton
, (Wed Aug 18, 11:24 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Hans de Goede
, (Sun Aug 22, 11:04 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ...
, Giel van Schijndel
, (Sun Aug 22, 11:28 am)
Re: [PATCH 1/2] hwmon: f71882fg: use a muxed resource lock ...
, Giel van Schijndel
, (Sat Oct 2, 3:59 pm)
Re: [PATCH 1/2] hwmon: f71882fg: use a muxed resource lock ...
, Guenter Roeck
, (Sat Oct 2, 6:06 pm)
Re: [PATCH 1/2] hwmon: f71882fg: use a muxed resource lock ...
, Jean Delvare
, (Sun Oct 3, 2:01 am)
[PATCH] hwmon: f71882fg: use a muxed resource lock for the ...
, Giel van Schijndel
, (Sun Oct 3, 5:09 am)
Re: [PATCH] hwmon: f71882fg: use a muxed resource lock for ...
, Guenter Roeck
, (Sun Oct 3, 6:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Denis Bueno
Git clone error
Paolo Bonzini
Re: [RFC/PATCH 5/6] revert: add --ff option to allow fast forward when cherry-pick...
Sam Vilain
Re: RFC: Flat directory for notes, or fan-out? Both!
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Sam Fourman Jr.
Re: Help with Altell PC6700
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate