From: lw Date: Fri, 30 Mar 2012 08:30:42 +0000 (+0800) Subject: rk30:modify light sensor input name X-Git-Tag: firefly_0821_release~9546 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59b8dc518f6fce12eb5bbe02e685ed9b75a2069c;p=firefly-linux-kernel-4.4.55.git rk30:modify light sensor input name --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk.c b/arch/arm/mach-rk30/board-rk30-sdk.c index 5989c7e42e70..13476de14966 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk.c +++ b/arch/arm/mach-rk30/board-rk30-sdk.c @@ -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, diff --git a/drivers/input/lightsensor/cm3217.c b/drivers/input/lightsensor/cm3217.c index 461b7faf8276..b06b754d99a9 100755 --- a/drivers/input/lightsensor/cm3217.c +++ b/drivers/input/lightsensor/cm3217.c @@ -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) {