Revert: "msm: display: mipi_lgit: Userspace display gamma control"

Originally written by Paul Reioux (faux123)

Modified from his original implementation as follows:
* Remove kgamma_ctrl sysfs entry - it did absolutely nothing
* Alter the show() functions to output the checksum in the
first entry, in order to match the expected input of
the store() functions.  This should not break existing
applications
* Move store/show code to a common function
* Add limit checks from Mike Cain (motley)
* Added a kgamma_apply sysfs entry which will apply
  the current state when anything is stored to it,
  instead of waiting until the next time the LCD
  is power cycled

Change-Id: I8835e42709cefa547e02e28a7e5a381d88282700 (reverted from commit ad79eb5e94364971e23996e46096f36fb018a44a)
Support for faux123 gamma control
LG Mako gamma control - add mirror interface while leaving
faux's interface in place, respecting his rollover char checksum.

Mirror interface should be a little easier for humans to work
with from scripting (int checksum that doesn't roll over).

Added a couple validation checks to both interfaces before allowing
values to be stored. This will add some safety for scripting or rouge
apps that may have a bug.
-Only allow gamma amp 0 and 1 values up to 31.
-Since we are pushing to a char data type, make sure nothing is over
255.

Changed dsi_cmd_desc struct name so it can be shared between
both interfaces.

Added to sysfs:
/sys/devices/platform/mipi_lgit.1537/kgamma_red
/sys/devices/platform/mipi_lgit.1537/kgamma_green
/sys/devices/platform/mipi_lgit.1537/kgamma_blue

Example:
echo "383 114 21 118 0 0 0 80 48 2" >
/sys/devices/platform/mipi_lgit.1537/kgamma_red

echo "383 114 21 118 0 0 0 80 48 2" >
/sys/devices/platform/mipi_lgit.1537/kgamma_green

echo "383 114 21 118 0 0 0 80 48 2" >
/sys/devices/platform/mipi_lgit.1537/kgamma_blue

First digit is a checksum (sum of all the other 9 numbers)
Gamma Amp 0 = value 6
Gamma Amp 1 = value 7

Show the current settings with proper checksum:
cat /sys/devices/platform/mipi_lgit.1537/kgamma_red
cat /sys/devices/platform/mipi_lgit.1537/kgamma_green
cat /sys/devices/platform/mipi_lgit.1537/kgamma_blue
Gamma Control - added refresh_screen sysfs attribute that has nothing to
do with setting values. This should only be called by apps or scripts
while adjusting colors "live" with the motley or faux interface and not
implemented on startup via init.d or apps since it will compete with the
normal power on process.

echo 1 > /sys/devices/platform/mipi_lgit.1537/refresh_screen
Conflicts:
	scripts/gcc-wrapper.py
gcc-wrapper.py: Fix derp
Fix warning in display file

Using GCC 4.7.0, the following warning occurred: warning: initialization from incompatible pointer type

Let's stick the the regular implementation for the store function.
remove leftover old gamma interface
update intellithermal & dorimanx's intellithermal
update version to 80u