Jean Delvare
1664a9eb0f
One less level of indirection for cpu_ids detection functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5465 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 10:25:11 +00:00
Jean Delvare
977a740bb4
Reindent @cpu_ids.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5464 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 09:54:19 +00:00
Jean Delvare
bf530b1634
Reindent all superio_ids lists.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5463 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 09:49:11 +00:00
Jean Delvare
e298eec357
Split the big @superio_ids list into per-family lists.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5462 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 09:38:34 +00:00
Jean Delvare
2ee3b7145d
Fill the driver field of non-hwmon device definitions automatically.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5461 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 09:15:32 +00:00
Jean Delvare
ea71934c18
Move non-hwmon I2C device definitions to a separate array.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5460 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 09:09:04 +00:00
Jean Delvare
12576458a9
Fix initialize_modules_supported: filter out the special driver names,
...
normalize the real ones.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5459 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 08:00:51 +00:00
Jean Delvare
5ffcf09dce
Consistently use .. for ranges of 3 or more addresses.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5458 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-29 22:30:35 +00:00
Jean Delvare
943658e42a
Reindent @chip_ids.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5457 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-29 22:28:05 +00:00
Jean Delvare
ff6aea03e4
Reindent @pci_adapters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5456 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-29 20:12:58 +00:00
Jean Delvare
7794ae9b81
Suggest the sbs driver for smart batteries.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5455 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-29 17:53:05 +00:00
Jean Delvare
17e41b742f
Add back missing quotes, a previous cleanup was a bit overzealous.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5451 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-28 08:07:19 +00:00
Jean Delvare
4a4dc6783b
Reindent several functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5450 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-28 07:55:10 +00:00
Jean Delvare
d0f33191c9
Consistently don't quote hash keys which don't need quotes. Use
...
single quotes when quotes are needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5449 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 21:46:01 +00:00
Jean Delvare
437cf925a4
Consistently don't use prototyped functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5448 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 21:41:28 +00:00
Jean Delvare
d798d611f8
Reindent and cleanup I/O port access functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5447 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 18:27:20 +00:00
Jean Delvare
7ef9fb78c4
Reindent pci access functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5446 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 18:16:54 +00:00
Jean Delvare
f2ce0f84b3
Strip trailing whitespace.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5445 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 18:11:11 +00:00
Jean Delvare
88cab8add5
Reindent sysfs helpers.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5444 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 18:10:24 +00:00
Jean Delvare
3ee60a6fac
Don't create module options for bus drivers we don't even need to load.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5443 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 17:53:36 +00:00
Jean Delvare
3cdf96e0f4
Cleanup generate_modprobes() a bit.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5442 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 17:47:07 +00:00
Jean Delvare
f932415c8a
Fix bus number prediction logic ( #2327 ). We don't need anything complex,
...
given how rare are the cases where this really matters. On most systems
we will only load one I2C bus driver, so the bus numbers simply can't
change.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5441 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 17:44:12 +00:00
Jean Delvare
7b2e59500a
Fix scx200_acb name matching regexp.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5440 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 16:44:00 +00:00
Jean Delvare
1376b4846d
bmcsensors doesn't exist in the Linux 2.6 kernel.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5439 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 16:02:09 +00:00
Jean Delvare
bea9aa2086
Stop keeping track of the misdetected chips. Doing so needed very tricky
...
code, which isn't really needed anymode. For one thing, misdetections are
rare, as we have improved the detection functions quite a lot over the
years (and new chips are in general easier to detect reliably). It it
also unlikely that a driver which caused a misdetection will still be
loaded for another device on the same system. For another, this is really
the kernel drivers' job to make sure they will not bind to the wrong
device anyway (and we did indeed improve the drivers in this respect.)
More cleanups are certainly possible in this area. I have the feeling
that the data structures have not been wisely chosen. For efficient
confidence value comparisons, the detection data should be
address-centric rather than driver-centric.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5438 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 16:00:04 +00:00
Jean Delvare
911b13eecf
2 digits are enough to print an I2C address.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5437 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 15:00:21 +00:00
Jean Delvare
820d8d3c0e
Delete unused @probelist in generate_modprobes().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5436 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 14:54:28 +00:00
Jean Delvare
feda422989
Reindent 2 functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5435 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-26 17:17:29 +00:00
Jean Delvare
19cb69acf0
Fix handling of bus driver names with an underscore.
...
Simplify loading of bus drivers: we don't really need to make this
part interactive, as nothing can really go wrong at this point.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5434 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-26 16:36:04 +00:00
Jean Delvare
9e482430e0
Unload kernel drivers which we loaded ourselves when we are done with them.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5433 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-26 14:52:07 +00:00
Jean Delvare
b3c97e6eb8
As of kernel 2.6.28, alias detection is handled by kernel drivers
...
directly, so module options are no longer needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5432 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-26 10:51:22 +00:00
Jean Delvare
d08e028567
Comment clarification.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5430 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-25 13:27:10 +00:00
Jean Delvare
0667d809e0
Drop useless parentheses.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5429 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:28:25 +00:00
Jean Delvare
4884bd8652
Clean up smartbatt_detect.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5428 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:26:33 +00:00
Jean Delvare
09d444883d
Merge the W83L785TS detection into w83l784r_detect.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5427 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:24:32 +00:00
Jean Delvare
0d2a30a53c
Improve GL525 detection a bit, fix the (missing) driver name.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5426 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:15:40 +00:00
Jean Delvare
e040e561ba
Merge the GL520 detection into gl518_detect.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5425 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:10:31 +00:00
Jean Delvare
81f81f39e1
Complete GL520SM detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5424 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 17:05:33 +00:00
Jean Delvare
a7adce905a
Merge both GL518 entries into one. We don't need separate entries as
...
both revisions are handled by the same driver anyway.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5423 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 16:59:25 +00:00
Jean Delvare
60e1fa7392
Merge all Mozart-2 entries. We really don't need 3 entries for this
...
especially when we don't even support these chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5422 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 16:55:48 +00:00
Jean Delvare
b1bd48665a
Harmonize the order of the parameters of all I2C detection functions.
...
The purpose of such an admittedly intrusive change is that we then no
longer need to document the calling convention of each function
individually, which spares a huge amount of comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5421 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 16:51:00 +00:00
Jean Delvare
e8f9a15798
Rename it8712_detect to it8712_i2c_detect for clarity.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5420 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 15:51:32 +00:00
Jean Delvare
cbb496e134
Refactor IPMI detection functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5419 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 15:50:00 +00:00
Jean Delvare
9f03b10a04
Group all ISA detection functions and harmonize their parameters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5418 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 15:42:03 +00:00
Jean Delvare
7a8669796e
Drop $chip parameter from all detection functions which handle only
...
one chip. Let's not make the code more complex than needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5417 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 15:27:26 +00:00
Jean Delvare
ec73088454
Drop separate LM78-J entry, we really have no good reason to handle
...
the LM78-J differently from the original LM78.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5416 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 14:56:18 +00:00
Jean Delvare
f60a79b999
Oops, remove debug print.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5415 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 14:51:43 +00:00
Jean Delvare
9bbc5b348f
Move all alias detection functions in once place and harmonize their
...
parameters.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5414 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 14:51:11 +00:00
Jean Delvare
829298b0c6
Comment clarification.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5413 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 13:57:39 +00:00
Jean Delvare
569de49970
Drop old comment.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5412 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-24 13:52:07 +00:00