提交 48a55d7d 编写于 作者: D Dmitry Torokhov

Input: pwm-beeper - use input_set_capability()

Instead of manipulating capability bits directly, let's use
input_set_capability() API.
Reviewed-by: NThierry Reding <thierry.reding@gmail.com>
Tested-by: NDavid Lechner <david@lechnology.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 bcf4b046
...@@ -131,8 +131,8 @@ static int pwm_beeper_probe(struct platform_device *pdev) ...@@ -131,8 +131,8 @@ static int pwm_beeper_probe(struct platform_device *pdev)
beeper->input->id.product = 0x0001; beeper->input->id.product = 0x0001;
beeper->input->id.version = 0x0100; beeper->input->id.version = 0x0100;
beeper->input->evbit[0] = BIT(EV_SND); input_set_capability(beeper->input, EV_SND, SND_TONE);
beeper->input->sndbit[0] = BIT(SND_TONE) | BIT(SND_BELL); input_set_capability(beeper->input, EV_SND, SND_BELL);
beeper->input->event = pwm_beeper_event; beeper->input->event = pwm_beeper_event;
beeper->input->close = pwm_beeper_close; beeper->input->close = pwm_beeper_close;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册