Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753699Ab0BEPpf (ORCPT ); Fri, 5 Feb 2010 10:45:35 -0500 Received: from netrider.rowland.org ([192.131.102.5]:49230 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751009Ab0BEPpe (ORCPT ); Fri, 5 Feb 2010 10:45:34 -0500 Date: Fri, 5 Feb 2010 10:45:29 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Chris Verges cc: Greg Kroah-Hartman , , , Rob Owings Subject: Re: [PATCH] linux-2.6.32-directemp In-Reply-To: <68FBE0F3CE97264395875AC1C468F22C24A5BD@mail03.cyberswitching.local> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 33 On Thu, 4 Feb 2010, Chris Verges wrote: > 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. This isn't a big deal... but it's more common for drivers to provide regular device files for I/O than to rely on sysfs attributes. You end up with more control and flexibility. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/