linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question: Drivers/input/evdev.c] How to get instance of struct evdev in some driver ?
@ 2014-08-03  6:35 Aniroop Mathur
  2014-08-03  6:42 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Aniroop Mathur @ 2014-08-03  6:35 UTC (permalink / raw)
  To: Dmitry Torokhov, dtor, linux-input@vger.kernel.org

Dear Mr. Torokhov and Linux-Input Community,
Greetings of the day !! :)

I am stuck at one point and could not find the solution over internet.
Can you please help in answering my query below:

As you know, struct evdev is defined in evdev.c and not in some header file.
So, Is it possible to get instance of struct evdev in some input
peripheral driver ?
If possible, then how can we get it ?

In the input peripheral driver,
we can get instance struct input_dev by including input.h file
and then calling input_allocate_device().
struct input_dev = input_allocate_device();

May be evdev is embedded somewhere in input_dev.
So, can we get the instance of evdev using input_dev ?

Thanks in Advance !

-- Aniroop Mathur

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-03  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-03  6:35 [Question: Drivers/input/evdev.c] How to get instance of struct evdev in some driver ? Aniroop Mathur
2014-08-03  6:42 ` Dmitry Torokhov
2014-08-03  6:53   ` Aniroop Mathur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).