<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/input/touchscreen/cyttsp4_core.c, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2017-11-03T19:45:22Z</updated>
<entry>
<title>Input: cyttsp4 - avoid overflows when calculating memory sizes</title>
<updated>2017-11-03T19:45:22Z</updated>
<author>
<name>Vince Kim</name>
<email>vince.k.kim@gmail.com</email>
</author>
<published>2017-10-31T18:33:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a2c714e8cb538406d61e321c627b55ed5362991e'/>
<id>urn:sha1:a2c714e8cb538406d61e321c627b55ed5362991e</id>
<content type='text'>
There are several places to perform subtraction to calculate buffer
size such as:

si-&gt;si_ofs.cydata_size = si-&gt;si_ofs.test_ofs - si-&gt;si_ofs.cydata_ofs;
...
p = krealloc(si-&gt;si_ptrs.cydata, si-&gt;si_ofs.cydata_size, GFP_KERNEL);

Actually, data types of above variables during subtraction are size_t, so
it is unsigned. That means if second operand(si-&gt;si_ofs.cydata_ofs) is
greater than the first operand(si-&gt;si_ofs.test_ofs), then resulting
si-&gt;si_ofs.cydata_size could result in an unsigned integer wrap which is
not desirable.

The proper way to correct this problem is to perform a test of both
operands to avoid having unsigned wrap.

Signed-off-by: Vince Kim &lt;vince.k.kim@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: touchsceen - convert timers to use timer_setup()</title>
<updated>2017-10-24T17:09:33Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2017-10-24T16:44:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ee03e3f00566201ea91d90430dc43bd08c7e9eef'/>
<id>urn:sha1:ee03e3f00566201ea91d90430dc43bd08c7e9eef</id>
<content type='text'>
In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>lib/vsprintf.c: remove %Z support</title>
<updated>2017-02-28T02:43:47Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2017-02-27T22:30:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5b5e0928f742cfa853b2411400a1b19fa379d758'/>
<id>urn:sha1:5b5e0928f742cfa853b2411400a1b19fa379d758</id>
<content type='text'>
Now that %z is standartised in C99 there is no reason to support %Z.
Unlike %L it doesn't even make format strings smaller.

Use BUILD_BUG_ON in a couple ATM drivers.

In case anyone didn't notice lib/vsprintf.o is about half of SLUB which
is in my opinion is quite an achievement.  Hopefully this patch inspires
someone else to trim vsprintf.c more.

Link: http://lkml.kernel.org/r/20170103230126.GA30170@avx2
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Cc: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>treewide: Fix typos in printk</title>
<updated>2016-04-28T08:52:28Z</updated>
<author>
<name>Masanari Iida</name>
<email>standby24x7@gmail.com</email>
</author>
<published>2016-04-19T15:27:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c01e01597cbd0cf0571c2b05bf9e2245afb4478d'/>
<id>urn:sha1:c01e01597cbd0cf0571c2b05bf9e2245afb4478d</id>
<content type='text'>
This patch fix spelling typos in printk from various part
of the codes.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>Input: cyttsp4 - use swap() in cyttsp4_get_touch()</title>
<updated>2015-06-11T23:47:34Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2015-06-11T20:07:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cf99289d67688c4f92175da42bd1647695f6fddc'/>
<id>urn:sha1:cf99289d67688c4f92175da42bd1647695f6fddc</id>
<content type='text'>
Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>input / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM</title>
<updated>2014-12-05T01:54:17Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2014-12-04T00:09:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=dc5686e45dd9e0bba765bf8b5ef5250e1b4112d8'/>
<id>urn:sha1:dc5686e45dd9e0bba765bf8b5ef5250e1b4112d8</id>
<content type='text'>
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.

The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be
replaced with CONFIG_PM too.

Make these changes in 2 files under drivers/input/.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Reviewed-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Reviewed-by: Ferruh Yigit &lt;fery@cypress.com&gt;
Acked-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: cyttsp4 -  remove unnecessary work pending test</title>
<updated>2013-11-21T05:15:26Z</updated>
<author>
<name>Xie XiuQi</name>
<email>xiexiuqi@huawei.com</email>
</author>
<published>2013-11-19T21:15:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0221e670cd25bb41062031eaa653f6447707abc6'/>
<id>urn:sha1:0221e670cd25bb41062031eaa653f6447707abc6</id>
<content type='text'>
Remove unnecessary work pending test before calling schedule_work().  It
has been tested in queue_work_on() already.

Signed-off-by: Xie XiuQi &lt;xiexiuqi@huawei.com&gt;
Reviewed-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: cyttsp4_core - remove redundant dev_set_drvdata</title>
<updated>2013-09-18T15:00:31Z</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-09-18T14:45:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8474caddccedcbf6da59f3ed3bc5c4d9442f8e5d'/>
<id>urn:sha1:8474caddccedcbf6da59f3ed3bc5c4d9442f8e5d</id>
<content type='text'>
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'v3.11' into next</title>
<updated>2013-09-18T14:58:33Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2013-09-18T14:58:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=4ba25a496f62129a2ad8c2436ab2b402752dc66c'/>
<id>urn:sha1:4ba25a496f62129a2ad8c2436ab2b402752dc66c</id>
<content type='text'>
Merge with mainline to bring in sync changes to cyttsp4 driver.
</content>
</entry>
<entry>
<title>Input: cyttsp4 - kill 'defined but not used' compiler warnings</title>
<updated>2013-08-29T15:45:15Z</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2013-08-29T15:40:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ca0abe3d89fd95b80654e3429d84e4aad567a395'/>
<id>urn:sha1:ca0abe3d89fd95b80654e3429d84e4aad567a395</id>
<content type='text'>
If both CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME are unset:

drivers/input/touchscreen/cyttsp4_core.c:1556: warning: ‘cyttsp4_core_sleep’ defined but not used
drivers/input/touchscreen/cyttsp4_core.c:1634: warning: ‘cyttsp4_core_wake’ defined but not used

Move cyttsp4_core_sleep(), cyttsp4_core_wake(), and cyttsp4_core_wake_()
(which is called from cyttsp4_core_wake() only) inside the existing section
protected by #if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME)

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
</feed>
