[PATCH] linux-2.6.32-directemp

From: Chris Verges
Date: Thu Feb 04 2010 - 23:54:55 EST


Hi Linux gurus,

Attached is a patch for the QTI DirecTEMP USB thermometer &
thermometer/hygrometer sensors. This patch is based on linux-2.6.32.
Functionality has been verified against both hardware variants listed in
the driver (0x0002 and 0x0006), as both monolithic and modular.

When the QTI DirecTEMP sensor is connected to a system, the directemp
driver adds appropriate sysfs entries for the sensor type(s) supported.
Examples:

# PID 0x0002 (temp only)
/sys/bus/usb/devices/.../temp

# PID 0x0006 (temp + relative humidity)
/sys/bus/usb/devices/.../temp
/sys/bus/usb/devices/.../rh

Using a standard "cat" will display the value.

An additional "raw" sysfs entry has been added to aid in debugging. If
used, an "echo" will send the data specified in the string to the USB
device, and print back the results. It is not recommended for customer
use except by expert users.

And with that description out of the way, I look forward to your review
of the driver. Please provide any feedback that you may have.

Thanks in advance,
Chris

Attachment: linux-2.6.32-directemp.patch
Description: linux-2.6.32-directemp.patch