<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/input/input.c, branch v4.4.29</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.29</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.29'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2015-10-14T06:30:31Z</updated>
<entry>
<title>Input: improve autorepeat initialization</title>
<updated>2015-10-14T06:30:31Z</updated>
<author>
<name>Petri Gynther</name>
<email>pgynther@google.com</email>
</author>
<published>2015-10-14T06:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=027c71bbae3a6eeff00c11d1b708593a5c790314'/>
<id>urn:sha1:027c71bbae3a6eeff00c11d1b708593a5c790314</id>
<content type='text'>
Add new function input_enable_softrepeat() that allows drivers to
initialize their own values for input_dev-&gt;rep[REP_DELAY] and
input_dev-&gt;rep[REP_PERIOD], but also use the software autorepeat
functionality from input.c.

For example, a HID driver could do:

static void xyz_input_configured(struct hid_device *hid,
                                 struct hid_input *hidinput)
{
        input_enable_softrepeat(hidinput-&gt;input, 400, 100);
}

static struct hid_driver xyz_driver = {
        .input_configured = xyz_input_configured,
}

Signed-off-by: Petri Gynther &lt;pgynther@google.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: do not emit unneeded EV_SYN when suspending</title>
<updated>2015-08-07T21:55:38Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2015-08-07T02:15:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=00159f19a5057cb779146afce1cceede692af346'/>
<id>urn:sha1:00159f19a5057cb779146afce1cceede692af346</id>
<content type='text'>
Do not emit EV_SYN/SYN_REPORT on suspend if there were no keys that are
still pressed as we are suspending the device (and in all other cases when
input core is forcibly releasing keys via input_dev_release_keys() call).

Reviewed-by: Benson Leung &lt;bleung@chromium.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: use for_each_set_bit() where appropriate</title>
<updated>2015-06-25T21:44:36Z</updated>
<author>
<name>Anshul Garg</name>
<email>aksgarg1989@gmail.com</email>
</author>
<published>2015-06-25T20:33:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3e2b03dad54bbcab5be948629a644d55ce7b5a2e'/>
<id>urn:sha1:3e2b03dad54bbcab5be948629a644d55ce7b5a2e</id>
<content type='text'>
Instead of iterating over all bits in a bitmap and test them individually
let's siwtch to for_each_set_bit() which is more compact and is also
faster.

Also use bitmap_weight() when counting number of set bits.

This also fixes INPUT_DO_TOGGLE() implementation as it should have used
*_CNT as the upper boundary, not *_MAX.

Signed-off-by: Anshul Garg &lt;aksgarg1989@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: fix typo in comment to input_handler_for_each_handle()</title>
<updated>2015-05-20T21:45:41Z</updated>
<author>
<name>Shailendra Verma</name>
<email>shailendra.capricorn@gmail.com</email>
</author>
<published>2015-05-18T17:44:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ec8beff9647897659df5e1ad120a00cfc8c7a98e'/>
<id>urn:sha1:ec8beff9647897659df5e1ad120a00cfc8c7a98e</id>
<content type='text'>
Signed-off-by: Shailendra Verma &lt;shailendra.capricorn@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: do not try to filter out events if handler is not a filter</title>
<updated>2015-01-08T21:53:34Z</updated>
<author>
<name>Anshul Garg</name>
<email>aksgarg1989@gmail.com</email>
</author>
<published>2015-01-08T21:47:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2c50ad340c246b7f58f2d916006afe2d85d60698'/>
<id>urn:sha1:2c50ad340c246b7f58f2d916006afe2d85d60698</id>
<content type='text'>
If given input handler is not a filter there is no point is iterating list
of events in a packet to see if some of them need to be filtered out.

Signed-off-by: Anshul Garg &lt;anshul.g@samsung.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: small tweak to autorepeat handling</title>
<updated>2015-01-08T21:53:30Z</updated>
<author>
<name>Anshul Garg</name>
<email>aksgarg1989@gmail.com</email>
</author>
<published>2015-01-08T21:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5ab17145708e6ad4582b0372fb3a171be3379293'/>
<id>urn:sha1:5ab17145708e6ad4582b0372fb3a171be3379293</id>
<content type='text'>
If a device does not support autorepeat or does not emit any key events we
should not be scanning all events in a packet to decide if we should start
or stop autorepeat function.

Signed-off-by: Anshul Garg &lt;anshul.g@samsung.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: optimize events_per_packet count calculation</title>
<updated>2014-12-16T05:45:55Z</updated>
<author>
<name>Anshul Garg</name>
<email>anshul.g@samsung.com</email>
</author>
<published>2014-12-13T19:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=baf332c0f1cede26e9c2af6276b36b4c3a36e34a'/>
<id>urn:sha1:baf332c0f1cede26e9c2af6276b36b4c3a36e34a</id>
<content type='text'>
This patch avoids unnecessary operations while estimating events per
packet for an input device when event type is not set.

Signed-off-by: Anshul Garg &lt;anshul.g@samsung.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: initialize input_no to -1 to avoid subtraction</title>
<updated>2014-12-03T05:34:49Z</updated>
<author>
<name>Aniroop Mathur</name>
<email>aniroop.mathur@gmail.com</email>
</author>
<published>2014-12-02T23:22:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9c7d66fa9bb21ef89c6acdd0cf536eb84e760d8b'/>
<id>urn:sha1:9c7d66fa9bb21ef89c6acdd0cf536eb84e760d8b</id>
<content type='text'>
Let's initializes input_no to -1 in order to avoid extra subtraction
operation performed every time we allocate an input device.

Signed-off-by: Aniroop Mathur &lt;aniroop.mathur@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: avoid negative input device numbers</title>
<updated>2014-10-09T22:27:24Z</updated>
<author>
<name>Richard Leitner</name>
<email>richard.leitner@skidata.com</email>
</author>
<published>2014-10-08T21:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=bf1d50fa74df0339c925aa7e2ff9de60a42c30be'/>
<id>urn:sha1:bf1d50fa74df0339c925aa7e2ff9de60a42c30be</id>
<content type='text'>
Fix the format string for input device name generation to avoid negative
device numbers when the id exceeds the maximum signed integer value.

Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: automatically set EV_ABS bit in input_set_abs_params</title>
<updated>2014-10-08T18:06:12Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2014-10-08T16:28:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2c9a9cfec04f2c6ed7b4e607cd53ca903b2c4642'/>
<id>urn:sha1:2c9a9cfec04f2c6ed7b4e607cd53ca903b2c4642</id>
<content type='text'>
Let's automatically set EV_ABS bit in device's event type list when calling
input_set_abs_params() so that drivers do not have to do it explicitly.

These calls are never in a hot paths so we won't lose much time by setting
the same bit several times.

Reviewed-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
</feed>
