Guenter Roeck
088ce2ac9e
hwmon: Fix CamelCase checkpatch warnings
...
Signed-off-by: Guenter Roeck <[email protected] >
2013-04-07 21:16:40 -07:00
Bill Pemberton
281dfd0b6e
hwmon: remove use of __devexit
...
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.
Signed-off-by: Bill Pemberton <[email protected] >
Cc: Hans de Goede <[email protected] >
Cc: Jean Delvare <[email protected] >
Cc: Alistair John Strachan <[email protected] >
Cc: Fenghua Yu <[email protected] >
Cc: Juerg Haefliger <[email protected] >
Cc: Andreas Herrmann <[email protected] >
Cc: Clemens Ladisch <[email protected] >
Cc: Rudolf Marek <[email protected] >
Cc: Jim Cromie <[email protected] >
Cc: "Mark M. Hoffman" <[email protected] >
Cc: Roger Lucas <[email protected] >
Acked-by: Guenter Roeck <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:50:34 -08:00
Bill Pemberton
6c931ae1c0
hwmon: remove use of __devinit
...
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <[email protected] >
Cc: Hans de Goede <[email protected] >
Cc: Jean Delvare <[email protected] >
Cc: Alistair John Strachan <[email protected] >
Cc: Fenghua Yu <[email protected] >
Cc: Juerg Haefliger <[email protected] >
Cc: Andreas Herrmann <[email protected] >
Cc: Clemens Ladisch <[email protected] >
Cc: Rudolf Marek <[email protected] >
Cc: Jim Cromie <[email protected] >
Cc: "Mark M. Hoffman" <[email protected] >
Cc: Roger Lucas <[email protected] >
Acked-by: Guenter Roeck <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:49:40 -08:00
Bill Pemberton
9e5e9b7a92
hwmon: remove use of __devexit_p
...
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.
Signed-off-by: Bill Pemberton <[email protected] >
Cc: Hans de Goede <[email protected] >
Cc: Jean Delvare <[email protected] >
Cc: Alistair John Strachan <[email protected] >
Cc: Fenghua Yu <[email protected] >
Cc: Juerg Haefliger <[email protected] >
Cc: Andreas Herrmann <[email protected] >
Cc: Clemens Ladisch <[email protected] >
Cc: Rudolf Marek <[email protected] >
Cc: Jim Cromie <[email protected] >
Cc: "Mark M. Hoffman" <[email protected] >
Cc: Roger Lucas <[email protected] >
Acked-by: Guenter Roeck <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:48:59 -08:00
Guenter Roeck
33fd2b84c9
hwmon: (ads7871) Convert to use devm_ functions
...
Convert to use devm_ functions to reduce code size and simplify the code.
Signed-off-by: Guenter Roeck <[email protected] >
2012-09-23 21:08:30 -07:00
Guenter Roeck
4e21f4eaa4
hwmon: (ads7871) Add 'name' sysfs attribute
...
The 'name' sysfs attribute is mandatory for hwmon devices, but was missing
in this driver.
Cc: Paul Thomas <[email protected] >
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected] >
Acked-by: Jean Delvare <[email protected] >
Acked-by: Paul Thomas <[email protected] >
2012-09-17 14:29:20 -07:00
Guenter Roeck
10775d1899
hwmon: (ads7871) Fix multi-line comments
...
Cc: Paul Thomas <[email protected] >
Signed-off-by: Guenter Roeck <[email protected] >
2012-03-18 18:27:13 -07:00
Axel Lin
91efffe26a
hwmon: convert drivers/hwmon/* to use module_spi_driver()
...
This patch converts the drivers in drivers/hwmon/* to use the
module_spi_driver() macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <[email protected] >
Cc: Sonic Zhang <[email protected] >
Cc: Marc Pignat <[email protected] >
Cc: Paul Thomas <[email protected] >
Cc: Eric Miao <[email protected] >
Acked-by: Sonic Zhang <[email protected] >
Signed-off-by: Guenter Roeck <[email protected] >
2012-03-18 18:26:51 -07:00
Lars-Peter Clausen
b52fabca36
hwmon: Remove redundant spi driver bus initialization
...
In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_register_driver(),
so we can drop the manual assignment.
The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
struct spi_driver _driver = {
.driver = {
- .bus = &spi_bus_type,
},
};
// </smpl>
Signed-off-by: Lars-Peter Clausen <[email protected] >
Cc: Jean Delvare <[email protected] >
Cc: Guenter Roeck <[email protected] >
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected] >
2011-11-25 07:48:16 -08:00
Axel Lin
c12c507d71
hwmon: (ads7871) Fix ads7871_probe error paths
...
1. remove 'status' variable
2. remove unneeded initialization of 'err' variable
3. return missing error code if sysfs_create_group fail.
4. fix the init sequence as:
- check hardware existence
- kzalloc for ads7871_data
- sysfs_create_group
- hwmon_device_register
Signed-off-by: Axel Lin <[email protected] >
Cc: [email protected]
Signed-off-by: Jean Delvare <[email protected] >
2010-08-25 15:42:10 +02:00
Paul Thomas
e0c70b8078
hwmon: add TI ads7871 a/d converter driver
...
[[email protected] : coding-style fixes]
Signed-off-by: Paul Thomas <[email protected] >
Cc: Jonathan Cameron <[email protected] >
Cc: Jean Delvare <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2010-05-25 08:07:07 -07:00