提交 a512a8cc 编写于 作者: D Dmitry Torokhov

V4L/DVB: Don't access input_dev->private directly

Drivers should use input_{get|set}_drvdata() instead of accessing
input_dev->provate directly, but since these drivers do not actually
use the data stored there we can simply remove the assignments.
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
Acked-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 4615e33f
...@@ -241,8 +241,6 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev ...@@ -241,8 +241,6 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev
input_dev->evbit[0] = BIT_MASK(EV_KEY); input_dev->evbit[0] = BIT_MASK(EV_KEY);
input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
input_dev->private = cam;
error = input_register_device(cam->input); error = input_register_device(cam->input);
if (error) { if (error) {
warn("Failed to register camera's input device, err: %d\n", warn("Failed to register camera's input device, err: %d\n",
......
...@@ -105,8 +105,6 @@ static void qcm_register_input(struct qcm *cam, struct usb_device *dev) ...@@ -105,8 +105,6 @@ static void qcm_register_input(struct qcm *cam, struct usb_device *dev)
input_dev->evbit[0] = BIT_MASK(EV_KEY); input_dev->evbit[0] = BIT_MASK(EV_KEY);
input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
input_dev->private = cam;
error = input_register_device(cam->input); error = input_register_device(cam->input);
if (error) { if (error) {
warn("Failed to register camera's input device, err: %d\n", warn("Failed to register camera's input device, err: %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册