hmc5843: Digital compass board file
Subsystems (3)
RFC PATCH 1/1 hmc5843: Digital compass board file
The board file changes for the digital compass hmc5843. The interface to the device is i2c.
Signed-off-by Shubhrajyoti D <[email protected]>
--- arch/arm/mach-omap2/board-4430sdp.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-4430sdp.c +7 -1
@@ -412,6 +412,11 @@ static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = { I2C_BOARD_INFO("tmp105", 0x48), }, }; +static struct i2c_board_info __initdata sdp4430_i2c_4_boardinfo[] = { + { +I2C_BOARD_INFO ("hmc5843" ,0x1e ), + }, +};static int __init omap4_i2c_init (void ) {/*
@@ -423,7 +428,8 @@ static int __init omap4_i2c_init(void)omap_register_i2c_bus (2 ,400 ,NULL ,0 );omap_register_i2c_bus (3 ,400 , sdp4430_i2c_3_boardinfo,ARRAY_SIZE (sdp4430_i2c_3_boardinfo)); -omap_register_i2c_bus (4 ,400 ,NULL ,0 ); +omap_register_i2c_bus (4 ,400 , sdp4430_i2c_4_boardinfo, +ARRAY_SIZE (sdp4430_i2c_4_boardinfo));return 0 ; }static void __init omap_4430sdp_init (void )
Signature · 1 line
1.7.0.4
Tony Lindgren
maintainerRFC PATCH 1/1 hmc5843: Digital compass board file
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.
Branch in linux-omap: devel-boards
Initial commit ID (Likely to change): 4a65d1d872bc6ae3c59936a10feb0694d24b8c78
PatchWorks
http://patchwork.kernel.org/patch/119657/
Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=4a65d1d872bc6ae3c59936a10feb0694d24b8c78