diff options
author | ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com> | 2012-11-09 11:47:14 +0530 |
---|---|---|
committer | Rajanikanth H.V <rajanikanth.hv@stericsson.com> | 2012-12-14 17:07:14 +0530 |
commit | 40ad624ecfdcace8555b02a8c481b4275b36a47c (patch) | |
tree | 589a568d2f3851732123fb0c35a48c55402699e7 | |
parent | d1a8b0ccbbef0ea00846557fde76399d02451eed (diff) |
st-mems-sensors: Sensor Code Migration to IIO framework
Add platform data for sensors
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-sensors.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-sensors.c b/arch/arm/mach-ux500/board-mop500-sensors.c index 8569cf9248a..0fa29057db4 100644 --- a/arch/arm/mach-ux500/board-mop500-sensors.c +++ b/arch/arm/mach-ux500/board-mop500-sensors.c @@ -17,9 +17,7 @@ /* * LSM303DLH accelerometer + magnetometer & L3G4200D Gyroscope sensors */ -static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata = { - .name_a = "lsm303dlh.0", - .name_m = "lsm303dlh.1", +static struct lsm303dlh_platform_data lsm303dlh_pdata = { .axis_map_x = 0, .axis_map_y = 1, .axis_map_z = 2, @@ -28,8 +26,7 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata = { .negative_z = 0, }; -static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata = { - .name_gyr = "l3g4200d", +static struct l3g4200d_gyr_platform_data l3g4200d_pdata = { .axis_map_x = 1, .axis_map_y = 0, .axis_map_z = 2, @@ -42,7 +39,7 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata = { * Platform data for pressure sensor, * poll interval and min interval in millseconds. */ -static struct lps001wp_prs_platform_data __initdata lps001wp_pdata = { +static struct lps001wp_prs_platform_data lps001wp_pdata = { .poll_interval = 1000, .min_interval = 10, }; |