[lm-sensors] [RFC PATCH 0/5] hwmon: lis3 patches

Ilkka Koskinen ilkka.koskinen at nokia.com
Tue Mar 15 17:02:40 CET 2011

The first patch fixes a bug in lis3 i2c driver when probe() fails.

The rest of the patches converts statically allocated lis3 device
to dynamically allocated one, which enables support for
multiple lis3 devices on board. In addition, this patch set makes
it possible to load both i2c and spi drivers so that they don't
disturb each other. hp_accel is hacked to work and, thus, doesn't
support multiple devices.

I have tested the i2c based driver on target device, but haven't
the other two. 

The patches apply on top of hwmon-staging branch in 

Ilkka Koskinen (5):
  hwmon: lis3: Free regulators if probe() fails.
  hwmon: lis3: Change naming to consistent
  hwmon: lis3: Change exported function to use given device
  hwmon: lis3: Remove the referencies to the global variable in core
  hwmon: lis3: Register hwif and remove references to global variable

 drivers/hwmon/hp_accel.c      |   52 ++++---
 drivers/hwmon/lis3lv02d.c     |  392 +++++++++++++++++++++++------------------
 drivers/hwmon/lis3lv02d.h     |   11 +-
 drivers/hwmon/lis3lv02d_i2c.c |   67 ++++---
 drivers/hwmon/lis3lv02d_spi.c |   35 +++--
 5 files changed, 319 insertions(+), 238 deletions(-)

More information about the lm-sensors mailing list