Revert "staging: android: Use devm_kzalloc instead of kzalloc"

This reverts commit 506d127595bbfc918c934704e7b9a9663df97566.

Dorimanx:

This cause long vibrates when typing fast, should be short every click,
but its like: short short short long, short long... etc.

not nice. now in 100 clicks 3 long vibrates, and that is OK...
Kernel 7.1
zlib: clean up some dead code

Cleanup unused `if 0'-ed functions, which have been dead since 2006
(commits 87c2ce3b9305 ("lib/zlib*: cleanups") by Adrian Bunk and
4f3865fb57a0 ("zlib_inflate: Upgrade library code to a recent version")
by Richard Purdie):

 - zlib_deflateSetDictionary
 - zlib_deflateParams
 - zlib_deflateCopy
 - zlib_inflateSync
 - zlib_syncsearch
 - zlib_inflateSetDictionary
 - zlib_inflatePrime

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: ocmem: Check for NULL pointer from get_zone

The get_zone function might return NULL if it is
unable to find the zone for the associated client
id. Add check to prevent NULL pointer dereferencing.

Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: ocmem: Add NULL pointer check for req structure

BUG_ON if req structure returned from handle_to_req
returns a NULL pointer.

Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mmc: core: Optimize entering HS400 mode

In the current HS400 selection sequence high speed mode is entered
twice unnecessarily. Skip the first hs selection as it is also done
as part of entering high speed DDR mode.

Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
makefile: try some Dave flags

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	Makefile
Merge latest F2FS driver updates for 3.4.y branch.

all change logs can be found here: thanks @Alucard for merging.

https://github.com/Alucard24/Alucard-Kernel-jfltexx/commits/my-aospv2-4.4/fs/f2fs
workqueue: change BUG_ON() to WARN_ON()

This BUG_ON() can be triggered if you call schedule_work() before
calling INIT_WORK().  It is a bug definitely, but it's nicer to just
print a stack trace and return.

Reported-by: Matt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
remove unroll-loops
BACKLIGHT CONTROL: Allow user to set min backlight when auto mode.

By user request, i have made simple overide interface for min backlight.

Normally ROM min backlight is set to 86 and max is 255.

When screen is dimmed before turn off it's 50.

So now user can ask kernel to set min backlight in dark from 30 to 89

and by this reduce the MIN backlight value.
BACKLIGHT CONTROL: allow to set MAX 100Lux by user if it's too dark!
BACKLIGHT CONTROL v3: more correct function use. after tests.
sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire

These values are applicable for 100 HZ device.
Check http://ripke.com/loadavg/moire for more details.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ASoC: sound_control: Fix PA Gain reset

* PA Gain registers should be volatile so that
  our settings override each time its brought up.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ASoC: wcd9320: Use class AB headphone path for high-res formats

* The class AB path is less efficient, but has a lower noise floor.
* Enable this path for 24-bit or high (>96KHz) sample rate, as this
  tradeoff is worth it with lossless, high resolution music.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
SOUND CONTROL: derp for me :)
Revert "snd: wcd9320: Enable class AB mode always"

This reverts commit 9d8e94162814f4abff5d0a88f2782934212b9378.
cpufreq / core: Fix typo in comment describing show_bios_limit()

show_bios_limit is mistakenly written as show_scaling_driver in a comment
describing purpose of show_bios_limit() routine.

Fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Improve debug prints

With debug options on, it is difficult to locate cpufreq core's debug prints.
Fix this by prefixing debug prints with KBUILD_MODNAME.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>