}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.swap_xyz = 1,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.swap_xyz = 1,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xyz= 1,
.swap_xy=0,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 0,
.init_platform_hw= mma8452_init_platform_hw,
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model= 8452,
.swap_xy = 1,
.init_platform_hw= mma8452_init_platform_hw,
{
rk30_mux_api_set(GPIO4C0_SMCDATA0_TRACEDATA0_NAME, GPIO4C_GPIO4C0);
- if (gpio_request(MMA8452_INT_PIN, NULL) != 0) {
- gpio_free(MMA8452_INT_PIN);
- printk("mma8452_init_platform_hw gpio_request error\n");
- return -EIO;
- }
- gpio_pull_updown(MMA8452_INT_PIN, 1);
return 0;
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model = 8452,
.swap_xy = 0,
.swap_xyz = 1,
return 0;
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model = 8452,
.swap_xy = 0,
.swap_xyz = 1,
return 0;
}
-static struct mma8452_platform_data mma8452_info = {
+static struct gsensor_platform_data mma8452_info = {
.model = 8452,
.swap_xy = 0,
.swap_xyz = 1,
int write_prt;
};
-struct mma8452_platform_data {
+struct gsensor_platform_data {
u16 model;
u16 swap_xy;
u16 swap_xyz;
signed char orientation[9];
int (*get_pendown_state)(void);
int (*init_platform_hw)(void);
- int (*mma8452_platform_sleep)(void);
- int (*mma8452_platform_wakeup)(void);
+ int (*gsensor_platform_sleep)(void);
+ int (*gsensor_platform_wakeup)(void);
void (*exit_platform_hw)(void);
};
int ret;
int x,y,z;
struct mma8452_axis axis;
- struct mma8452_platform_data *pdata = pdata = client->dev.platform_data;
+ struct gsensor_platform_data *pdata = pdata = client->dev.platform_data;
/* enabled only if FREAD MODE */
/*
static int mma8452_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
struct mma8452_data *mma8452;
- struct mma8452_platform_data *pdata = pdata = client->dev.platform_data;
+ struct gsensor_platform_data *pdata = pdata = client->dev.platform_data;
int err;
mmaprintkf("%s enter\n",__FUNCTION__);
#define MMA8452_REG_LEN 11
-
-/*
-struct mma8452_platform_data {
- int reset;
- int clk_on;
- int intr;
-};
-
-*/
-
struct mma8452_axis {
int x;
int y;