From: Takashi Iwai Date: Fri, 1 Oct 2010 21:14:25 +0000 (-0400) Subject: hwmon: (lis3) add axes module parameter for custom axis-mapping X-Git-Tag: v2.6.37-rc1~118^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ee321440e3a594dcdd9981e68e5e302447047a2;p=pandora-kernel.git hwmon: (lis3) add axes module parameter for custom axis-mapping The axis-mapping of lis3dev device on many (rather most) HP machines doesn't follow the standard. When each new model appears, users need to adjust again. Testing this requires the rebuild of kernel, thus it's not trivial for end-users. This patch adds a module parameter "axes" to allow a custom axis-mapping without patching and recompiling the kernel driver. User can pass the parameter such as axes=3,2,1. Also it can be changed via sysfs. Signed-off-by: Takashi Iwai Acked-by: Eric Piel Cc: Jean Delvare Cc: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed