summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-06 09:54:14 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-22 00:23:18 -0800
commit48a55d7de79f95176f3ab372be66165a60be222f (patch)
treec4dcd09de2d4f8a3896a69105f38d234793c1278 /drivers/input/misc
parentbcf4b0460ba558b1e1fcaa7c160076751b560d03 (diff)
downloadtalos-op-linux-48a55d7de79f95176f3ab372be66165a60be222f.tar.gz
talos-op-linux-48a55d7de79f95176f3ab372be66165a60be222f.zip
Input: pwm-beeper - use input_set_capability()
Instead of manipulating capability bits directly, let's use input_set_capability() API. Reviewed-by: Thierry Reding <thierry.reding@gmail.com> Tested-by: David Lechner <david@lechnology.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/pwm-beeper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c
index f8b163b0eb43..58a60b42c836 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;
OpenPOWER on IntegriCloud