rk30:modify light sensor input name
authorlw <lw@rock-chips.com>
Fri, 30 Mar 2012 08:30:42 +0000 (16:30 +0800)
committerlw <lw@rock-chips.com>
Fri, 30 Mar 2012 08:30:42 +0000 (16:30 +0800)
arch/arm/mach-rk30/board-rk30-sdk.c
drivers/input/lightsensor/cm3217.c

index 5989c7e42e70a1e673c4c6cc62a8ca629243fd7e..13476de149669b4dddfbea24ae659684aa5cec4a 100755 (executable)
@@ -1066,7 +1066,7 @@ static struct i2c_board_info __initdata i2c2_info[] = {
 #if defined (CONFIG_LS_CM3217)
        {
                .type          = "lightsensor",
-               .addr          = 0x20,
+               .addr          = 0x10,
                .flags         = 0,
                .irq           = CM3217_IRQ_PIN,
                .platform_data = &cm3217_info,
index 461b7faf82763b1dfd321012fa5f3a042b482cac..b06b754d99a9408094bd94e367342a88b1c07f69 100755 (executable)
@@ -286,7 +286,7 @@ static int cm3217_probe(struct i2c_client *client, const struct i2c_device_id *i
        set_bit(EV_ABS, cm3217->input->evbit);
        /* light sensor data */
        input_set_abs_params(cm3217->input, ABS_MISC, 0, 10, 0, 0);
-       cm3217->input->name = "lightsensor";
+       cm3217->input->name = "lightsensor-level";
 
        err = input_register_device(cm3217->input);
        if (err < 0) {