Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166080
b: refs/heads/master
c: 489db6a
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Eric Miao committed Sep 10, 2009
1 parent aec2c2d commit ce1169e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a48c24a696f0d93c49f913b7818e9819612b1f4e
refs/heads/master: 489db6a662af5ca1b6574bae2d974017346bb983
22 changes: 16 additions & 6 deletions trunk/arch/arm/mach-pxa/em-x270.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,22 +1025,32 @@ static int em_x270_sensor_power(struct device *dev, int on)
return 0;
}

static struct soc_camera_link iclink = {
.bus_id = 0,
.power = em_x270_sensor_power,
};

static struct i2c_board_info em_x270_i2c_cam_info[] = {
{
I2C_BOARD_INFO("mt9m111", 0x48),
},
};

static struct soc_camera_link iclink = {
.bus_id = 0,
.power = em_x270_sensor_power,
.board_info = &em_x270_i2c_cam_info[0],
.i2c_adapter_id = 0,
.module_name = "mt9m111",
};

static struct platform_device em_x270_camera = {
.name = "soc-camera-pdrv",
.id = -1,
.dev = {
.platform_data = &iclink,
},
};

static void __init em_x270_init_camera(void)
{
i2c_register_board_info(0, ARRAY_AND_SIZE(em_x270_i2c_cam_info));
pxa_set_camera_info(&em_x270_camera_platform_data);
platform_device_register(&em_x270_camera);
}
#else
static inline void em_x270_init_camera(void) {}
Expand Down

0 comments on commit ce1169e

Please sign in to comment.