forked from Minki/linux
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: Dmitry Torokhov <dtor@mail.ru> Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
4615e33f43
commit
a512a8cc20
@ -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)
|
|||||||
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user