From: Dmitry Torokhov Date: Fri, 6 Jan 2017 17:54:14 +0000 (-0800) Subject: Input: pwm-beeper - use input_set_capability() X-Git-Tag: v4.14-rc1~4^2~54^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48a55d7de79f95176f3ab372be66165a60be222f;p=platform%2Fkernel%2Flinux-rpi.git Input: pwm-beeper - use input_set_capability() Instead of manipulating capability bits directly, let's use input_set_capability() API. Reviewed-by: Thierry Reding Tested-by: David Lechner Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index f8b163b..58a60b4 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -131,8 +131,8 @@ static int pwm_beeper_probe(struct platform_device *pdev) beeper->input->id.product = 0x0001; beeper->input->id.version = 0x0100; - beeper->input->evbit[0] = BIT(EV_SND); - beeper->input->sndbit[0] = BIT(SND_TONE) | BIT(SND_BELL); + input_set_capability(beeper->input, EV_SND, SND_TONE); + input_set_capability(beeper->input, EV_SND, SND_BELL); beeper->input->event = pwm_beeper_event; beeper->input->close = pwm_beeper_close;