From: Axel Lin Date: Fri, 22 Oct 2010 08:38:22 +0000 (+0800) Subject: regulator: twl-regulator - fix twlreg_set_mode X-Git-Tag: v2.6.37-rc5~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e26bc804e611d879353cd953cb17db1c52d307;p=pandora-kernel.git regulator: twl-regulator - fix twlreg_set_mode The Singular Message is 16 bits: DEV_GRP[15:13] MT[12] RES_ID[11:4] RES_STATE[3:0] Current implementation return immedially after sucessfuly write MSB part. To properly set mode, we need to write the complete message ( MSB and LSB ). In twl.h, now we have defines for PM Master module register offsets, use it instead of hard coded 0x15/0x16. Use "message & 0xff" to ensure we send correct value for LSB. Signed-off-by: Axel Lin Acked-by: Mark Brown Tested-by: Lesly Arackal Manuel Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed