ENDCALL,KEYSTART,KEY_WAKEUP,
};
-struct adc_key_data rk2818_adc_key = {
+static struct adc_key_data rk2818_adc_key = {
.pin_playon = PLAY_ON_PIN,
.playon_level = PLAY_ON_LEVEL,
.adc_empty = 1000,
struct rk2818_adckey_platform_data rk2818_adckey_platdata = {
.adc_key = &rk2818_adc_key,
+ .name = "raho-keypad",
};
#if CONFIG_ANDROID_TIMED_GPIO
goto failed_free;
}
- input_dev->name = pdev->name;
+ input_dev->name = pdata->name ? pdata->name : pdev->name;
//input_dev->id.bustype = BUS_HOST;
input_dev->open = rk28_adckey_open;
input_dev->close = rk28_adckey_close;