06 Jan, 2012
1 commit
-
replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuolThis satisfies checkpatch -f
Compile tested only: no warnings or errors givenSigned-off-by: Frans Meulenbroeks
Signed-off-by: Guenter Roeck
29 Oct, 2010
1 commit
-
We can mark normal_i2c const. Almost all drivers do that already, so
fix the 3 remaining ones before they are used as (bad) examples for
new drivers.Signed-off-by: Jean Delvare
Cc: George Joseph
Reviewed-by: Guenter Roeck
15 Dec, 2009
3 commits
-
These macros simply declare an enum, so drivers might as well declare
it themselves. This puts an end to the arbitrary limit of 8 chip types
per i2c driver.Signed-off-by: Jean Delvare
Tested-by: Wolfram Sang -
Struct i2c_client_address_data only contains one field at this point,
which makes its usefulness questionable. Get rid of it and pass simple
address lists around instead.Signed-off-by: Jean Delvare
Tested-by: Wolfram Sang -
The "kind" parameter always has value -1, and nobody is using it any
longer, so we can remove it.Signed-off-by: Jean Delvare
Tested-by: Wolfram Sang
10 Dec, 2009
13 commits
-
The ADT7476 has 5 dedicated pins for VID input, and the +12V input can
optionally be used as a 6th VID pin. Add support for VID input.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Add support for the Analog Devices ADT7476 chip. This chip is largely
compatible with the ADT7473 and ADT7475, with additional features.
In particular, it has 5 voltage inputs instead of 2, and VID input
pins.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
It is possible to bypass the voltage attenuators on the +2.5V, Vccp,
+5V and +12V voltage monitoring inputs. This is useful to connect
other voltage channels than the ones the monitoring chip was
originally designed for. When this feature is enabled, we must not
include the scaling factors in our computations.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Print the device name and revision at probe time, as well as a list of
all optional features which are available.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
The TACH4 pin can be used for other functions, so fan4 may not always
be available. Likewise, the PWM2 pin can be used for ALERT output, in
which case pwm2 is not availableFor the ADT7490, the +2.5 Vin pin may also be used for other
functions, in which case in0 is not available.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Move sysfs files removal to a separate function. The code is common to
the device probing error path and the standard device removal path. As
it will grow with future driver development, this avoids code
duplication.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Add support for the Analog Devices ADT7490 chip. This chip is largely
compatible with the ADT7473 and ADT7475, with additional features.
In particular, it has 6 voltage inputs instead of 2.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Check the value of register 0x3f as part of the device detection, to
make it more robust.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
adt7475_attr_group is used internally only and can thus be marked
static.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Rework the handling of voltage inputs to make it possible and easy to
support more inputs. This will be needed for the upcoming ADT7490
support.Signed-off-by: Jean Delvare
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Implement the non-standard pwm_use_point2_pwm_at_crit sysfs attribute
as the adt7473 driver did.Signed-off-by: Jean Delvare
Cc: "Mark M. Hoffman"
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
Add support for the ADT7473 to the adt7475 driver, and mark the
adt7473 driver for removal. The ADT7473 and ADT7475 chips are almost
the same chip and essentially compatible, so there's no point in
having separate drivers for them.Signed-off-by: Jean Delvare
Cc: "Mark M. Hoffman"
Cc: Hans de Goede
Cc: Jordan Crouse
Cc: "Darrick J. Wong" -
As kind is now hard-coded to -1, there is room for code clean-ups.
Signed-off-by: Jean Delvare
Acked-by: Corentin Labbe
Cc: "Mark M. Hoffman"
Cc: Juerg Haefliger
Cc: Riku Voipio
Acked-by: "Hans J. Koch"
Cc: Rudolf Marek
16 Nov, 2009
3 commits
-
The adt7475 driver creates pwm#_auto_channel_temp attributes instead
of the standard pwm#_auto_channels_temp. Fix it.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Cc: Jordan Crouse -
The comment says that limits are cached for 60 seconds but the code
actually caches them for only 2 seconds. Align the code on the
comment, as 60 seconds makes more sense.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Cc: Jordan Crouse -
The logic of temperature fault flags is wrong, it shows faults when
there are none and vice versa. Fix it.I can't believe this has been broken since the driver was added, 8
months ago, basically breaking temp1 and temp3, and nobody ever
complained.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Cc: Jordan Crouse
16 Jan, 2009
1 commit
-
Hwmon driver for the ADT7475 chip.
Signed-off-by: Jordan Crouse
Signed-off-by: Hans de Goede
Signed-off-by: Jean Delvare