Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48a55d7d authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: pwm-beeper - use input_set_capability()



Instead of manipulating capability bits directly, let's use
input_set_capability() API.

Reviewed-by: default avatarThierry Reding <thierry.reding@gmail.com>
Tested-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent bcf4b046
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;